:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #29283c;
  background: #f8f9fc;
  --purple: #6958d5;
  --purple-dark: #5644bd;
  --muted: #706a7d;
  --line: #e9e9f0;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button,
select,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9785ed;
}
input,
textarea,
select {
  min-width: 0;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: -1.1px;
  font-weight: 700;
  margin-bottom: 13px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 8px;
}
p {
  line-height: 1.7;
}
select {
  appearance: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 32px 11px 13px;
  color: #656477;
  font-size: 13px;
  max-width: 100%;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e0e0ea;
  border-radius: 9px;
  background: white;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 44px;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover:not(:disabled) {
  background: #f2f0fb;
  border-color: #c7c0e9;
}
.btn-primary {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  box-shadow: 0 3px 8px #6958d518;
}
.btn-primary:hover:not(:disabled) {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  box-shadow: 0 4px 10px #6958d52b;
}
.btn-white {
  background: #fff;
  color: #6552c3;
  border: 0;
}
.btn-small {
  padding: 9px 13px;
  font-size: 12px;
  min-height: 38px;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  line-height: 1.5;
}
.text-button:hover {
  color: #453198;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.icon-button {
  background: transparent;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #898796;
}
.icon-button:hover {
  background: #f1eefb;
  color: var(--purple);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--muted);
}
.required {
  color: #a34364;
}
.optional {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 5px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: #8a7cbc;
  letter-spacing: 1.7px;
  margin-bottom: 12px;
}
.sidebar {
  width: 235px;
  background: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 35px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 6px 51px;
  font-size: 29px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1px;
}
.brand img {
  border-radius: 12px;
}
.brand-dot {
  color: var(--purple);
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #9c98ac;
  margin-top: 7px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #aaa7b5;
  padding-left: 15px;
  margin-bottom: 16px;
}
.navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  text-align: left;
  color: #777384;
}
.nav-item:hover {
  background: #faf9ff;
}
.nav-item.active {
  background: #eeebfc;
  color: #6854cb;
  font-weight: 650;
}
.nav-item small {
  margin-left: auto;
  background: #ded7fa;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.little-note {
  background: #f7f6fc;
  border: 1px solid #edeaf7;
  border-radius: 12px;
  padding: 18px 16px 21px;
  position: relative;
  overflow: hidden;
}
.note-star {
  color: #a390dd;
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}
.little-note strong {
  font-size: 11px;
}
.little-note p {
  font-size: 11px;
  line-height: 1.7;
  color: #9993ad;
  margin: 8px 0 18px;
  max-width: 125px;
}
.note-line {
  display: block;
  background: #ddd6f3;
  width: 36px;
  height: 3px;
  border-radius: 10px;
}
.shared-space {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 20px;
  color: #6f687e;
  font-size: 11px;
}
.shared-space small {
  display: block;
  font-size: 8px;
  color: #a5a0b0;
  margin-top: 5px;
}
.shared-space .status-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
}
.shared-space > .icon {
  width: 18px;
}
.main-shell {
  margin-left: 235px;
}
.topbar {
  height: 79px;
  padding: 0 43px;
  border-bottom: 1px solid var(--line);
  background: #ffffffad;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: #817d90;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8a8697;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6eb99e;
  display: inline-block;
  flex-shrink: 0;
}
.offline .status-dot {
  background: #db9856;
}
.avatar {
  background: #eeebfa;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #e7e1f4;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #8b75b9;
}
main {
  padding: 36px 43px 22px;
  max-width: 1450px;
  margin: auto;
  min-height: calc(100vh - 135px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
}
.page-heading h1 span {
  color: #7e778e;
  font-weight: 400;
}
.page-heading p {
  font-size: 13px;
  color: #8b8597;
  margin: 0;
}
.page-heading > .btn {
  align-self: center;
}
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 20px;
}
.practice-banner {
  background: #eeeafb;
  border: 1px solid #e5def7;
  border-radius: var(--radius);
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 246px;
}
.banner-copy {
  padding: 28px 30px;
  position: relative;
  z-index: 1;
}
.pill {
  font-size: 8px;
  letter-spacing: 1.1px;
  font-weight: 650;
  color: #8b78b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.banner-copy h2 {
  font-size: 26px;
  color: #443365;
  margin-bottom: 11px;
}
.banner-copy p {
  font-size: 11px;
  line-height: 1.9;
  color: #9184a7;
  margin-bottom: 20px;
}
.banner-copy .btn {
  font-size: 11px;
  padding: 11px 14px;
  gap: 18px;
  min-height: 39px;
}
.banner-art {
  position: absolute;
  right: 0;
  width: 42%;
  height: 100%;
  top: 0;
  pointer-events: none;
}
.orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #d5cbe962;
  border-radius: 50%;
  top: 10px;
  left: 20px;
}
.orbit-two {
  width: 325px;
  height: 325px;
  top: -26px;
  left: -20px;
}
.floating-card {
  position: absolute;
  width: 132px;
  height: 162px;
  border-radius: 13px;
  box-shadow: 0 10px 25px #78669916;
}
.floating-card.back {
  top: 38px;
  left: 17px;
  transform: rotate(-15deg);
  background: #dcd3f5;
  border: 1px solid #cbbdec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  gap: 13px;
}
.floating-card.back span {
  height: 5px;
  background: #c4b5e6;
  border-radius: 4px;
  width: 60%;
}
.floating-card.back span:first-child {
  width: 80%;
}
.floating-card.front {
  top: 54px;
  left: 68px;
  transform: rotate(9deg);
  background: #fff;
  padding: 22px 13px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
.art-label {
  font-size: 6px;
  letter-spacing: 1px;
  color: #ac9dbf;
}
.sound-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
}
.sound-wave i {
  width: 4px;
  background: #a58ae0;
  border-radius: 5px;
  height: 10px;
}
.sound-wave .wave-1,
.sound-wave .wave-9 {
  height: 20px;
}
.sound-wave .wave-2,
.sound-wave .wave-8 {
  height: 34px;
}
.sound-wave .wave-3,
.sound-wave .wave-7 {
  height: 22px;
}
.sound-wave .wave-4,
.sound-wave .wave-6 {
  height: 45px;
}
.sound-wave .wave-5 {
  height: 59px;
  background: #8160c7;
}
.art-dots {
  color: #d5c6eb;
  font-size: 14px;
  letter-spacing: 3px;
}
.art-star {
  position: absolute;
  right: 20px;
  top: 25px;
  color: #b298d9;
  font-size: 33px;
  transform: rotate(16deg);
}
.art-speech {
  position: absolute;
  bottom: 27px;
  left: 13px;
  background: #b7a1dd;
  color: white;
  border-radius: 9px 9px 2px 9px;
  padding: 7px 12px;
  font-size: 10px;
  transform: rotate(-9deg);
}
.progress-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #6a627b;
}
.progress-top .icon {
  width: 16px;
  color: #ad9ed0;
}
.progress-number {
  font-size: 47px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -2px;
  margin-top: 17px;
  color: #544568;
}
.progress-number small {
  font-size: 23px;
  margin-left: 3px;
  font-weight: 400;
  color: #b4a9c4;
}
.progress-card p {
  font-size: 10px;
  color: #a39aaa;
  margin: 5px 0 20px;
}
progress {
  appearance: none;
  border: 0;
  background: #f0edf6;
  height: 5px;
  width: 100%;
  border-radius: 10px;
  display: block;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #f0edf6;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #9781cf;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #9781cf;
  border-radius: 10px;
}
.progress-caption {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  color: #a198af;
  margin-top: 10px;
}
.progress-caption b {
  color: #7a6c96;
  font-weight: 600;
}
.device-note {
  border-top: 1px solid #f3f0f7;
  margin-top: 16px;
  padding-top: 12px;
  font-size: 9px;
  color: #b6adbf;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 33px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.lavender {
  background: #eeebfb;
  color: #9277cc;
}
.peach {
  background: #fff1e7;
  color: #cf9467;
}
.mint {
  background: #e8f5ef;
  color: #70a88f;
}
.stat > div > span {
  font-size: 10px;
  color: #9b94a5;
  display: block;
  margin-bottom: 6px;
}
.stat strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.stat strong small {
  font-size: 9px;
  color: #a9a2b3;
  font-weight: 400;
  margin-left: 9px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 20px;
}
.count {
  display: inline-flex;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  background: #ece9f5;
  color: #9081ac;
  border-radius: 6px;
  font-size: 10px;
  vertical-align: middle;
  margin-left: 6px;
}
.section-heading p {
  font-size: 11px;
  color: #9c95a6;
  margin: 0;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-actions .btn {
  font-size: 11px;
  color: #7c748b;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px 166px;
  gap: 12px;
  margin-bottom: 15px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  color: #b1aaba;
}
.search-box:focus-within {
  outline: 2px solid #b4a5e3;
  outline-offset: 2px;
}
.search-box .icon {
  width: 17px;
  height: 17px;
}
.search-box input {
  background: transparent;
  outline: none;
  border: 0;
  padding: 13px 0;
  flex: 1;
  width: 100%;
  font-size: 12px;
  color: #62576f;
}
.search-box input::placeholder {
  color: #b0aab8;
}
.toolbar select {
  font-size: 11px;
  color: #83798e;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.filter-tabs {
  display: flex;
  gap: 23px;
}
.filter-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 1px 14px;
  font-size: 11px;
  color: #a79faf;
  white-space: nowrap;
}
.filter-tab.active {
  color: #8170b4;
  border-bottom-color: #8170b4;
  font-weight: 650;
}
.filter-row > .text-button {
  font-size: 10px;
  color: #998bab;
}
.empty-state {
  border: 1px dashed #ded9e9;
  border-radius: var(--radius);
  background: #ffffff73;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
}
.empty-state h3 {
  font-size: 16px;
  color: #645771;
  font-weight: 550;
  margin: 9px 0;
}
.empty-state p {
  font-size: 11px;
  color: #a79db1;
  line-height: 1.9;
  margin-bottom: 18px;
}
.empty-state .btn {
  font-size: 11px;
  min-height: 38px;
  padding: 10px 14px;
}
.empty-import {
  font-size: 10px;
  color: #a396b5;
  margin-top: 8px;
}
.empty-illustration {
  position: relative;
  width: 110px;
  height: 74px;
  margin-bottom: 8px;
}
.mini-card {
  position: absolute;
  width: 45px;
  height: 57px;
  border-radius: 7px;
  border: 1px solid #d6cde7;
  top: 8px;
  background: #eee9f7;
}
.mini-card.one {
  transform: rotate(-18deg);
  left: 22px;
}
.mini-card.two {
  transform: rotate(9deg);
  left: 43px;
  background: #f1edf9;
}
.mini-card.three {
  transform: rotate(17deg);
  left: 56px;
  top: 14px;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px #9581af12;
}
.mini-card .icon {
  color: #ab98c9;
}
.tiny-spark {
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 20px;
  color: #c1b1d8;
}
.learning-tip {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #a79eaf;
}
.learning-tip .icon {
  width: 14px;
}
.learning-tip p {
  font-size: 10px;
  margin: 0;
}
.learning-tip strong {
  font-weight: 600;
  color: #92869f;
}
.footer {
  padding: 21px 43px;
  font-size: 9px;
  color: #b2aab9;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eeebf3;
  gap: 16px;
  max-width: 1450px;
  margin: auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.question-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.question-card:hover {
  border-color: #d7cde9;
  box-shadow: 0 7px 22px #7161820b;
}
.card-top {
  padding: 14px 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.part-tag {
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0ecfb;
  color: #8b72ba;
  font-weight: 600;
  display: inline-block;
  line-height: 1.4;
}
.part-2 {
  background: #ecf3f5;
  color: #6c9da7;
}
.part-3 {
  background: #edf4ed;
  color: #7c9c7b;
}
.part-4 {
  background: #fff3e6;
  color: #b39467;
}
.part-5 {
  background: #f9ebef;
  color: #b07e91;
}
.bookmark.selected {
  color: #8b70c1;
}
.bookmark.selected svg {
  fill: #ece5fa;
}
.card-body {
  padding: 9px 20px 23px;
  background: transparent;
  text-align: left;
  border: 0;
  flex: 1;
  width: 100%;
}
.deck-label {
  font-size: 9px;
  color: #b0a7ba;
  display: block;
  margin-bottom: 11px;
  overflow-wrap: anywhere;
}
.card-body h3 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #62576d;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-bottom {
  border-top: 1px solid #f2eff6;
  margin: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 11px 0;
}
.card-status {
  font-size: 9px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #aea6b7;
}
.card-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc4d3;
}
.card-status.known {
  color: #81a895;
}
.card-status.known i {
  background: #94bca9;
}
.card-status.review {
  color: #c09772;
}
.card-status.review i {
  background: #d3ad88;
}
.card-bottom .text-button {
  font-size: 10px;
  color: #a58dbf;
}
.card-bottom .icon {
  width: 13px;
}
.image-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #aaa1b8;
  margin-top: 12px;
}
.image-indicator .icon {
  width: 14px;
}
.results-count {
  font-size: 10px;
  color: #a99daf;
  text-align: center;
  margin: 20px 0 5px;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #e3def1;
  background: #f0ecf9;
  color: #8872a3;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 22px;
  line-height: 1.7;
}
.notice span {
  flex: 1;
}
.notice.error {
  background: #fff0ed;
  border-color: #f6ded8;
  color: #ad7160;
}
.notice .icon {
  width: 18px;
}
.practice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.back-arrow {
  display: inline-flex;
  transform: rotate(180deg);
}
.study-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.study-label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #998ba8;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.study-label > span:last-child {
  flex-shrink: 0;
}
.study-label strong {
  color: #7f6c94;
}
.study-progress {
  height: 4px;
  margin-bottom: 22px;
}
.study-card {
  background: #fff;
  border: 1px solid #e7e0ee;
  border-radius: 20px;
  box-shadow: 0 7px 24px #6f567105;
  overflow: hidden;
}
.study-top {
  padding: 22px 29px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.question-label {
  text-align: center;
  margin: 35px 25px 18px;
  font-size: 9px;
  color: #b1a4c1;
}
.study-question {
  font-size: 27px;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: -0.4px;
  text-align: center;
  margin: 0 35px 23px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #554363;
}
.edit-english {
  display: block;
  font-size: 11px;
  color: #7056a1;
  margin: 0 auto 12px;
}
.answer-block .edit-english {
  margin: -6px 0 12px;
}
.card-translation {
  display: block;
  color: #947e9f;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.translation-area {
  text-align: center;
  padding: 0 24px 16px;
}
.translation-text {
  color: #8b729a;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 7px;
}
.translation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.translation-actions .text-button {
  color: #8b72a9;
  font-size: 11px;
}
.translation-actions .text-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.translation-hint {
  display: block;
  margin-top: 8px;
  color: #b6a9bf;
  font-size: 10px;
  line-height: 1.5;
}
.answer-block .translation-area {
  text-align: left;
  padding: 0 0 16px;
}
.answer-block .translation-actions {
  justify-content: flex-start;
}
.study-image {
  display: block;
  max-width: calc(100% - 60px);
  max-height: 400px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 10px;
}
.context-block {
  margin: 20px 30px;
  background: #f8f6fb;
  border: 1px solid #eee7f4;
  border-radius: 10px;
  padding: 18px;
  overflow-wrap: anywhere;
}
.context-block small {
  font-size: 9px;
  color: #aa97be;
  letter-spacing: 1px;
}
.context-block p {
  white-space: pre-wrap;
  font-size: 14px;
  margin: 10px 0 0;
  color: #81718e;
}
.question-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.question-audio > span {
  font-size: 9px;
  color: #b3a7be;
}
.listen {
  border-color: #e8e1f2;
  background: #f8f5fc;
  color: #8b72a9;
  font-size: 11px;
}
.listen.playing {
  background: #ede3fa;
  border-color: #baa3d7;
}
.reveal-area {
  padding: 30px 25px 35px;
  text-align: center;
  background: #fcfbfe;
  border-top: 1px dashed #e7e0ee;
}
.reveal-area p {
  font-size: 11px;
  color: #b0a3bd;
  margin-bottom: 17px;
}
.answer-section {
  background: #fbf9fe;
  border-top: 1px solid #eee6f5;
  padding: 25px 32px;
}
.answer-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.answer-title > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #a28bb9;
}
.answer-title .icon {
  width: 15px;
}
.answer-title .text-button {
  font-size: 10px;
  color: #ad98c1;
}
.answer-block {
  padding: 18px 0 22px;
}
.answer-block + .answer-block {
  border-top: 1px dashed #e3d7ee;
}
.answer-block p {
  font-size: 17px;
  color: #776286;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  margin-bottom: 16px;
}
.answer-block small {
  font-size: 10px;
  color: #b5a4c4;
}
.note-block {
  border-left: 2px solid #d9c4ed;
  padding-left: 14px;
  color: #a28aaf;
  font-size: 12px;
  margin-bottom: 20px;
}
.note-block strong {
  font-size: 11px;
}
.note-block p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
}
.add-answer {
  font-size: 11px;
  color: #a18ab5;
}
.study-rating {
  text-align: center;
  margin-top: 24px;
}
.study-rating > p {
  font-size: 11px;
  color: #aa99b7;
  margin-bottom: 13px;
}
.study-rating > div {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.rate-review {
  background: #fff6ed;
  color: #b79576;
  border-color: #edddca;
  min-width: 174px;
}
.rate-known {
  background: #edf6f0;
  color: #7ba68e;
  border-color: #d2e6da;
  min-width: 174px;
}
kbd {
  font-family: inherit;
  border: 1px solid #e7e0ed;
  background: #ffffff88;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9px;
  color: #b1a3be;
  font-weight: 400;
}
.study-rating kbd {
  margin-left: 10px;
}
.study-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.study-navigation > span {
  font-size: 9px;
  color: #b9abc4;
}
.study-navigation .btn {
  font-size: 10px;
  color: #9b88ad;
}
.practice-empty,
.session-complete {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 650px;
  margin: auto;
}
.practice-empty h1,
.session-complete h1 {
  font-size: 29px;
  color: #665175;
}
.practice-empty p,
.session-complete p {
  font-size: 13px;
  color: #ab96b6;
  max-width: 420px;
  margin-bottom: 24px;
}
.large-icon,
.complete-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: #eee7f9;
  color: #ac92ca;
  border: 1px solid #e4d8f1;
  border-radius: 24px;
  margin-bottom: 28px;
}
.large-icon .icon,
.complete-icon .icon {
  width: 34px;
  height: 34px;
}
.complete-icon {
  background: #eaf6ee;
  border-color: #d7eadc;
  color: #8ab39a;
}
.center-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 35px;
  margin-bottom: 24px;
}
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.settings-title {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 25px;
}
.settings-title h2 {
  font-size: 17px;
  margin-bottom: 4px;
  color: #6c5b7a;
}
.settings-title p {
  font-size: 10px !important;
  margin: 0;
}
.settings-card p {
  font-size: 12px;
  color: #a291b0;
}
.settings-card h3 {
  font-size: 15px;
  color: #8b769b;
}
.settings-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.backup-progress {
  display: flex;
  font-size: 11px;
  margin-top: 12px;
}
.restore-label {
  font-size: 11px;
  color: #a18bae;
  cursor: pointer;
  display: block;
}
.restore-label:focus-within {
  outline: 2px solid var(--purple);
}
.fine-print {
  font-size: 10px !important;
  color: #ac9bbb !important;
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 0;
}
.settings-card .fine-print {
  margin-top: 20px;
}
dialog {
  border: 1px solid #e8e0f0;
  border-radius: 20px;
  padding: 28px;
  width: calc(100% - 36px);
  max-width: 640px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 20px 80px #36284626;
  color: #5d4a6e;
}
dialog::backdrop {
  background: #28203f62;
  backdrop-filter: blur(3px);
}
.wide-modal {
  max-width: 800px;
}
.modal-open {
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}
.modal-header h2 {
  font-size: 22px;
  color: #5d476e;
}
.modal-header p {
  font-size: 11px;
  color: #ae9cbd;
  margin-bottom: 0;
}
.modal-header > .icon-button {
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #8c739c;
  margin-bottom: 18px;
}
.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  background: #fefeff;
  border: 1px solid #e5ddec;
  border-radius: 9px;
  padding: 12px;
  margin-top: 8px;
  color: #6e557d;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #bbaac6;
}
.form-field textarea {
  resize: vertical;
}
.form-field input[type="file"] {
  font-size: 11px;
  background: #faf7fd;
  cursor: pointer;
}
.extra-fields {
  border: 1px solid #ece5f3;
  background: #fdfbff;
  border-radius: 9px;
  padding: 13px 16px;
  margin-bottom: 18px;
}
.extra-fields summary {
  font-size: 11px;
  color: #a38ab6;
  cursor: pointer;
}
.extra-fields[open] summary {
  margin-bottom: 18px;
}
.form-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #af9ac0;
  line-height: 1.7;
}
.form-notice .icon {
  width: 15px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee6f4;
  margin-top: 22px;
  padding-top: 19px;
}
.form-error {
  color: #b96e69;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 13px;
}
.form-error:empty {
  display: none;
}
#image-preview img {
  width: 120px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
#image-preview:not(:empty) {
  margin-bottom: 15px;
}
.answer-prompt {
  background: #f6f0fc;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.import-instruction {
  font-size: 11px;
  color: #a18bb4;
  background: #f8f3fd;
  border: 1px solid #ece1f5;
  border-radius: 10px;
  padding: 14px;
  line-height: 2;
}
.import-instruction code {
  background: #eee6f8;
  color: #9575b3;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}
.import-file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.import-file-row > span {
  font-size: 10px;
  color: #ac97bc;
}
.file-picker {
  cursor: pointer;
  font-size: 11px;
}
.file-picker:focus-within {
  outline: 3px solid #a185c2;
}
.preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #78a18a;
  padding: 10px 0;
}
.preview-title .icon {
  width: 16px;
}
.preview-table {
  overflow: auto;
  max-height: 220px;
  border: 1px solid #e9e0f0;
  border-radius: 8px;
}
.preview-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.preview-table th {
  background: #f6f1fb;
  color: #a08ab2;
  padding: 9px 12px;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.preview-table td {
  padding: 10px 12px;
  border-top: 1px solid #efe6f6;
  color: #a48fb5;
  min-width: 120px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.install-content {
  text-align: center;
}
.install-content img {
  border-radius: 18px;
  margin: 6px 0 18px;
}
.install-content ol {
  text-align: left;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.9;
  color: #9b81ac;
}
.install-content li {
  margin-bottom: 15px;
}
.install-content p {
  font-size: 13px;
  color: #a18bac;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 100;
  background: #493b59;
  color: #fff;
  border: 1px solid #756580;
  border-radius: 12px;
  padding: 14px 20px;
  max-width: min(560px, 90vw);
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 8px 28px #49355922;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5d8f2;
  border-top-color: #a188bf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 43px;
  }
  .practice-banner {
    min-height: 265px;
  }
  .banner-copy {
    padding: 32px 36px;
  }
  .banner-copy h2 {
    font-size: 29px;
  }
  .banner-copy p {
    font-size: 12px;
  }
  .banner-art {
    right: 22px;
  }
  .floating-card.front {
    left: 100px;
  }
  .floating-card.back {
    left: 50px;
  }
  .art-speech {
    left: 40px;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .progress-card {
    padding: 25px 28px;
  }
  .progress-number {
    font-size: 54px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 30px 16px 18px;
  }
  .main-shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px 20px;
  }
  .footer {
    padding: 20px 28px;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 15px;
  }
  .banner-copy {
    padding: 25px 23px;
  }
  .banner-copy h2 {
    font-size: 24px;
  }
  .banner-copy p br {
    display: none;
  }
  .banner-copy p {
    max-width: 235px;
  }
  .banner-art {
    width: 35%;
    opacity: 0.85;
    right: -12px;
  }
  .floating-card {
    width: 110px;
    height: 145px;
  }
  .floating-card.front {
    left: 25px;
    top: 61px;
  }
  .floating-card.back {
    left: 0;
    top: 35px;
  }
  .art-star {
    right: 15px;
  }
  .art-speech {
    left: -5px;
  }
  .stat {
    padding: 16px 13px;
    gap: 10px;
  }
  .stat strong small {
    display: block;
    margin: 7px 0 0;
    font-size: 8px;
  }
  .stat-icon {
    width: 37px;
    height: 37px;
  }
  .toolbar {
    grid-template-columns: minmax(0, 1fr) 178px 150px;
    gap: 9px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .progress-card {
    padding: 24px 20px;
  }
  .top-actions {
    gap: 16px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 185px;
    padding: 28px 13px 18px;
  }
  .main-shell {
    margin-left: 185px;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand small {
    font-size: 6px;
  }
  .nav-item {
    font-size: 12px;
    padding: 13px 10px;
    gap: 9px;
  }
  .workspace-label {
    font-size: 8px;
    padding-left: 10px;
  }
  .little-note {
    padding: 15px 12px;
  }
  .little-note strong {
    font-size: 10px;
  }
  .shared-space small {
    font-size: 7px;
  }
  .shared-space {
    font-size: 10px;
    gap: 5px;
  }
  .topbar {
    padding: 0 24px;
    height: 70px;
  }
  main {
    padding: 28px 24px 20px;
  }
  .connection {
    display: none;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading > .btn {
    font-size: 11px;
    padding: 11px 13px;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr) 175px;
    gap: 12px;
  }
  .progress-card {
    padding: 23px 16px;
  }
  .progress-top {
    font-size: 10px;
  }
  .progress-card p {
    font-size: 9px;
  }
  .progress-number {
    font-size: 42px;
    margin-top: 24px;
  }
  .banner-copy {
    padding: 24px 20px;
  }
  .banner-copy h2 {
    font-size: 22px;
  }
  .banner-copy p {
    max-width: 195px;
    font-size: 10px;
  }
  .banner-art {
    right: -32px;
    opacity: 0.6;
  }
  .art-speech,
  .art-star {
    display: none;
  }
  .banner-copy .pill {
    font-size: 7px;
  }
  .stat {
    padding: 15px 10px;
    gap: 9px;
  }
  .stats {
    gap: 10px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat > div > span {
    font-size: 9px;
  }
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .search-box {
    grid-column: 1/-1;
  }
  .toolbar select {
    font-size: 11px;
  }
  .study-question {
    font-size: 23px;
  }
  .study-navigation > span {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-card {
    padding: 24px;
  }
  .filter-tabs {
    gap: 20px;
  }
  .footer {
    font-size: 8px;
    padding: 18px 24px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: auto;
    inset: auto 0 0;
    height: calc(69px + env(safe-area-inset-bottom));
    padding: 0 12px env(safe-area-inset-bottom);
    border-right: 0;
    border-top: 1px solid #e9e2f0;
    background: #fffc;
    backdrop-filter: blur(16px);
    z-index: 10;
  }
  .brand,
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .navigation {
    flex-direction: row;
    gap: 4px;
    height: 68px;
    align-items: center;
    justify-content: space-around;
  }
  .nav-item {
    flex-direction: column;
    gap: 5px;
    width: 25%;
    height: 54px;
    padding: 7px 3px;
    font-size: 9px;
    border-radius: 9px;
    justify-content: center;
    text-align: center;
  }
  .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .nav-item small {
    display: none;
  }
  .nav-item.active {
    background: #f1ecfb;
  }
  .main-shell {
    margin-left: 0;
    margin-bottom: calc(69px + env(safe-area-inset-bottom));
  }
  .topbar {
    height: 65px;
    padding: 0 22px;
    background: #fff;
  }
  .breadcrumb {
    font-size: 12px;
    color: #897a99;
  }
  .top-actions {
    gap: 14px;
  }
  .install-button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 34px;
  }
  .install-button .icon {
    width: 14px;
    height: 14px;
  }
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  main {
    padding: 27px 22px 22px;
    min-height: calc(100dvh - 200px);
  }
  .page-heading {
    margin-bottom: 23px;
    gap: 16px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 290px;
    line-height: 1.8;
  }
  .page-heading > .btn {
    font-size: 10px;
    padding: 10px 11px;
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 5px;
    min-height: 38px;
  }
  .page-heading > .btn .icon {
    width: 15px;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr) 175px;
  }
  .practice-banner {
    min-height: 235px;
  }
  .banner-copy p {
    font-size: 10px;
  }
  .banner-art {
    opacity: 0.6;
  }
  .stats {
    margin: 16px 0 29px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .stat-icon .icon {
    width: 18px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-heading {
    margin-bottom: 17px;
  }
  .section-actions {
    gap: 3px;
  }
  .section-actions .btn {
    font-size: 10px;
    padding: 8px 10px;
  }
  .section-actions .btn .icon {
    width: 15px;
  }
  .toolbar {
    gap: 10px;
  }
  .filter-tabs {
    gap: 20px;
  }
  .filter-tab {
    font-size: 10px;
  }
  .filter-row > .text-button {
    font-size: 9px;
  }
  .empty-state {
    min-height: 305px;
  }
  .learning-tip {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .learning-tip p {
    font-size: 9px;
  }
  .learning-tip .icon {
    margin-top: 2px;
  }
  .footer {
    padding: 17px 22px;
    font-size: 8px;
  }
  .footer > span:last-child {
    display: none;
  }
  .study-top {
    padding: 17px 21px 0;
  }
  .study-question {
    font-size: 23px;
    margin: 0 23px 23px;
  }
  .question-label {
    margin-top: 27px;
  }
  .study-image {
    max-width: calc(100% - 40px);
  }
  .answer-section {
    padding: 22px;
  }
  .answer-block p {
    font-size: 16px;
  }
  .study-wrap {
    margin: 0 auto;
  }
  .practice-heading {
    margin-bottom: 22px;
  }
  .study-rating .btn {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    max-width: 210px;
  }
  .study-navigation .btn {
    font-size: 10px;
  }
  .study-rating kbd {
    display: none;
  }
  .practice-empty h1,
  .session-complete h1 {
    font-size: 26px;
  }
  .practice-empty p,
  .session-complete p {
    font-size: 12px;
  }
  .practice-empty,
  .session-complete {
    min-height: 65vh;
  }
  .notice {
    font-size: 10px;
    padding: 12px;
  }
  .settings-grid {
    margin-top: 25px;
  }
  .settings-title .stat-icon {
    width: 42px;
    height: 42px;
  }
  #toast {
    bottom: calc(85px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 30px);
    width: max-content;
    font-size: 11px;
  }
  .context-block {
    margin: 20px;
  }
  .brand-dot {
    display: none;
  }
}
@media (max-width: 540px) {
  main {
    padding: 26px 18px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .page-heading > .btn {
    align-self: auto;
    margin: 0;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: none;
  }
  .overview {
    grid-template-columns: 1fr;
  }
  .progress-card {
    display: none;
  }
  .practice-banner {
    min-height: 215px;
  }
  .banner-copy {
    padding: 23px 22px;
    max-width: 72%;
  }
  .banner-copy h2 {
    font-size: 22px;
  }
  .banner-copy p {
    font-size: 10px;
    max-width: 210px;
    margin-bottom: 17px;
  }
  .banner-copy .pill {
    font-size: 7px;
    letter-spacing: 0.8px;
    margin-bottom: 13px;
  }
  .banner-copy .btn {
    font-size: 10px;
    min-height: 37px;
  }
  .banner-art {
    width: 35%;
    right: 3px;
    opacity: 1;
  }
  .floating-card {
    width: 89px;
    height: 123px;
    border-radius: 10px;
  }
  .floating-card.back {
    left: 0;
    top: 37px;
  }
  .floating-card.front {
    left: 27px;
    top: 63px;
    padding: 17px 10px;
  }
  .art-label {
    font-size: 4.5px;
    letter-spacing: 0.5px;
  }
  .sound-wave {
    gap: 3px;
    height: 48px;
  }
  .sound-wave i {
    width: 3px;
  }
  .sound-wave .wave-5 {
    height: 43px;
  }
  .sound-wave .wave-4,
  .sound-wave .wave-6 {
    height: 32px;
  }
  .sound-wave .wave-2,
  .sound-wave .wave-8 {
    height: 25px;
  }
  .sound-wave .wave-3,
  .sound-wave .wave-7 {
    height: 19px;
  }
  .sound-wave .wave-1,
  .sound-wave .wave-9 {
    height: 15px;
  }
  .orbit {
    width: 170px;
    height: 170px;
    left: 0;
    top: 20px;
  }
  .orbit-two {
    width: 230px;
    height: 230px;
    left: -30px;
    top: -10px;
  }
  .art-star {
    display: block;
    font-size: 21px;
    right: 10px;
    top: 26px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 28px;
  }
  .stat {
    padding: 13px 10px;
    display: block;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    margin-bottom: 10px;
  }
  .stat-icon .icon {
    width: 16px;
    height: 16px;
  }
  .stat > div > span {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat strong small {
    font-size: 7px;
    margin-top: 7px;
    line-height: 1.5;
  }
  .section-heading {
    align-items: center;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading p {
    font-size: 9px;
    max-width: 180px;
  }
  .section-actions .btn {
    font-size: 9px;
    padding: 8px;
    min-height: 35px;
    gap: 5px;
  }
  .section-actions > .icon-button {
    width: 30px;
  }
  .section-actions > .icon-button .icon {
    width: 16px;
  }
  .toolbar select {
    font-size: 10px;
    padding: 11px 8px;
  }
  .search-box input {
    font-size: 11px;
    padding: 13px 0;
  }
  .filter-tabs {
    gap: 16px;
  }
  .filter-tab {
    font-size: 10px;
  }
  .filter-row {
    gap: 4px;
  }
  .filter-row > .text-button {
    font-size: 8px;
    gap: 4px;
  }
  .filter-row > .text-button .icon {
    width: 12px;
  }
  .empty-state {
    padding: 27px 17px;
    min-height: 320px;
  }
  .empty-state h3 {
    font-size: 15px;
    max-width: 250px;
    line-height: 1.6;
  }
  .empty-state p {
    font-size: 10px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-top {
    padding: 12px 17px 0;
  }
  .card-body {
    padding: 8px 22px 24px;
  }
  .card-body h3 {
    font-size: 16px;
  }
  .card-bottom {
    padding: 9px 0;
  }
  .part-tag {
    font-size: 9px;
  }
  .card-status {
    font-size: 10px;
  }
  .card-bottom .text-button {
    font-size: 11px;
  }
  .learning-tip {
    padding: 0 3px;
  }
  .study-card {
    border-radius: 16px;
  }
  .study-question {
    font-size: 22px;
    line-height: 1.6;
    margin: 0 21px 23px;
  }
  .study-label {
    font-size: 10px;
  }
  .study-top {
    padding: 14px 17px 0;
  }
  .question-label {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .question-audio {
    margin-bottom: 25px;
  }
  .reveal-area {
    padding: 25px 18px;
  }
  .reveal-area p {
    font-size: 10px;
  }
  .study-rating {
    margin-top: 22px;
  }
  .study-rating > div {
    gap: 10px;
  }
  .study-rating .btn {
    font-size: 11px;
    padding: 12px 9px;
  }
  .study-rating .icon {
    width: 16px;
  }
  .study-navigation {
    margin-top: 22px;
  }
  .answer-section {
    padding: 20px;
  }
  .answer-block p {
    font-size: 15px;
  }
  .answer-title > span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .answer-title .text-button {
    font-size: 9px;
  }
  .study-navigation .btn {
    padding: 9px 10px;
  }
  .settings-card {
    padding: 22px 19px;
  }
  .settings-title h2 {
    font-size: 17px;
  }
  .settings-title p {
    font-size: 10px !important;
  }
  .settings-title {
    gap: 11px;
  }
  .settings-grid {
    gap: 16px;
  }
  .practice-empty h1,
  .session-complete h1 {
    font-size: 25px;
  }
  .center-actions {
    flex-wrap: wrap;
  }
  .center-actions .btn {
    font-size: 11px;
  }
  dialog {
    padding: 22px 19px;
    width: calc(100% - 24px);
    max-height: 92dvh;
    border-radius: 16px;
  }
  .modal-header {
    gap: 10px;
  }
  .modal-header h2 {
    font-size: 21px;
    line-height: 1.4;
  }
  .modal-header p {
    font-size: 10px;
  }
  .modal-header > .icon-button {
    width: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px;
  }
  .form-field {
    font-size: 11px;
  }
  .optional {
    font-size: 9px;
  }
  .modal-footer .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .import-instruction {
    font-size: 10px;
    line-height: 1.9;
  }
  .import-instruction code {
    font-size: 9px;
    overflow-wrap: anywhere;
  }
  .import-file-row {
    gap: 12px;
  }
  .import-file-row .text-button {
    font-size: 10px;
  }
  .install-content ol {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep secondary copy legible on both high-density phones and desktop displays. */
.page-heading p,
.section-heading p,
.banner-copy p,
.empty-state p,
.settings-card p,
.modal-header p,
.reveal-area p,
.practice-empty p,
.session-complete p {
  color: #786e87;
  font-size: 13px;
}
.eyebrow,
.pill {
  color: #7b669d;
}
.breadcrumb,
.connection,
.nav-item,
.little-note p,
.shared-space,
.progress-card p,
.progress-caption,
.device-note,
.stat > div > span,
.stat strong small,
.deck-label,
.results-count,
.learning-tip,
.learning-tip strong,
.footer,
.study-label,
.question-audio > span,
.study-rating > p,
.study-navigation > span,
.fine-print,
.form-notice,
.optional,
.import-file-row > span,
.install-content p {
  color: #7a7086;
}
.progress-card p,
.device-note,
.stat > div > span,
.stat strong small,
.deck-label,
.results-count,
.learning-tip p,
.footer,
.form-notice,
.fine-print,
.connection {
  font-size: 11px !important;
}
.search-box input,
.toolbar select,
.filter-tab,
.section-actions .btn,
.filter-row > .text-button {
  font-size: 12px;
}
.filter-tab,
.toolbar select,
.section-actions .btn,
.empty-import,
.card-status,
.image-indicator,
.form-field,
.import-instruction,
.preview-table td,
.preview-table th,
.restore-label,
.question-label,
.answer-title > span,
.answer-block small,
.note-block,
.install-content ol {
  color: #786487;
}
.search-box input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a7d96;
}
.part-tag,
.card-status,
.card-bottom .text-button,
.image-indicator {
  font-size: 11px;
}
.part-1 {
  color: #735a9b;
}
.part-2 {
  color: #47737e;
}
.part-3 {
  color: #52784f;
}
.part-4 {
  color: #8c682f;
}
.part-5 {
  color: #945970;
}
.card-status.known {
  color: #4d8168;
}
.card-status.review {
  color: #976735;
}
.text-button,
.filter-row > .text-button,
.empty-import,
.card-bottom .text-button,
.add-answer,
.answer-title .text-button,
.study-navigation .btn {
  color: #75608f;
}
.rate-review {
  color: #946339;
}
.rate-known {
  color: #467959;
}
.listen {
  color: #775391;
}
.form-field,
.note-block,
.import-instruction {
  font-size: 12px;
}
.progress-top {
  font-size: 13px;
}
.nav-item {
  font-size: 13px;
}
.empty-state h3 {
  color: #5c4a6b;
  font-size: 18px;
}
.pill {
  font-size: 9px;
}
.banner-copy p {
  max-width: 300px;
}
.stat strong small {
  line-height: 1.4;
}
.form-error {
  color: #a3443f;
}
.form-field input:disabled,
.form-field textarea:disabled,
.form-field select:disabled {
  background: #f4f1f8;
}
@media (max-width: 1200px) {
  .banner-copy p {
    max-width: 220px;
    font-size: 12px;
  }
  .stat strong small {
    font-size: 10px !important;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .banner-art {
    opacity: 0.25;
  }
  .banner-copy {
    max-width: 100%;
  }
  .banner-copy p {
    max-width: 100%;
  }
  .progress-top {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .nav-item {
    font-size: 10px;
  }
  .page-heading p,
  .section-heading p {
    font-size: 12px;
  }
  .banner-copy p {
    font-size: 12px;
  }
  .stat strong small {
    font-size: 9px !important;
  }
  .filter-row > .text-button {
    font-size: 11px;
  }
  .footer {
    font-size: 10px !important;
  }
  .fine-print {
    font-size: 11px !important;
  }
  .install-button {
    min-height: 40px;
  }
  .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
}
@media (max-width: 540px) {
  .page-heading > .btn {
    font-size: 12px;
  }
  .banner-copy {
    max-width: 74%;
  }
  .banner-copy p {
    max-width: 220px;
    padding-right: 12px;
  }
  .banner-art {
    right: -8px;
    opacity: 0.7;
  }
  .pill {
    font-size: 8px !important;
    letter-spacing: 0.6px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .section-actions .btn {
    font-size: 10px;
  }
  .filter-tabs {
    gap: 14px;
  }
  .filter-tab {
    font-size: 11px;
  }
  .filter-row > .text-button {
    font-size: 10px;
  }
  .toolbar select {
    font-size: 11px;
  }
  .stat strong small {
    font-size: 9px !important;
  }
  .empty-state p {
    font-size: 12px;
  }
  .empty-state h3 {
    font-size: 17px;
  }
  .study-label {
    font-size: 11px;
  }
  .question-label {
    font-size: 10px;
  }
  .study-rating > p {
    font-size: 12px;
  }
  .study-rating .btn {
    font-size: 12px;
  }
  .modal-header p {
    font-size: 12px;
  }
  .form-field {
    font-size: 12px;
  }
  .optional {
    font-size: 10px;
  }
}
