/* A personal study desk: one lesson card and an ordered, readable syllabus. */
.is-today .workspace main { max-width: 1180px; padding: 26px 38px 54px; }
.is-today .home-topbar { max-width: 1180px; min-height: 84px; padding: 22px 38px 14px; }
.study-header-stats { display: flex; align-items: center; gap: 18px; }
.study-header-stats .home-streak, .study-header-xp { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--ink-soft); font-size: 13px; font-weight: 750; white-space: nowrap; }
.study-header-stats .home-streak .icon, .study-header-xp .icon { width: 20px; height: 20px; }
.study-header-xp small { font-size: 10px; font-weight: 650; }
.study-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 258px; align-items: start; gap: 32px; }
.study-main-column, .study-side-column { min-width: 0; }
.study-subject-choice { margin: 0 0 24px; }
.study-choice-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.study-choice-heading h2 { font-size:18px; letter-spacing:-.3px; }
.study-choice-heading > span { color:var(--muted); font-size:11px; }
.study-subject-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.study-subject-button { display:block; width:100%; min-width:0; padding:17px; text-align:left; border:1px solid var(--line); border-radius:16px; background:var(--white); color:var(--ink); transition:background .18s, border-color .18s; }
.study-subject-button:hover { background:var(--cream); border-color:var(--ink-soft); }
.study-subject-button.is-selected { background:var(--ink); border-color:var(--ink); color:var(--cream); }
.study-subject-name { display:flex; align-items:center; gap:8px; font-size:14px; }
.study-subject-name > .icon { width:18px; height:18px; flex-shrink:0; }
.study-subject-name > .icon:last-child { margin-left:auto; width:15px; }
.study-subject-button small { display:block; margin-top:10px; color:var(--muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.study-subject-button.is-selected small { color:#e2dccf; }
.study-subject-choice > p { margin-top:11px; font-size:11px; line-height:1.6; color:var(--muted); }
@media (max-width:380px) {
  .study-subject-buttons { gap:8px; }
  .study-subject-button { padding:12px 10px; }
  .study-subject-name { font-size:12px; gap:5px; }
  .study-subject-name > .icon:first-child { display:none; }
  .study-choice-heading { flex-wrap:wrap; gap:4px; }
}
.study-welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.study-welcome > div { min-width: 0; }
.study-overline { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 1.7px; }
.study-welcome h1 { margin-top: 7px; font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.2; overflow-wrap: anywhere; }
.study-welcome p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.study-course-switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 11px; color: var(--ink-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.study-course-switch .icon { width: 18px; height: 18px; }
.study-course-switch:hover { color: var(--ink); background: var(--surface-soft); border-radius: 12px; }
.study-search.home-search { min-height: 53px; margin-bottom: 22px; padding: 3px 6px 3px 17px; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.study-search.home-search input { font-size: 15px; }
.study-search.home-search > .icon { width: 21px; height: 21px; }
.study-search.home-search:focus-within { border-color: #8792ae; box-shadow: 0 0 0 3px #e9edf4; }
.study-session { padding: 28px; background: var(--cream); border: 1px solid #e7dfce; border-radius: 22px; }
.study-session-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.study-session-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 750; }
.study-session-label .icon { width: 17px; height: 17px; }
.study-subject { font-size: 11px; color: var(--ink-soft); }
.study-session h2 { margin-top: 25px; font-size: clamp(27px, 2.7vw, 34px); font-weight: 800; line-height: 1.23; letter-spacing: -.9px; text-wrap: balance; overflow-wrap: anywhere; }
.study-session-description { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.study-session-format { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.study-session-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.study-session .home-lesson-continue { display: inline-flex; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: 20px; min-height: 52px; padding: 14px 20px; color: var(--white); background: var(--ink); border-radius: 13px; font-size: 14px; font-weight: 750; transition: background .15s ease, transform .15s ease; }
.study-session .home-lesson-continue:hover { background: #38435f; }
.study-session .home-lesson-continue:active { transform: translateY(1px); }
.study-session .home-lesson-continue > span { text-align: left; }
.study-session .home-lesson-continue .icon { width: 21px; height: 21px; }
.study-reference { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 44px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.study-reference .icon { width: 17px; height: 17px; }
.study-reference:hover { text-decoration: underline; text-underline-offset: 4px; }
.study-syllabus { margin-top: 33px; }
.study-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.study-section-heading > div { min-width: 0; }
.study-section-heading h2 { font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; }
.study-section-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.study-section-heading > .text-link { flex: 0 0 auto; font-size: 12px; }
.study-chapter-progress { display: flex; align-items: center; gap: 14px; margin: 17px 0 6px; color: var(--muted); font-size: 11px; }
.study-chapter-progress > div { flex: 1; max-width: 130px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--line); }
.study-chapter-progress > div > span { display: block; height: 100%; background: var(--ink-soft); border-radius: inherit; }
.study-topic-list { padding: 0; margin: 0; list-style: none; }
.study-topic-row { display: flex; align-items: center; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.study-topic-index { align-self: flex-start; margin-top: 20px; flex: 0 0 27px; font-size: 13px; color: #8a8e9c; font-variant-numeric: tabular-nums; }
.study-topic-copy { display: block; min-width: 0; flex: 1; }
.study-topic-status { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 650; color: var(--muted); }
.study-topic-row:first-child .study-topic-status { color: var(--ink-soft); }
.study-topic-copy strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.study-topic-copy small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.study-topic-copy:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.study-topic-open { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-soft); transition: background .15s; }
.study-topic-open .icon { width: 19px; height: 19px; }
.study-topic-open:hover { background: var(--surface-soft); }
.study-plan-note { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.study-draft-link.home-draft-link { display: flex; gap: 12px; align-items: flex-start; padding: 18px; margin-top: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; font-size: 12px; }
.study-draft-link > .icon { width: 18px; height: 18px; margin-top: 4px; }
.study-draft-link.home-draft-link:hover { text-decoration: none; }
.study-draft-link .text-link { min-height: 32px; padding: 4px 0; font-size: 12px; }
.study-side-column { display: grid; gap: 18px; padding-top: 2px; }
.study-side-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.study-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.study-card-heading h2 { font-size: 14px; font-weight: 750; line-height: 1.4; }
.study-card-heading > .icon { width: 19px; height: 19px; color: var(--ink-soft); }
.study-daily-number { display: flex; align-items: baseline; gap: 10px; margin-top: 19px; font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.study-daily-number > span { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.study-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; margin-top: 21px; }
.study-week-day { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.study-day-mark { display: grid; place-items: center; width: 23px; height: 28px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); }
.study-day-mark .icon { width: 14px; height: 14px; }
.study-week-day.is-active .study-day-mark { color: var(--cream); background: var(--ink); }
.study-week-day.is-today { color: var(--ink); font-weight: 750; }
.study-week-day.is-today .study-day-mark { outline: 1px solid #9098ad; outline-offset: 2px; }
.study-daily-state { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.study-daily-state small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.study-review-card > p { margin-top: 16px; font-size: 12px; color: var(--muted); }
.study-side-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.study-side-action .icon { width: 17px; height: 17px; }
.study-side-action:hover { background: var(--cream); }
.study-real-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.study-real-stats strong { font-size: 26px; font-weight: 800; line-height: 1.3; }
.study-real-stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.study-progress-card > .text-link { display: flex; justify-content: space-between; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; }
.study-empty { padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.study-empty > span { display: inline-flex; margin-bottom: 18px; color: var(--success); }
.study-empty h2 { font-size: 25px; }
.study-empty p { margin: 14px 0 22px; color: var(--muted); }
@media (min-width: 981px) { .is-today .home-topbar { justify-content: flex-end; } }
@media (max-width: 1180px) and (min-width: 901px) {
  .is-today .workspace main { padding-inline: 26px; }
  .study-dashboard { grid-template-columns: minmax(0,1fr) 225px; gap: 24px; }
  .study-session { padding: 23px; }
  .study-side-card { padding: 18px; }
  .study-welcome h1 { font-size: 29px; }
  .study-course-switch span { display: none; }
  .study-session-actions { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 900px) {
  .is-today .workspace main { max-width: 680px; padding: 17px 24px 36px; }
  .is-today .home-topbar { max-width: 680px; min-height: 80px; padding: 20px 24px 12px; }
  .study-dashboard { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .study-side-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .study-daily-card { grid-row: span 2; }
  .study-stat-unit { display: none; }
}
@media (max-width: 520px) {
  .is-today .workspace main { padding: 12px 20px 30px; }
  .is-today .home-topbar { min-height: 74px; padding: 16px 20px 10px; gap: 12px; }
  .is-today .home-brand { font-size: 24px; gap: 7px; }
  .is-today .home-brand img { width: 38px; height: 38px; }
  .study-header-stats { gap: 13px; }
  .study-header-stats .home-streak, .study-header-xp { font-size: 12px; gap: 5px; }
  .study-header-stats .home-streak .icon, .study-header-xp .icon { width: 18px; height: 18px; }
  .study-welcome { margin-bottom: 22px; gap: 10px; }
  .study-welcome h1 { font-size: 29px; }
  .study-welcome p { font-size: 12px; }
  .study-overline { font-size: 8px; letter-spacing: 1.3px; }
  .study-course-switch { width: 44px; padding: 8px; }
  .study-course-switch span { display: none; }
  .study-search.home-search { margin-bottom: 19px; padding-left: 14px; gap: 9px; }
  .study-search.home-search input { font-size: 14px; }
  .study-session { padding: 23px; border-radius: 20px; }
  .study-session h2 { margin-top: 22px; font-size: 28px; }
  .study-session-description { font-size: 13px; }
  .study-session-format { margin-top: 17px; font-size: 11px; }
  .study-session-top { gap: 8px 10px; }
  .study-session-label { font-size: 11px; }
  .study-subject { font-size: 10px; }
  .study-session-actions { display: grid; gap: 7px; margin-top: 21px; }
  .study-session .home-lesson-continue { width: 100%; }
  .study-reference { min-height: 40px; }
  .study-syllabus { margin-top: 29px; }
  .study-section-heading { gap: 10px; }
  .study-section-heading h2 { font-size: 22px; }
  .study-section-heading p { font-size: 12px; }
  .study-section-heading .text-link { font-size: 11px; gap: 5px; }
  .study-topic-row { gap: 11px; }
  .study-topic-index { flex-basis: 22px; font-size: 11px; }
  .study-topic-copy strong { font-size: 15px; }
  .study-side-column { grid-template-columns: minmax(0,1fr); }
  .study-daily-card { grid-row: auto; }
  .study-day-mark { width: 30px; }
}
@media (max-width: 360px) {
  .is-today .workspace main { padding-inline: 15px; }
  .is-today .home-topbar { padding-inline: 15px; }
  .is-today .home-brand { font-size: 22px; gap: 4px; }
  .is-today .home-brand img { width: 33px; height: 33px; }
  .study-header-stats { gap: 10px; }
  .study-session { padding: 20px; }
  .study-welcome h1 { font-size: 27px; }
  .study-session h2 { font-size: 26px; }
  .study-topic-open { flex-basis: 36px; width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .study-session .home-lesson-continue, .study-topic-open { transition: none; }
  .study-session .home-lesson-continue:active { transform: none; }
}
