/* Component geometry, controls and responsive layouts. Theme values are centralized in theme.css. */
* {
  box-sizing:border-box;
}
body {
  margin:0;
  font-size:15px;
  line-height:1.7;
}
button,input,select,textarea {
  font:inherit;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
a {
  text-decoration:none;
  color:inherit;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:28px;
  letter-spacing:-1px;
  line-height:1.45;
}
h2 {
  font-size:18px;
  letter-spacing:-.4px;
}
h3 {
  font-size:15px;
  line-height:1.6;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px;
}
.icon {
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
  flex-shrink:0;
}
.small {
  font-size:15px;
}
.tiny {
  font-size:15px;
}
.muted {
  color:var(--muted);
}
.eyebrow {
  font-size:15px;
  letter-spacing:1.7px;
  text-transform:uppercase;
  font-weight:600;
}
.flex {
  display:flex;
  align-items:center;
  gap:10px;
}
.between {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.wrap {
  flex-wrap:wrap;
}
.stack {
  display:grid;
  gap:18px;
  align-content:start;
}
.spacer {
  margin-top:24px;
}
.top-gap {
  margin-top:12px;
}
.hidden {
  display:none!important;
}
.sidebar {
  width:244px;
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  background:var(--card);
  border-right:1px solid var(--line);
  padding:30px 20px 18px;
  display:flex;
  flex-direction:column;
  overflow:auto;
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 8px 30px;
}
.brand img {
  width:38px;
  height:38px;
}
.brand strong {
  font-size:17px;
  letter-spacing:-.6px;
}
.brand small {
  font-size:15px;
  display:block;
  color:var(--muted);
  margin-top:2px;
  line-height:1.7;
}
.nav-list {
  display:grid;
  gap:5px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  border-radius:9px;
  font-size:15px;
  color:var(--muted);
  min-height:43px;
}
.nav-item:hover {
  background:var(--soft);
}
.nav-item.active {
  background:var(--soft);
  color:var(--green);
  font-weight:600;
}
.nav-item .icon {
  width:18px;
  height:18px;
}
.badge-count {
  margin-left:auto;
  background:var(--soft);
  font-size:15px;
  padding:0 6px;
  border-radius:4px;
}
.nav-label {
  font-size:15px;
  letter-spacing:1.6px;
  color:var(--muted);
  padding:27px 13px 11px;
}
.nav-course {
  font-size:15px;
}
.nav-course i {
  width:7px;
  height:7px;
  border-radius:50%;
  flex:none;
}
.chev {
  margin-left:auto;
  opacity:.5;
}
.sidebar-foot {
  margin-top:auto;
  padding-top:26px;
}
.goal-card {
  padding:16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--soft);
  margin-bottom:18px;
}
.goal-card p {
  font-size:15px;
  color:var(--ink);
  margin:9px 0;
  line-height:1.9;
}
.goal-card a {
  font-size:15px;
  color:var(--green);
}
.profile {
  border-top:1px solid var(--line);
  padding:18px 8px 0;
  display:flex;
  gap:10px;
  align-items:center;
}
.avatar {
  width:33px;
  height:33px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--soft);
  color:var(--muted);
}
.profile strong {
  font-size:15px;
}
.profile small {
  display:block;
  color:var(--muted);
  font-size:15px;
}
.profile button {
  margin-left:auto;
}
.shell {
  margin-left:244px;
}
.topbar {
  height:80px;
  border-bottom:1px solid var(--line);
  padding:0 36px;
  display:flex;
  align-items:center;
  gap:24px;
  background:var(--card);
}
.crumb {
  font-size:15px;
  color:var(--muted);
  white-space:nowrap;
}
.crumb strong {
  color:var(--ink);
  font-weight:500;
  margin-left:12px;
}
.searchbar {
  display:flex;
  align-items:center;
  position:relative;
  flex:1;
  max-width:340px;
  margin-left:auto;
}
.searchbar .icon {
  position:absolute;
  left:13px;
  width:16px;
  color:var(--muted);
}
.searchbar input {
  height:38px;
  background:var(--card);
  padding-left:38px;
  font-size:15px;
}
.top-date {
  font-size:15px;
  color:var(--muted);
}
.focus-short {
  font-size:15px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  white-space:nowrap;
}
.focus-short .icon {
  width:15px;
  height:15px;
}
.mobile-menu {
  display:none;
}
.content {
  max-width:1600px;
  margin:auto;
  padding:29px 36px;
}
.welcome {
  margin-bottom:25px;
}
.welcome p {
  color:var(--muted);
  font-size:15px;
  margin-top:5px;
}
.welcome .today-tag {
  font-size:15px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 11px;
  color:var(--muted);
  white-space:nowrap;
}
.welcome .icon {
  width:16px;
  height:16px;
}
.dashboard {
  display:grid;
  grid-template-columns:minmax(0,1fr) 282px;
  gap:25px;
}
.hero {
  background:var(--side);
  color:var(--on-dark);
  border-radius:18px;
  padding:28px 30px;
  position:relative;
  overflow:hidden;
  min-height:222px;
}
.hero .eyebrow {
  color:var(--muted);
}
.hero h2 {
  font-size:29px;
  font-weight:500;
  line-height:1.45;
  letter-spacing:-.8px;
  margin:12px 0 10px;
  position:relative;
  z-index:1;
}
.hero p {
  font-size:15px;
  color:var(--muted);
  max-width:350px;
  position:relative;
  z-index:1;
}
.hero .btn {
  margin-top:20px;
  background:var(--soft);
  color:var(--ink);
  position:relative;
  z-index:1;
}
.hero-art {
  position:absolute;
  right:0;
  top:12px;
  width:235px;
  height:220px;
  opacity:.85;
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
  margin-top:17px;
}
.stat {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:12px;
  padding:15px;
  display:flex;
  gap:13px;
  align-items:center;
}
.stat-icon {
  display:grid;
  place-items:center;
  width:37px;
  height:37px;
  background:var(--soft);
  border-radius:10px;
  color:var(--muted);
}
.stat strong {
  font-size:23px;
  font-weight:600;
  line-height:1.3;
}
.stat strong small {
  font-size:15px;
  font-weight:400;
  color:var(--muted);
}
.stat span {
  display:block;
  font-size:15px;
  color:var(--muted);
  margin-top:4px;
}
.section-head {
  margin:27px 0 15px;
}
.section-head h2 {
  font-size:16px;
}
.section-head p {
  font-size:15px;
  color:var(--muted);
  margin-top:3px;
}
.text-button {
  font-size:15px;
  color:var(--green);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.text-button .icon {
  width:15px;
  height:15px;
}
.course-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.course-card {
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  transition:transform .18s,box-shadow .18s;
}
.course-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 25px var(--shadow-color);
  border-color:var(--line);
}
.course-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}
.topic-icon {
  width:40px;
  height:40px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--topic);
  background:var(--topic-bg);
}
.topic-icon .icon {
  width:22px;
  height:22px;
}
.course-top>span {
  font-size:15px;
  color:var(--muted);
}
.course-card h3 {
  font-size:15px;
  margin-bottom:5px;
}
.course-card p {
  font-size:15px;
  color:var(--muted);
  min-height:37px;
}
.course-bottom {
  margin-top:17px;
}
.course-bottom span {
  font-size:15px;
  color:var(--muted);
}
.progressbar {
  height:4px;
  background:var(--soft);
  border-radius:5px;
  overflow:hidden;
  margin-top:8px;
}
.progressbar>i {
  display:block;
  height:100%;
  background:var(--topic,var(--green));
  border-radius:5px;
}
.course-card:last-child:nth-child(odd) {
  grid-column:1/-1;
}
.panel {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}
.panel h2 {
  font-size:15px;
}
.subtitle {
  font-size:15px;
  color:var(--muted);
  margin-top:4px;
}
.dashboard-right {
  align-self:start;
}
.today-task {
  display:flex;
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.today-list {
  margin-top:12px;
}
.today-task:last-child {
  border:0;
}
.check-btn {
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  flex:none;
  border-radius:50%;
  border:1.4px solid var(--line);
  margin-top:3px;
  padding:0;
  background:var(--card);
}
.check-btn.done {
  background:var(--green);
  border-color:var(--green);
  color:var(--on-dark);
}
.check-btn .icon {
  width:13px;
  height:13px;
}
.task-body {
  min-width:0;
  flex:1;
}
.task-body button {
  text-align:left;
  padding:0;
  font-size:15px;
  line-height:1.8;
}
.task-body small {
  font-size:15px;
  color:var(--muted);
  display:block;
}
.task-body.finished button {
  text-decoration:line-through;
  color:var(--muted);
}
.tag {
  display:inline-flex;
  align-items:center;
  font-size:15px;
  font-weight:500;
  background:var(--soft);
  color:var(--muted);
  border-radius:5px;
  padding:3px 7px;
}
.tag.neutral {
  background:var(--soft);
  color:var(--muted);
}
.tag.blue {
  background:var(--soft);
  color:var(--muted);
}
.tag.gold {
  background:var(--soft);
  color:var(--muted);
}
.timer-panel {
  background:var(--soft);
  border-color:var(--line);
  text-align:center;
}
.timer-label {
  color:var(--muted);
  font-size:15px;
  letter-spacing:1.5px;
}
.timer-display {
  font-size:44px;
  font-weight:400;
  letter-spacing:-2px;
  line-height:1.5;
  margin:7px 0 4px;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
}
.timer-panel p {
  font-size:15px;
  color:var(--muted);
}
.timer-panel select {
  font-size:15px;
  height:33px;
  margin-top:12px;
  padding:5px;
  background:var(--card);
}
.timer-actions {
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:16px;
}
.week-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
  margin:17px 0 12px;
}
.day {
  text-align:center;
  font-size:15px;
  color:var(--muted);
}
.day i {
  display:block;
  height:24px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:5px;
  margin:7px 0;
}
.day i.done {
  background:var(--accent);
}
.day i.today {
  outline:1px solid var(--focus);
  outline-offset:2px;
}
.tip {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
}
.tip strong {
  color:var(--ink);
}
.footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:30px;
  font-size:15px;
  color:var(--muted);
}
.footer .icon {
  width:13px;
  height:13px;
}
.btn {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  background:var(--green);
  color:var(--on-dark);
  border:1px solid transparent;
  border-radius:8px;
  padding:10px 15px;
  font-size:15px;
  font-weight:500;
  min-height:38px;
}
.btn:hover {
  filter:brightness(.96);
}
.btn .icon {
  height:16px;
  width:16px;
}
.btn.secondary {
  background:var(--card);
  border-color:var(--line);
  color:var(--ink);
}
.btn.soft {
  background:var(--soft);
  color:var(--muted);
}
.btn.danger {
  background:var(--soft);
  color:var(--danger);
}
.btn.small {
  font-size:15px;
  padding:7px 10px;
  min-height:32px;
}
.btn.full {
  width:100%;
}
.icon-button {
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  flex:none;
  border-radius:7px;
  color:var(--muted);
}
.icon-button .icon {
  width:17px;
  height:17px;
}
.icon-button:hover {
  background:var(--soft);
}
.icon-button.saved {
  background:var(--soft);
  color:var(--muted);
}
.tabs {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  margin:22px 0;
}
.tab {
  padding:8px 14px;
  border-radius:8px;
  font-size:15px;
  color:var(--muted);
  background:var(--card);
  border:1px solid transparent;
  display:inline-flex;
  gap:6px;
  align-items:center;
}
.tab.active {
  background:var(--soft);
  border-color:var(--line);
  color:var(--green);
  font-weight:600;
}
.tab .icon {
  width:17px;
}
.page-intro {
  display:flex;
  gap:16px;
  align-items:center;
}
.page-intro .topic-icon {
  height:55px;
  width:55px;
  border-radius:14px;
  flex:none;
}
.page-intro h1 {
  font-size:25px;
}
.page-intro p {
  font-size:15px;
  color:var(--muted);
  margin-top:5px;
}
.course-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:24px;
  margin-top:24px;
}
.intro-note {
  background:var(--soft);
  border-radius:14px;
  padding:20px;
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
}
.stage-title {
  font-size:15px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.8px;
  margin:23px 0 10px;
}
.lesson-row {
  display:flex;
  align-items:center;
  gap:13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  padding:16px 18px;
  margin-bottom:9px;
}
.lesson-row.completed {
  background:var(--soft);
}
.lesson-num {
  width:28px;
  font-size:15px;
  color:var(--muted);
  flex:none;
}
.lesson-link {
  flex:1;
  min-width:0;
  text-align:left;
}
.lesson-link strong {
  font-size:15px;
  display:block;
  font-weight:500;
}
.lesson-link small {
  display:block;
  font-size:15px;
  margin-top:4px;
  color:var(--muted);
}
.course-aside {
  align-self:start;
  position:sticky;
  top:20px;
}
.resource-mini {
  display:block;
  border-bottom:1px solid var(--line);
  padding:13px 0;
  font-size:15px;
}
.resource-mini:last-child {
  border:0;
}
.resource-mini small {
  display:block;
  color:var(--muted);
  font-size:15px;
}
.progress-circle {
  width:100px;
  height:100px;
  border-radius:50%;
  background:conic-gradient(var(--accent) calc(var(--value)*1%),var(--track) 0);
  display:grid;
  place-items:center;
  margin:18px auto;
}
.progress-circle>span {
  width:84px;
  height:84px;
  border-radius:50%;
  background:var(--card);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:23px;
}
.progress-circle small {
  font-size:15px;
  color:var(--muted);
}
input,select,textarea {
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  color:var(--ink);
  width:100%;
  min-width:0;
  background:var(--card);
}
input::placeholder,textarea::placeholder {
  color:var(--muted);
}
textarea {
  resize:vertical;
  min-height:110px;
  line-height:1.8;
}
input[type=checkbox] {
  width:auto;
  accent-color:var(--line);
}
.field {
  display:grid;
  gap:7px;
  margin-bottom:17px;
}
.field label {
  font-size:15px;
  font-weight:500;
}
.field small {
  font-size:15px;
  color:var(--muted);
}
.check-label {
  font-size:15px;
  display:flex;
  align-items:center;
  gap:7px;
}
.filters {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:22px 0 18px;
}
.filters input {
  flex:1;
  min-width:180px;
}
.filters select {
  max-width:210px;
}
.resource-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.resource-card {
  border:1px solid var(--line);
  border-radius:14px;
  padding:21px;
  background:var(--card);
  display:flex;
  flex-direction:column;
  min-height:285px;
}
.resource-card .provider {
  font-size:15px;
  letter-spacing:.7px;
  color:var(--muted);
  margin:14px 0 8px;
  text-transform:uppercase;
}
.resource-card h3 {
  font-size:15px;
  min-height:42px;
}
.resource-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.resource-card p {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
  margin:11px 0 14px;
  flex:1;
}
.resource-card .bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:12px;
}
.resource-card .bottom small {
  font-size:15px;
  color:var(--muted);
}
.two-col,.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.three-col {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.settings-grid {
  margin-top:24px;
}
.settings-grid h2 {
  margin-bottom:18px;
}
.subtle-box {
  background:var(--soft);
  border-radius:10px;
  padding:17px;
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
}
.notice {
  border-left:3px solid var(--line);
  padding:8px 15px;
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
  margin:16px 0;
}
.empty {
  text-align:center;
  border:1px dashed var(--line);
  background:var(--card);
  border-radius:16px;
  padding:45px 20px;
  grid-column:1/-1;
  color:var(--muted);
}
.empty .icon {
  height:32px;
  width:32px;
}
.empty h3 {
  margin:12px 0 8px;
  color:var(--ink);
}
.empty p {
  max-width:440px;
  margin:auto;
  font-size:15px;
}
.practice-center {
  max-width:710px;
  margin:25px auto;
}
.quiz-card {
  padding:32px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  text-align:center;
}
.question {
  font-size:36px;
  letter-spacing:-1px;
  margin:30px 0 22px;
  line-height:1.5;
}
.question.long {
  font-size:25px;
}
.answer-input {
  max-width:270px;
  margin:0 auto 18px;
  display:block;
  font-size:24px;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.feedback {
  text-align:left;
  padding:18px;
  border-radius:10px;
  background:var(--soft);
  font-size:15px;
  line-height:1.9;
  color:var(--ink);
  margin:22px 0 15px;
}
.feedback.wrong {
  background:var(--soft);
  color:var(--danger);
}
.feedback strong {
  display:block;
  margin-bottom:6px;
}
.score-big {
  font-size:52px;
  margin:25px 0;
  color:var(--ink);
  font-weight:600;
  line-height:1.3;
}
.flashcard {
  min-height:310px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(130deg,var(--card),var(--soft));
  padding:35px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.flashcard .front {
  font-size:29px;
  font-weight:600;
  line-height:1.5;
  margin:20px 0;
}
.flashcard .back {
  font-size:20px;
  color:var(--ink);
  margin:12px 0 4px;
}
.flashcard .english {
  font-size:15px;
  color:var(--muted);
}
.flashcard .example {
  font-size:15px;
  color:var(--ink);
  margin:20px 0 3px;
}
.flashcard .translation {
  font-size:15px;
  color:var(--muted);
}
.flash-actions {
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
}
.reference-table {
  width:100%;
  border-collapse:collapse;
  text-align:center;
  font-size:15px;
}
.reference-table th,.reference-table td {
  border:1px solid var(--line);
  padding:9px;
  min-width:37px;
}
.reference-table th {
  background:var(--soft);
  color:var(--ink);
}
.reference-table td.diagonal {
  background:var(--soft);
  color:var(--muted);
}
.table-scroll {
  overflow:auto;
  border-radius:10px;
}
.error-card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  margin-bottom:12px;
}
.error-card.resolved {
  opacity:.65;
}
.error-card h3,.error-card p {
  overflow-wrap:anywhere;
}
.error-card p {
  white-space:pre-wrap;
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
  margin:10px 0;
}
.progress-row {
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:15px;
}
.progress-row:last-child {
  border:0;
}
.chart-week {
  display:flex;
  justify-content:space-around;
  align-items:flex-end;
  height:150px;
  border-bottom:1px solid var(--line);
  gap:12px;
  margin:30px 0 10px;
}
.chart-day {
  height:100%;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  max-width:70px;
}
.chart-day .bar {
  background:var(--accent);
  width:75%;
  min-height:3px;
  border-radius:6px 6px 0 0;
}
.chart-day small {
  font-size:15px;
  color:var(--muted);
}
.chart-labels {
  display:flex;
  justify-content:space-around;
  font-size:15px;
  color:var(--muted);
}
.history-item {
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:15px;
}
.history-item small {
  font-size:15px;
  color:var(--muted);
}
.library-files {
  display:grid;
  gap:12px;
  margin-top:18px;
}
.file-card {
  display:flex;
  gap:15px;
  align-items:center;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:11px;
  padding:18px;
}
.file-card strong {
  display:block;
  font-size:15px;
}
.file-card small {
  font-size:15px;
  color:var(--muted);
}
.file-card>.icon:last-child {
  margin-left:auto;
}
#toast {
  position:fixed;
  left:50%;
  bottom:24px;
  max-width:90vw;
  background:var(--side);
  color:var(--on-dark);
  padding:12px 20px;
  border-radius:10px;
  font-size:15px;
  box-shadow:0 7px 30px var(--shadow-color);
  z-index:1000;
  opacity:0;
  transform:translate(-50%,12px);
  pointer-events:none;
  transition:.2s;
  text-align:center;
}
.toast-show {
  opacity:1!important;
  transform:translate(-50%,0)!important;
}
dialog {
  border:1px solid var(--line);
  border-radius:19px;
  padding:0;
  width:min(700px,92vw);
  max-height:90dvh;
  color:var(--ink);
  box-shadow:0 30px 100px var(--shadow-color);
}
dialog::backdrop {
  background:var(--scrim);
  backdrop-filter:blur(3px);
}
.modal-head {
  padding:20px 25px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  background:var(--card);
  position:sticky;
  top:0;
  z-index:1;
}
.modal-head h2 {
  font-size:16px;
}
.modal-body {
  padding:25px;
}
.modal-body h3 {
  margin:22px 0 10px;
  font-size:15px;
}
.lesson-body {
  font-size:15px;
  line-height:1.95;
  white-space:pre-line;
  color:var(--muted);
}
.exercise {
  padding:17px;
  background:var(--soft);
  border-radius:10px;
  font-size:15px;
  line-height:1.9;
  white-space:pre-line;
  color:var(--ink);
}
.criterion {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
  margin:10px 0 20px;
}
.modal-actions {
  padding:18px 25px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
  position:sticky;
  bottom:0;
  background:var(--card);
}
.modal-link {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 14px;
  margin-bottom:9px;
  font-size:15px;
}
.modal-link:hover {
  background:var(--soft);
}
.modal-link small {
  display:block;
  font-size:15px;
  color:var(--muted);
}
.modal-link .icon {
  width:15px;
}
.modal-body details {
  font-size:15px;
  color:var(--muted);
  padding:10px 0;
}
.modal-body summary {
  cursor:pointer;
}
.modal-body details a {
  display:block;
  padding:5px 0;
  text-decoration:underline;
}
.menu-shade {
  display:none;
}
@media(min-width:1450px) {
  .course-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .course-card:last-child {
    grid-column:1/-1;
  }
  .hero-art {
    right:20px;
  }
  .dashboard {
    grid-template-columns:minmax(0,1fr) 310px;
  }
}
@media(max-width:1180px) {
  .sidebar {
    width:215px;
    padding-left:14px;
    padding-right:14px;
  }
  .shell {
    margin-left:215px;
  }
  .brand strong {
    font-size:15px;
  }
  .content {
    padding:25px;
  }
  .topbar {
    padding:0 25px;
    gap:15px;
  }
  .dashboard {
    grid-template-columns:minmax(0,1fr) 255px;
    gap:19px;
  }
  .hero {
    padding:25px;
  }
  .hero h2 {
    font-size:26px;
  }
  .hero-art {
    width:180px;
    right:-30px;
    opacity:.4;
  }
  .stat {
    gap:9px;
    padding:13px 10px;
  }
  .stat-icon {
    width:30px;
    height:30px;
  }
  .stat strong {
    font-size:20px;
  }
  .stat span {
    font-size:15px;
  }
  .resource-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .top-date {
    display:none;
  }
  .course-layout {
    grid-template-columns:minmax(0,1fr) 245px;
  }
}
@media(max-width:980px) {
  .dashboard {
    grid-template-columns:minmax(0,1fr);
  }
  .dashboard-right {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .hero-art {
    width:230px;
    right:20px;
    opacity:.8;
  }
  .hero {
    min-height:215px;
  }
  .course-layout {
    grid-template-columns:minmax(0,1fr);
  }
  .course-aside {
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
  }
  .settings-grid {
    grid-template-columns:1fr;
  }
  .crumb {
    display:none;
  }
  .searchbar {
    margin-left:0;
    max-width:none;
  }
  .stat {
    padding:15px;
  }
  .stat-icon {
    height:36px;
    width:36px;
  }
}
@media(max-width:720px) {
  .sidebar {
    transform:translateX(-100%);
    width:256px;
    transition:transform .2s;
  }
  .sidebar.open {
    transform:translateX(0);
  }
  .menu-shade.show {
    display:block;
    position:fixed;
    inset:0;
    background:var(--scrim);
    z-index:25;
  }
  .shell {
    margin-left:0;
  }
  .topbar {
    height:66px;
    padding:0 18px;
    gap:12px;
    background:var(--card);
  }
  .mobile-menu {
    display:grid;
    place-items:center;
    width:28px;
    height:32px;
    padding:0;
  }
  .focus-short {
    font-size:0;
    padding:8px;
  }
  .focus-short .icon {
    height:17px;
    width:17px;
  }
  .content {
    padding:23px 18px;
  }
  .welcome {
    align-items:flex-start;
    margin-bottom:20px;
  }
  .welcome h1 {
    font-size:24px;
  }
  .welcome p {
    font-size:15px;
    max-width:280px;
  }
  .welcome .today-tag {
    display:none;
  }
  .hero {
    padding:24px;
    min-height:222px;
  }
  .hero h2 {
    font-size:26px;
  }
  .hero p {
    font-size:15px;
    max-width:260px;
  }
  .hero-art {
    right:-75px;
    top:25px;
    opacity:.35;
  }
  .stat-grid {
    gap:8px;
  }
  .stat {
    padding:12px 10px;
    display:block;
  }
  .stat-icon {
    display:none;
  }
  .stat strong {
    font-size:23px;
  }
  .stat span {
    font-size:15px;
  }
  .course-grid {
    gap:11px;
  }
  .course-card {
    padding:17px 14px;
  }
  .course-card h3 {
    font-size:15px;
  }
  .course-card p {
    font-size:15px;
    min-height:54px;
  }
  .course-top {
    margin-bottom:12px;
  }
  .course-top>span {
    font-size:15px;
  }
  .topic-icon {
    width:35px;
    height:35px;
  }
  .course-bottom span {
    font-size:15px;
  }
  .dashboard-right,.course-aside,.two-col,.three-col {
    grid-template-columns:1fr;
  }
  .footer {
    flex-direction:column;
    gap:7px;
  }
  .resource-grid {
    grid-template-columns:1fr;
  }
  .resource-card {
    min-height:auto;
  }
  .resource-card h3 {
    min-height:0;
  }
  .filters {
    gap:8px;
  }
  .filters select {
    max-width:none;
    flex:1;
    min-width:130px;
  }
  .filters input {
    flex-basis:100%;
  }
  .page-intro h1 {
    font-size:22px;
  }
  .page-intro .topic-icon {
    width:48px;
    height:48px;
  }
  .page-intro p {
    font-size:15px;
  }
  .quiz-card {
    padding:25px 18px;
  }
  .question {
    font-size:33px;
  }
  .question.long {
    font-size:23px;
  }
  .flashcard {
    padding:25px 18px;
  }
  .flashcard .front {
    font-size:26px;
  }
  .modal-head {
    padding:17px 19px;
  }
  .modal-body {
    padding:20px;
  }
  .modal-actions {
    padding:14px 18px;
    flex-wrap:wrap;
  }
  .lesson-row {
    padding:14px 11px;
    gap:8px;
  }
  .lesson-link strong {
    font-size:15px;
  }
  .lesson-num {
    width:22px;
  }
  .tabs {
    gap:6px;
  }
  .tab {
    padding:8px 11px;
    font-size:15px;
  }
  .welcome>.btn {
    font-size:15px;
    padding:8px 10px;
  }
  .modal-head h2 {
    font-size:15px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    animation:none!important;
  }
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
body {
  font-size:15px;
  line-height:1.65;
  background:var(--bg);
  color:var(--ink);
}
h1 {
  font-size:32px;
  letter-spacing:-1.25px;
  font-weight:600;
}
h2 {
  font-weight:600;
}
button,a,input,select,textarea {
  touch-action:manipulation;
}
input,select,textarea {
  background:var(--card);
  color:var(--ink);
  border-color:var(--line);
  font-size:15px;
}
input:focus,textarea:focus,select:focus {
  border-color:var(--line);
  outline:2px solid var(--focus);
  outline-offset:1px;
}
.btn {
  background:var(--accent);
  color:var(--accent-ink);
  font-size:15px;
  font-weight:500;
  border-radius:8px;
  padding:10px 16px;
}
.btn.secondary {
  background:var(--card);
  color:var(--ink);
  border-color:var(--line);
}
.btn.small {
  font-size:15px;
}
.btn.soft {
  background:var(--soft);
  color:var(--ink);
}
.text-button {
  font-size:15px;
  color:var(--accent);
}
.icon-button {
  color:var(--muted);
}
.icon-button.saved {
  color:var(--danger);
  background:var(--soft);
}
.sidebar {
  width:236px;
  padding:29px 17px 20px;
  background:var(--side);
  color:var(--on-dark);
  border:0;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
}
.brand {
  padding:0 9px 31px;
  gap:10px;
}
.brand img {
  width:34px;
  height:34px;
}
.brand strong {
  font-size:16px;
  letter-spacing:-.6px;
  white-space:nowrap;
}
.brand small {
  font-size:15px;
  letter-spacing:1.1px;
  color:var(--muted);
  margin-top:4px;
}
.brand-dot {
  color:var(--muted);
}
.nav-list {
  gap:3px;
}
.nav-item {
  font-size:15px;
  color:var(--muted);
  border-radius:7px;
  gap:12px;
  padding:10px 13px;
  min-height:42px;
}
.nav-item:hover {
  background:var(--side);
  color:var(--on-dark);
}
.nav-item.active {
  background:var(--soft);
  color:var(--ink);
  font-weight:600;
}
.nav-item .icon {
  width:18px;
  height:18px;
  opacity:.9;
}
.nav-item .badge-count {
  background:var(--soft);
  color:var(--ink);
}
.nav-label {
  font-size:15px;
  letter-spacing:1.4px;
  color:var(--muted);
  padding:25px 13px 9px;
}
.nav-course {
  font-size:15px;
  line-height:1.6;
}
.nav-course i {
  width:6px;
  height:6px;
  box-shadow:0 0 0 4px var(--shadow-color);
}
.nav-course span:not(.chev) {
  flex:1;
}
.sidebar-foot {
  padding-top:24px;
}
.backup-link {
  font-size:15px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
}
.backup-link .icon {
  width:15px;
}
.profile {
  border-color:var(--line);
  padding-top:18px;
  margin-top:10px;
}
.profile .avatar {
  background:var(--side);
  color:var(--muted);
  font-size:15px;
}
.profile small {
  color:var(--muted);
  font-size:15px;
}
.profile .icon-button {
  color:var(--muted);
}
.shell {
  margin-left:236px;
}
.topbar {
  height:76px;
  padding:0 38px;
  gap:18px;
  position:sticky;
  top:0;
  z-index:20;
  background:var(--card);
  backdrop-filter:blur(12px);
}
.crumb {
  font-size:15px;
}
.crumb span {
  margin:0 8px;
  color:var(--muted);
}
.crumb strong {
  margin:0;
  color:var(--ink);
}
.searchbar {
  max-width:300px;
}
.searchbar input {
  background:var(--card);
  height:37px;
  border-color:var(--line);
  font-size:15px;
  padding-right:35px;
}
.searchbar kbd {
  position:absolute;
  right:12px;
  border:1px solid var(--line);
  padding:0 5px;
  border-radius:3px;
  font-family:inherit;
  font-size:15px;
  color:var(--muted);
}
.theme-toggle {
  border:1px solid var(--line);
  width:36px;
  height:36px;
  background:var(--card);
}
.focus-short {
  background:var(--accent);
  color:var(--accent-ink);
  border:0;
  border-radius:7px;
  padding:9px 12px;
  font-size:15px;
}
.content {
  padding:32px 38px;
  max-width:1600px;
}
.welcome {
  margin-bottom:29px;
}
.welcome .eyebrow {
  color:var(--muted);
  font-size:15px;
  letter-spacing:1.1px;
  margin-bottom:7px;
}
.welcome p {
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
  margin-top:7px;
}
.heading-dot {
  color:var(--muted);
}
.workspace-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:24px;
}
.stack {
  gap:20px;
}
.continue-card {
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:14px;
  padding:27px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  min-height:245px;
  position:relative;
}
.continue-copy {
  max-width:76%;
  color:var(--ink);
}
.continue-card .eyebrow {
  font-size:15px;
  color:var(--muted);
  letter-spacing:1.7px;
}
.course-kicker {
  font-size:15px;
  color:var(--muted);
  margin:10px 0;
}
.course-kicker span {
  margin:0 6px;
  color:var(--muted);
}
.continue-card h2 {
  font-size:23px;
  line-height:1.5;
  letter-spacing:-.6px;
  max-width:640px;
}
.continue-meta {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 20px;
  color:var(--muted);
  font-size:15px;
}
.continue-meta .icon {
  height:12px;
  width:12px;
}
.continue-link {
  font-size:15px;
  margin-left:16px;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:4px;
}
.continue-progress .progress-circle {
  width:92px;
  height:92px;
  background:conic-gradient(var(--accent) calc(var(--value)*1%),var(--track) 0);
  margin:0;
}
.continue-progress .progress-circle>span {
  width:80px;
  height:80px;
  background:var(--soft);
  font-size:24px;
  color:var(--ink);
}
.continue-progress .progress-circle small {
  font-size:15px;
  color:var(--muted);
}
.metrics-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
  padding:1px 0 22px;
}
.metrics-strip>div,.metrics-strip>button {
  border-right:1px solid var(--line);
  padding:0 23px;
  text-align:left;
}
.metrics-strip>:first-child {
  padding-left:4px;
}
.metrics-strip>:last-child {
  border:0;
}
.metrics-strip strong {
  font-size:25px;
  font-weight:600;
  letter-spacing:-.6px;
  display:block;
  line-height:1.5;
}
.metrics-strip strong small {
  font-size:15px;
  color:var(--muted);
  font-weight:400;
  letter-spacing:0;
}
.metrics-strip span {
  font-size:15px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
}
.metrics-strip .icon {
  width:12px;
  height:12px;
}
.section-head {
  margin:2px 0 17px;
}
.section-head h2 {
  font-size:18px;
  letter-spacing:-.6px;
}
.section-head p {
  font-size:15px;
  color:var(--muted);
  margin-top:4px;
}
.subject-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.subject-card {
  padding:21px 22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:11px;
  transition:border-color .18s,transform .18s;
  display:block;
}
.subject-card:hover {
  border-color:var(--line);
  transform:translateY(-2px);
}
.subject-card .topic-icon {
  height:34px;
  width:34px;
  border-radius:9px;
}
.subject-card .topic-icon .icon {
  width:18px;
  height:18px;
}
.subject-no {
  font-size:15px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.subject-card h3 {
  font-size:15px;
  margin-top:16px;
}
.subject-card p {
  font-size:15px;
  color:var(--muted);
  margin-top:5px;
  min-height:36px;
  line-height:1.8;
}
.subject-meta {
  display:flex;
  justify-content:space-between;
  font-size:15px;
  color:var(--muted);
  margin-top:19px;
}
.subject-meta .icon {
  width:12px;
  height:12px;
  margin-left:5px;
}
.subject-card .progressbar {
  height:3px;
  margin-top:11px;
}
.panel {
  border-radius:12px;
  background:var(--card);
  border-color:var(--line);
  padding:22px;
}
.panel h2 {
  font-size:15px;
}
.agenda .today-task {
  padding:15px 0;
  border-color:var(--line);
}
.today-list {
  margin-top:7px;
}
.task-body button {
  font-size:15px;
  color:var(--ink);
}
.task-body small {
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
  margin-top:3px;
}
.check-btn {
  border-color:var(--line);
  width:20px;
  height:20px;
  margin-top:3px;
  background:var(--card);
}
.check-btn.done {
  background:var(--accent);
  color:var(--accent-ink);
}
.agenda .icon-button {
  width:22px;
  height:25px;
}
.agenda .icon-button .icon {
  width:14px;
}
.timer-panel {
  background:var(--card);
  text-align:center;
}
.timer-label {
  font-size:15px;
  letter-spacing:1.3px;
  color:var(--muted);
}
.timer-display {
  font-size:47px;
  color:var(--ink);
  font-weight:500;
  letter-spacing:-2px;
  margin:9px 0 2px;
  line-height:1.45;
}
.timer-panel p {
  color:var(--muted);
  font-size:15px;
}
.timer-panel select {
  background:var(--bg);
  font-size:15px;
  height:35px;
  border-color:var(--line);
  margin-top:14px;
}
.timer-actions {
  margin-top:18px;
}
.quick-video {
  display:block;
  background:var(--soft);
}
.mini-label {
  font-size:15px;
  color:var(--muted);
  letter-spacing:1px;
  text-transform:uppercase;
}
.quick-video h3 {
  font-size:15px;
  margin:12px 0 7px;
}
.quick-video p {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
  margin-bottom:14px;
}
.home-news {
  margin-top:38px;
  padding-top:30px;
  border-top:1px solid var(--line);
}
.home-news .eyebrow {
  font-size:15px;
  color:var(--muted);
  letter-spacing:1.6px;
  margin-bottom:5px;
}
.home-news .section-head h2 {
  font-size:23px;
}
.news-status-row {
  margin:15px 0;
}
.news-status {
  font-size:15px;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.news-status i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
}
.news-status i.stale {
  background:var(--accent);
}
.news-country-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.country-digest {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:11px;
  padding:20px;
}
.country-heading {
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--line);
  padding-bottom:15px;
}
.country-heading>span {
  font-size:15px;
  letter-spacing:1px;
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:4px;
  color:var(--muted);
}
.country-heading h3 {
  font-size:15px;
}
.country-heading button {
  margin-left:auto;
  color:var(--muted);
}
.country-heading .icon {
  height:16px;
  width:16px;
}
.digest-item {
  display:flex;
  gap:11px;
  padding-top:18px;
}
.digest-number {
  font-size:15px;
  color:var(--muted);
  line-height:2.2;
}
.digest-item button {
  text-align:left;
  font-size:15px;
  line-height:1.85;
  font-weight:500;
  padding:0;
}
.digest-item button:hover {
  color:var(--accent);
}
.digest-item small {
  display:block;
  font-size:15px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.7;
}
.digest-item small span {
  white-space:nowrap;
}
.news-empty {
  font-size:15px;
  color:var(--muted);
  padding:20px 0;
}
.footer {
  font-size:15px;
  color:var(--muted);
  margin-top:38px;
  border-color:var(--line);
}
.tag {
  font-size:15px;
  border-radius:4px;
  background:var(--soft);
  color:var(--muted);
}
.tag.neutral {
  background:var(--bg);
  color:var(--muted);
}
.subtitle {
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}
.tabs {
  border-color:var(--line);
  gap:7px;
}
.tab {
  background:var(--card);
  color:var(--muted);
  border-color:var(--line);
  font-size:15px;
}
.tab.active {
  background:var(--soft);
  color:var(--accent);
  border-color:var(--line);
}
.page-intro h1 {
  font-size:28px;
}
.page-intro p {
  font-size:15px;
}
.intro-note {
  background:var(--soft);
  color:var(--ink);
  border-radius:11px;
  font-size:15px;
}
.course-layout {
  gap:24px;
}
.lesson-row {
  border-radius:9px;
  background:var(--card);
  border-color:var(--line);
  padding:17px;
}
.lesson-row.completed {
  background:var(--soft);
}
.lesson-link strong {
  font-size:15px;
  color:var(--ink);
}
.lesson-link small {
  font-size:15px;
  color:var(--muted);
}
.stage-title {
  font-size:15px;
  color:var(--muted);
  margin:27px 0 12px;
}
.progress-circle>span {
  background:var(--card);
}
.resource-mini {
  border-color:var(--line);
  font-size:15px;
}
.resource-card {
  background:var(--card);
  border-color:var(--line);
  border-radius:10px;
}
.resource-card h3 {
  font-size:15px;
}
.resource-card p {
  font-size:15px;
  color:var(--muted);
}
.resource-card .bottom {
  border-color:var(--line);
}
.resource-card .provider {
  color:var(--muted);
}
.filters {
  align-items:center;
}
.filters input {
  font-size:15px;
}
.filters select {
  font-size:15px;
}
.check-label {
  font-size:15px;
  white-space:nowrap;
}
.results-count {
  font-size:15px;
  color:var(--muted);
  margin:6px 0 18px;
}
.video-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 18px;
}
.video-card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
}
.video-thumbnail {
  display:block;
  width:100%;
  padding:0;
  position:relative;
  aspect-ratio:16/9;
  background:var(--side);
  overflow:hidden;
  text-align:left;
}
.video-thumbnail img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s;
}
.video-thumbnail:hover img {
  transform:scale(1.04);
}
.play-circle {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:43px;
  height:43px;
  border-radius:50%;
  background:var(--side);
  color:var(--on-dark);
  display:grid;
  place-items:center;
  box-shadow:0 3px 15px var(--shadow-color);
}
.play-circle .icon {
  width:18px;
  height:18px;
  margin-left:2px;
  fill:currentColor;
  stroke-width:1;
}
.playlist-art {
  height:100%;
  padding:25px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  background:var(--side);
  color:var(--muted);
}
.playlist-art>.icon {
  width:29px;
  height:29px;
}
.playlist-art strong {
  font-size:15px;
  letter-spacing:2px;
  font-weight:500;
}
.playlist-art>span {
  font-size:15px;
  color:var(--muted);
}
.playlist-art+.play-circle {
  left:auto;
  right:23px;
  transform:translateY(-50%);
  background:var(--soft);
  color:var(--ink);
}
.video-card-body {
  padding:17px 19px 14px;
}
.video-title {
  font-size:15px;
  font-weight:500;
  line-height:1.8;
  text-align:left;
  padding:0;
  margin:8px 0 6px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.video-card-body p {
  color:var(--muted);
  font-size:15px;
  margin-bottom:10px;
}
.video-card-body small {
  font-size:15px;
  color:var(--muted);
}
.watched-tag {
  position:absolute;
  bottom:10px;
  right:10px;
  font-size:15px;
  padding:3px 7px;
  background:var(--soft);
  color:var(--ink);
  border-radius:4px;
}
.wide-modal {
  width:min(980px,95vw);
}
.lesson-modal {
  width:min(1120px,96vw);
}
dialog {
  background:var(--card);
  color:var(--ink);
  border-color:var(--line);
  border-radius:13px;
  max-height:92dvh;
}
.modal-head {
  background:var(--card);
  border-color:var(--line);
  padding:21px 25px;
}
.modal-head h2 {
  font-size:15px;
  line-height:1.7;
}
.modal-body {
  padding:24px;
}
.modal-actions {
  background:var(--card);
  border-color:var(--line);
}
.lesson-toolbar {
  margin-bottom:20px;
}
.study-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 255px;
  gap:25px;
}
.study-main {
  min-width:0;
}
.study-notes {
  position:sticky;
  top:0;
  align-self:start;
  padding:16px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:9px;
}
.notes-heading {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:15px;
  font-weight:500;
  margin-bottom:15px;
}
.notes-heading .icon {
  width:15px;
  height:15px;
}
.notes-heading span {
  margin-left:auto;
  font-size:15px;
  font-weight:400;
  letter-spacing:1px;
  color:var(--muted);
}
.study-notes textarea {
  min-height:290px;
  font-size:15px;
  line-height:2;
  border:0;
  background:transparent;
  padding:0;
  outline:none;
  resize:vertical;
}
.study-notes .text-button {
  font-size:15px;
  display:flex;
}
.study-focus {
  width:98vw;
  max-width:1440px;
  max-height:97dvh;
}
.study-focus .study-layout {
  grid-template-columns:minmax(0,1fr) 290px;
}
.video-frame {
  position:relative;
  aspect-ratio:16/9;
  background:var(--video-black);
  border-radius:9px;
  overflow:hidden;
  width:100%;
}
.video-frame iframe {
  position:absolute;
  inset:0;
  border:0;
  width:100%;
  height:100%;
}
.player-caption {
  display:flex;
  gap:12px;
  justify-content:space-between;
  margin:13px 0;
}
.player-caption strong {
  display:block;
  font-size:15px;
  line-height:1.8;
}
.player-caption small {
  font-size:15px;
  color:var(--muted);
  display:block;
  margin-top:5px;
}
.video-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.video-tools .btn {
  font-size:15px;
  padding:7px 9px;
}
.time-bookmark {
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.time-bookmark label {
  font-size:15px;
  color:var(--muted);
}
.time-bookmark input {
  width:75px;
  font-size:15px;
  padding:6px 9px;
  height:30px;
}
.time-bookmark button {
  font-size:15px;
}
.video-help {
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
  margin-top:12px;
}
.video-help .text-button {
  font-size:15px;
  text-decoration:underline;
}
.video-choices {
  display:grid;
  gap:6px;
  margin:16px 0;
}
.video-choice {
  padding:10px 12px;
  font-size:15px;
  text-align:left;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:6px;
  line-height:1.8;
  display:flex;
  align-items:center;
  gap:8px;
}
.video-choice.selected {
  background:var(--soft);
  border-color:var(--line);
}
.video-choice .icon {
  width:14px;
  height:14px;
}
.lesson-body {
  font-size:15px;
  color:var(--muted);
  line-height:2;
}
.exercise {
  background:var(--soft);
  color:var(--ink);
  font-size:15px;
  border-radius:8px;
}
.criterion {
  font-size:15px;
  color:var(--muted);
}
.modal-body h3 {
  font-size:15px;
  margin:24px 0 11px;
}
.modal-link {
  background:var(--card);
  border-color:var(--line);
  padding:12px 14px;
  align-items:center;
}
.modal-body details {
  font-size:15px;
  color:var(--muted);
}
.modal-body details a {
  padding:0;
  text-decoration:none;
}
.modal-body details summary {
  margin-bottom:12px;
}
.lesson-jump {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:12px 0;
  font-size:15px;
  text-align:left;
  width:100%;
  border-bottom:1px solid var(--line);
}
.news-title-strip {
  background:var(--soft);
  border:1px solid var(--line);
  padding:27px 30px;
  border-radius:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.news-title-strip .eyebrow {
  font-size:15px;
  color:var(--muted);
}
.news-title-strip h2 {
  font-size:26px;
  font-weight:500;
  letter-spacing:-.8px;
  margin-top:9px;
}
.news-title-strip h2 span {
  color:var(--muted);
  margin:0 10px;
}
.news-title-strip .news-status {
  font-size:15px;
}
.news-filters {
  margin-top:0;
}
.news-list {
  border-top:1px solid var(--line);
}
.news-row {
  display:grid;
  grid-template-columns:145px minmax(0,1fr) 65px;
  gap:25px;
  padding:24px 5px;
  border-bottom:1px solid var(--line);
  align-items:start;
}
.news-row-meta {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  font-size:15px;
  color:var(--muted);
}
.country-chip {
  font-size:15px;
  letter-spacing:1px;
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:3px;
  color:var(--ink);
  background:var(--card);
}
.news-title {
  font-size:16px;
  font-weight:500;
  letter-spacing:-.3px;
  text-align:left;
  line-height:1.7;
  padding:0;
}
.news-title:hover {
  color:var(--accent);
}
.news-row-main p {
  font-size:15px;
  color:var(--muted);
  margin:8px 0;
  line-height:1.9;
}
.news-row-main time {
  font-size:15px;
  color:var(--muted);
}
.news-row-actions {
  display:flex;
  gap:3px;
}
.portal-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}
.portal-card {
  background:var(--card);
  border:1px solid var(--line);
  padding:23px;
  border-radius:10px;
}
.source-monogram {
  font-size:15px;
  background:var(--soft);
  color:var(--accent);
  height:39px;
  width:39px;
  display:grid;
  place-items:center;
  border-radius:7px;
  letter-spacing:-1px;
  font-weight:600;
}
.portal-card h3 {
  font-size:18px;
  margin:19px 0 8px;
  letter-spacing:-.4px;
}
.portal-card p {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
  min-height:60px;
}
.portal-card .resource-meta {
  margin-top:15px;
}
.article-heading {
  font-size:25px;
  line-height:1.55;
  margin:17px 0 12px;
  letter-spacing:-.5px;
}
.article-excerpt {
  font-size:15px;
  color:var(--muted);
  line-height:1.95;
  margin:20px 0;
}
.subtle-box {
  background:var(--soft);
  color:var(--ink);
}
.notice {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
  border-color:var(--line);
}
.empty {
  background:var(--card);
  border-color:var(--line);
  color:var(--muted);
}
.empty h3 {
  color:var(--ink);
}
.quiz-card,.flashcard,.error-card,.file-card {
  background:var(--card);
  border-color:var(--line);
  border-radius:12px;
}
.question {
  font-size:38px;
}
.feedback {
  background:var(--soft);
  color:var(--ink);
}
.error-card p {
  color:var(--muted);
}
.history-item,.progress-row {
  border-color:var(--line);
}
.reference-table th {
  background:var(--soft);
  color:var(--ink);
}
.reference-table td,.reference-table th {
  border-color:var(--line);
}
#toast {
  font-size:15px;
  background:var(--side);
  color:var(--on-dark);
}
@media(min-width:1500px) {
  .subject-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 310px;
  }
  .subject-card p {
    min-height:48px;
  }
}
@media(max-width:1200px) {
  .content {
    padding:28px;
  }
  .topbar {
    padding:0 28px;
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 260px;
    gap:18px;
  }
  .continue-card {
    padding:23px;
    gap:15px;
  }
  .continue-progress {
    display:none;
  }
  .continue-copy {
    max-width:100%;
  }
  .continue-card h2 {
    font-size:22px;
  }
  .video-grid,.portal-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .news-country-grid {
    gap:12px;
  }
  .country-digest {
    padding:17px;
  }
  .news-row {
    grid-template-columns:125px minmax(0,1fr) 65px;
    gap:15px;
  }
  .study-layout {
    grid-template-columns:minmax(0,1fr) 230px;
  }
  .metrics-strip>div,.metrics-strip>button {
    padding:0 13px;
  }
}
@media(max-width:1000px) {
  .workspace-grid {
    grid-template-columns:1fr;
  }
  .dashboard-right {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
  .quick-video {
    grid-column:1/-1;
  }
  .news-country-grid {
    grid-template-columns:1fr;
  }
  .country-digest {
    padding:22px;
  }
  .digest-item {
    padding-top:15px;
  }
  .continue-progress {
    display:block;
  }
  .continue-copy {
    max-width:76%;
  }
  .study-layout,.study-focus .study-layout {
    grid-template-columns:1fr;
  }
  .study-notes {
    position:static;
  }
  .study-notes textarea {
    min-height:180px;
  }
  .news-title-strip {
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }
}
@media(max-width:720px) {
  .sidebar {
    width:266px;
  }
  .shell {
    margin-left:0;
  }
  .content {
    padding:25px 18px;
  }
  .topbar {
    height:65px;
    padding:0 16px;
    gap:10px;
  }
  .crumb {
    display:none;
  }
  .searchbar {
    max-width:none;
  }
  .searchbar input {
    font-size:15px;
  }
  .searchbar kbd {
    display:none;
  }
  .theme-toggle {
    width:33px;
    height:33px;
  }
  .focus-short {
    font-size:0;
    padding:9px;
  }
  .focus-short .icon {
    width:15px;
    height:15px;
  }
  .welcome {
    align-items:flex-start;
    gap:10px;
    margin-bottom:24px;
  }
  .welcome h1 {
    font-size:27px;
    letter-spacing:-1px;
  }
  .welcome .eyebrow {
    font-size:15px;
    letter-spacing:.8px;
  }
  .welcome p {
    font-size:15px;
    max-width:290px;
  }
  .welcome>.btn {
    font-size:0;
    padding:8px;
    min-width:35px;
  }
  .welcome>.btn .icon {
    height:16px;
    width:16px;
  }
  .continue-card {
    padding:23px 22px;
    min-height:250px;
  }
  .continue-progress {
    display:none;
  }
  .continue-copy {
    max-width:100%;
  }
  .continue-card h2 {
    font-size:21px;
  }
  .continue-meta {
    font-size:15px;
    gap:9px;
    margin:12px 0 20px;
  }
  .course-kicker {
    font-size:15px;
  }
  .continue-card .eyebrow {
    font-size:15px;
  }
  .continue-link {
    font-size:15px;
    margin-left:10px;
  }
  .continue-card .btn {
    font-size:15px;
  }
  .metrics-strip {
    padding-bottom:20px;
  }
  .metrics-strip strong {
    font-size:23px;
  }
  .metrics-strip span {
    font-size:15px;
    line-height:1.7;
  }
  .metrics-strip strong small {
    font-size:15px;
  }
  .metrics-strip>div,.metrics-strip>button {
    padding:0 11px;
  }
  .section-head h2 {
    font-size:17px;
  }
  .section-head p {
    font-size:15px;
  }
  .subject-grid {
    gap:11px;
  }
  .subject-card {
    padding:17px 15px;
  }
  .subject-card h3 {
    font-size:15px;
    margin-top:14px;
  }
  .subject-card p {
    font-size:15px;
    line-height:1.8;
    min-height:53px;
  }
  .subject-no {
    font-size:15px;
  }
  .subject-meta {
    font-size:15px;
    margin-top:15px;
  }
  .subject-meta .icon {
    height:10px;
    width:10px;
    margin-left:2px;
  }
  .subject-card .topic-icon {
    width:31px;
    height:31px;
  }
  .dashboard-right {
    grid-template-columns:1fr;
  }
  .home-news {
    margin-top:30px;
    padding-top:26px;
  }
  .home-news .section-head h2 {
    font-size:22px;
  }
  .home-news .section-head {
    align-items:flex-end;
  }
  .home-news .btn {
    font-size:15px;
    padding:8px 10px;
  }
  .home-news .eyebrow {
    font-size:15px;
  }
  .news-status {
    font-size:15px;
  }
  .news-status-row .text-button {
    font-size:15px;
  }
  .country-digest {
    padding:20px;
  }
  .digest-item button {
    font-size:15px;
  }
  .video-grid,.portal-grid {
    grid-template-columns:1fr;
  }
  .video-card-body {
    padding:19px;
  }
  .video-title {
    font-size:15px;
  }
  .video-card-body p {
    font-size:15px;
  }
  .video-card-body small {
    font-size:15px;
  }
  .filters select {
    max-width:none;
    font-size:15px;
  }
  .modal-body {
    padding:18px;
  }
  .modal-head {
    padding:17px 18px;
  }
  .modal-head h2 {
    font-size:15px;
  }
  .modal-actions {
    padding:14px 18px;
  }
  .lesson-modal,.wide-modal {
    width:96vw;
  }
  .lesson-toolbar {
    margin-bottom:15px;
  }
  .lesson-toolbar .tag {
    font-size:15px;
  }
  .study-layout {
    gap:18px;
  }
  .player-caption strong {
    font-size:15px;
  }
  .video-frame {
    border-radius:6px;
  }
  .video-tools {
    gap:12px;
  }
  .video-help {
    font-size:15px;
  }
  .study-notes {
    padding:16px;
  }
  .study-notes textarea {
    min-height:200px;
  }
  .news-title-strip {
    padding:23px;
  }
  .news-title-strip h2 {
    font-size:24px;
  }
  .news-title-strip h2 span {
    margin:0 5px;
  }
  .news-title-strip .eyebrow {
    font-size:15px;
  }
  .news-row {
    grid-template-columns:minmax(0,1fr) 30px;
    gap:13px;
    padding:22px 0;
  }
  .news-row-meta {
    grid-column:1/-1;
    flex-direction:row;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
    font-size:15px;
  }
  .news-row-main {
    grid-column:1;
  }
  .news-row-actions {
    grid-column:2;
    flex-direction:column;
  }
  .news-title {
    font-size:15px;
    line-height:1.75;
  }
  .news-row-main p {
    font-size:15px;
  }
  .news-row-main time {
    font-size:15px;
  }
  .article-heading {
    font-size:21px;
  }
  .article-excerpt {
    font-size:15px;
  }
  .portal-card p {
    min-height:0;
  }
  .page-intro h1 {
    font-size:23px;
  }
  .page-intro p {
    font-size:15px;
  }
  .lesson-link strong {
    font-size:15px;
  }
  .lesson-row {
    padding:15px 12px;
  }
  .lesson-link small {
    font-size:15px;
  }
  .course-aside {
    grid-template-columns:1fr;
  }
  .timer-display {
    font-size:48px;
  }
  .resource-grid {
    grid-template-columns:1fr;
  }
  .footer {
    font-size:15px;
  }
  .two-col,.three-col {
    grid-template-columns:1fr;
  }
}
.filters input[type=checkbox] {
  flex:none;
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
  padding:0;
  accent-color:var(--accent);
}
.filters .check-label {
  min-height:36px;
  cursor:pointer;
}
/* Readable type at laptop and phone sizes. */
body {
  font-size:1rem;
}
.btn,.btn.small,.text-button,.nav-item,.nav-course,.task-body button,.subject-card h3,.video-title,.digest-item button,.news-title,.check-label {
  font-size:0.9375rem;
}
.nav-course {
  line-height:1.5;
}
.brand small,.nav-label,.backup-link,.profile small,.eyebrow,.mini-label,.timer-label,.tag,.tiny,.welcome .eyebrow,.continue-card .eyebrow,.course-kicker,.continue-meta,.continue-link,.subject-card p,.subject-meta,.metrics-strip span,.task-body small,.timer-panel p,.timer-panel select,.quick-video p,.home-news .eyebrow,.news-status,.country-heading>span,.digest-item small,.news-empty,.footer,.player-caption small,.video-help,.time-bookmark label,.time-bookmark input,.notes-heading span,.resource-meta,.resource-mini small,.lesson-link small,.results-count,.news-row-meta,.news-row time {
  font-size:0.9375rem;
}
.profile strong,.crumb,.searchbar input,.focus-short,.filters input,.filters select,input,select,textarea,.time-bookmark .text-button,.video-card-body p,.video-card-body small,.panel p,.intro-note p,.lesson-body,.exercise,.criterion,.modal-link,.source-monogram {
  font-size:0.9375rem;
}
.welcome p,.subject-card h3,.quick-video h3,.panel h2 {
  font-size:1rem;
}
.subject-card p {
  min-height:45px;
}
.subject-no,.digest-number {
  display:none;
}
.metrics-strip strong {
  font-size:1.8rem;
}
.searchbar kbd {
  font-size:0.9375rem;
}
.brand small {
  font-size:0.9375rem;
}
.nav-label {
  font-size:0.9375rem;
}
.notes-heading {
  font-size:0.9375rem;
}
.news-row-main p,.article-excerpt {
  font-size:1rem;
}
.course-aside .panel p,.timer-panel p {
  font-size:0.9375rem;
}
.news-row-meta {
  line-height:1.7;
}
.filters input[type=checkbox] {
  flex:none;
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
}
select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23738078' stroke-width='1.5'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:32px;
}
@media(max-width:720px) {
  .nav-course,.nav-item {
    font-size:0.9375rem;
  }
  .content {
    padding:24px 18px;
  }
  .continue-copy {
    max-width:100%;
  }
  .continue-card {
    padding:23px;
  }
  .continue-card h2 {
    font-size:1.375rem;
  }
  .subject-card {
    padding:17px 14px;
  }
  .subject-card h3 {
    font-size:0.9375rem;
  }
  .subject-card p {
    min-height:60px;
  }
  .filters select {
    font-size:0.9375rem;
  }
  .searchbar input {
    font-size:0.9375rem;
  }
  .video-tools {
    gap:14px;
  }
  .time-bookmark {
    flex-wrap:wrap;
  }
  .news-status {
    line-height:1.6;
  }
  .metrics-strip>div,.metrics-strip>button {
    padding:0 10px;
  }
}
/* Vietnamese curriculum and self-check materials. */
.reading-block {
  white-space:pre-line;
  line-height:1.8;
  overflow-wrap:anywhere;
}
.course-method h2 {
  font-size:1.1rem;
  margin-bottom:12px;
}
.course-method .reading-block {
  font-size:1rem;
}
.course-source {
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.course-source .resource-mini {
  display:block;
  width:100%;
  text-align:left;
  padding:0;
  border:0;
  background:none;
  line-height:1.5;
  font:inherit;
  color:inherit;
  cursor:pointer;
}
.course-source small {
  display:block;
  color:var(--muted);
  margin-top:4px;
}
.answer-box,.inline-guide {
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 18px;
  margin:20px 0;
  background:var(--card);
}
.answer-box summary,.inline-guide summary,.source-details summary {
  cursor:pointer;
  font-weight:600;
  line-height:1.6;
}
.answer-box[open] summary,.inline-guide[open] summary {
  margin-bottom:14px;
}
.answer-box .reading-block {
  margin-top:12px;
}
.source-review {
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.source-review p {
  line-height:1.7;
  margin:8px 0;
}
.external-lesson {
  padding:22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  margin:16px 0;
}
.external-lesson h3 {
  margin:12px 0;
}
.external-lesson .btn {
  margin-top:16px;
}
.criterion p {
  margin:6px 0 0;
}
.lesson-player {
  margin:20px 0;
}
.lesson-source .btn {
  white-space:normal;
  text-align:left;
}
@media(max-width:640px) {
  .answer-box,.inline-guide {
    padding:14px;
  }
  .course-method {
    padding:18px;
  }
  .reading-block {
    font-size:1rem;
  }
  .lesson-next .btn {
    white-space:normal;
  }
}
.study-main .reading-block {
  font-size:1rem;
}
.course-source small {
  font-size:0.9375rem;
}
.lesson-link strong {
  font-size:1rem;
}
.source-review p {
  font-size:1rem;
}
.metrics-strip button[data-action="flash-open"] {
  border-radius: 10px;
  background: var(--surface,transparent);
  outline: 1px solid var(--line);
  padding: 6px 12px;
}
.metrics-strip button[data-action="flash-open"]:focus-visible {
  outline: 2px solid currentColor;
}
@media(max-width:720px) {
  .daily-welcome {
    margin-bottom: 16px;
  }
  .workspace-grid .agenda button, .workspace-grid .continue-link {
    min-height: 44px;
  }
  .workspace-grid .continue-link {
    display: inline-flex;
    align-items: center;
  }
  .workspace-grid .metrics-strip span {
    font-size:15px;
    line-height: 1.4;
  }
}
