:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --surface: #15171d;
  --surface-2: #1c1f27;
  --surface-3: #242832;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f6f7;
  --muted: #9298a5;
  --lime: #d5ff61;
  --lime-dark: #a9d539;
  --purple: #b68cff;
  --blue: #7cb8ff;
  --coral: #ff8e7b;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

/* Economics learning program v35 */
.lesson-depth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}

.lesson-depth-stats div,
.lesson-objectives,
.mastery-rule,
.chapter-checkpoint,
.teach-back-rubric,
.corrective-routes {
  border: 1px solid rgba(202, 255, 57, 0.18);
  background: rgba(15, 17, 20, 0.82);
  border-radius: 18px;
}

.lesson-depth-stats div {
  padding: 16px 10px;
  text-align: center;
}

.lesson-depth-stats strong {
  display: block;
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 1.6rem;
}

.lesson-depth-stats span {
  color: var(--muted);
  font-size: 0.72rem;
}

.lesson-objectives,
.mastery-rule,
.teach-back-rubric,
.corrective-routes {
  padding: 20px;
  margin-top: 18px;
}

.lesson-objectives small,
.teach-back-rubric small,
.corrective-routes small {
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.lesson-objectives li,
.teach-back-rubric li {
  margin: 10px 0;
  line-height: 1.55;
}

.curriculum-module {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.curriculum-module summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.curriculum-module summary::-webkit-details-marker {
  display: none;
}

.curriculum-module summary > span {
  color: var(--lime);
  font: 700 0.72rem system-ui, sans-serif;
  letter-spacing: 0.1em;
}

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

.curriculum-module summary small,
.curriculum-module > p,
.professional-course-row small {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

.curriculum-module > p {
  padding: 0 0 16px 46px;
}

.curriculum-lessons {
  margin-left: 46px;
  border-left: 1px solid rgba(202, 255, 57, 0.18);
}

.professional-course-row {
  grid-template-columns: 30px 1fr;
}

.professional-course-row > div {
  min-width: 0;
}

.professional-course-row.queued {
  opacity: 0.72;
}

.professional-course-row em {
  display: block;
  margin-top: 7px;
  color: #aab18f;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.45;
}

.curriculum-weeks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.curriculum-week {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.curriculum-week > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}

.curriculum-week > summary small {
  color: var(--muted);
  white-space: nowrap;
}

.content-pending-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.learning-primary-cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.55;
}

.mastery-dimensions {
  margin-top: 18px;
}

.mastery-dimensions > div,
.mastery-dimension-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mastery-dimensions span,
.mastery-dimension-results span,
.mastery-dimension-label {
  border: 1px solid rgba(207, 255, 64, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.mastery-dimension-results span {
  display: inline-flex;
  gap: 6px;
}

.mastery-dimension-results span.passed {
  border-color: rgba(207, 255, 64, 0.55);
  color: var(--text);
}

.mastery-dimension-results span.failed {
  border-color: rgba(255, 105, 120, 0.55);
}

.professional-video-section {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.professional-video-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(141, 107, 255, 0.35);
  border-radius: 14px;
  background: rgba(141, 107, 255, 0.08);
}

.professional-video-card > div,
.professional-video-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.professional-video-card > div span {
  flex: 0 0 auto;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.professional-video-card p,
.professional-video-card label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.professional-video-card a {
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
}

.artifact-evidence-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(213, 255, 97, 0.3);
  border-radius: 18px;
  background: rgba(213, 255, 97, 0.06);
}

.artifact-evidence-card small,
.artifact-evidence-card h3,
.artifact-evidence-card p {
  display: block;
  margin: 0 0 10px;
}

.artifact-evidence-card small {
  color: var(--lime);
  font-weight: 800;
}

.artifact-evidence-card textarea {
  width: 100%;
}

.course-promise {
  padding: 14px;
  margin-top: 14px;
  border-left: 2px solid var(--lime);
  color: #dfe4d5;
  background: rgba(213, 255, 97, 0.05);
  line-height: 1.5;
}

.course-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.course-scope-grid span {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: center;
}

.course-scope-grid strong {
  display: block;
  color: var(--lime);
  font-size: 1.25rem;
}

.module-deliverable {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  margin: 0 0 14px 46px;
  border: 1px solid rgba(182, 140, 255, 0.18);
  border-radius: 14px;
  background: rgba(182, 140, 255, 0.05);
}

.module-deliverable small {
  color: var(--purple);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.module-deliverable strong {
  font-size: 0.78rem;
  line-height: 1.45;
}

.lesson-decision-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(182, 140, 255, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(182, 140, 255, 0.1), rgba(124, 184, 255, 0.04));
}

.lesson-decision-card > small {
  color: var(--purple);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.lesson-decision-card > strong {
  font-family: var(--display-font);
  font-size: 1.35rem;
  line-height: 1.25;
}

.lesson-decision-card dl {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.lesson-decision-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.lesson-decision-card dt,
.lesson-decision-card dd {
  margin: 0;
}

.lesson-decision-card dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.lesson-decision-card dd {
  font-size: 0.8rem;
  line-height: 1.45;
}

.chapter-index {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deep-chapter > h2 {
  margin: 14px 0 22px;
  font-size: clamp(2rem, 8vw, 3.8rem);
}

.deep-chapter .professional-theory-copy p {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #e3e3e6;
}

.concept-visual {
  display: grid;
  gap: 8px;
  margin: 26px 0;
}

.concept-visual > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 8px;
}

.concept-visual span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111216;
  font-size: 0.82rem;
}

.chapter-checkpoint {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin: 24px 0 10px;
}

.chapter-checkpoint small {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.chapter-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 18px 0;
}

.chapter-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3b40;
}

.chapter-dots i.active {
  width: 24px;
  border-radius: 8px;
  background: var(--lime);
}

.professional-tutor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.professional-tutor-actions button {
  min-height: 44px;
  border: 1px solid rgba(193, 143, 255, 0.3);
  border-radius: 12px;
  color: #d7b8ff;
  background: rgba(45, 34, 59, 0.44);
  font-weight: 750;
}

.professional-tutor-actions button:last-child {
  grid-column: 1 / -1;
}

.professional-tutor-response {
  margin-top: 12px;
  padding: 0;
}

.professional-tutor-response:not(:empty) {
  padding: 18px;
  border: 1px solid rgba(193, 143, 255, 0.34);
  border-radius: 16px;
  background: rgba(24, 20, 31, 0.95);
}

.professional-tutor-response > strong {
  color: #d7b8ff;
  font-size: 1.08rem;
}

.professional-tutor-response p {
  line-height: 1.65;
}

.tutor-check {
  color: var(--blue);
  font-weight: 700;
}

.concept-map {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.concept-map article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-left: 3px solid var(--lime);
  border-radius: 4px 14px 14px 4px;
  background: #141518;
}

.concept-map span,
.knowledge-components small {
  color: var(--muted);
  line-height: 1.5;
}

.concept-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.concept-links span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.74rem;
}

.knowledge-components {
  display: grid;
  gap: 8px;
}

.knowledge-components > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.knowledge-components > div > span {
  color: var(--lime);
  font-weight: 800;
}

.knowledge-components p,
.knowledge-components strong,
.knowledge-components small {
  display: block;
  margin: 0;
}

.worked-examples,
.independent-cases {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.worked-examples > article,
.independent-cases > article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 18, 21, 0.94);
}

.worked-examples > article > span,
.independent-cases > article > span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.worked-examples h3,
.independent-cases h3 {
  margin: 10px 0;
  font-family: var(--display-font);
  font-size: 1.65rem;
}

.worked-examples p,
.worked-examples li,
.independent-cases p,
.independent-cases li {
  line-height: 1.65;
}

.case-question,
.case-conclusion {
  display: block;
  padding: 15px;
  margin: 14px 0;
  border-radius: 12px;
  background: rgba(202, 255, 57, 0.07);
}

.independent-cases textarea {
  width: 100%;
  margin-top: 18px;
}

.practice-hint {
  color: var(--blue);
  font-size: 0.86rem;
}

.unknown-answer {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #17181c;
  font-weight: 750;
}

.mastery-result-ring {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 28px auto;
  border: 10px solid var(--lime);
  border-radius: 50%;
}

.mastery-result-ring.failed {
  border-color: #ff7474;
}

.mastery-result-ring strong,
.mastery-result-ring span {
  display: block;
  text-align: center;
}

.mastery-result-ring strong {
  font: 700 2.3rem var(--display-font);
}

.mastery-result-ring span {
  color: var(--muted);
  font-size: 0.74rem;
}

.corrective-routes p {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.mastery-details {
  margin-top: 18px;
}

.mastery-details > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mastery-details .correct > span {
  color: var(--lime);
}

.mastery-details .incorrect > span {
  color: #ff7474;
}

.mastery-details p,
.mastery-details strong,
.mastery-details small {
  display: block;
  margin: 0;
}

@media (max-width: 520px) {
  .lesson-depth-stats strong {
    font-size: 1.25rem;
  }

  .lesson-depth-stats span {
    font-size: 0.64rem;
  }

  .concept-visual > div {
    grid-template-columns: 1fr;
  }

  .concept-visual span {
    min-height: auto;
  }

  .curriculum-module > p {
    padding-left: 0;
  }

  .curriculum-lessons {
    margin-left: 12px;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% -10%, rgba(182, 140, 255, 0.13), transparent 28rem),
    var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-touch-callout: none;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.eyebrow,
.section-kicker,
.hero-eyebrow {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 20px 14px;
  background: rgba(13, 14, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}

.add-button {
  color: #101113;
  border: 0;
  background: var(--lime);
  box-shadow: 0 10px 30px rgba(213, 255, 97, 0.16);
}

main {
  padding: 0 16px calc(112px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  animation: screen-in 180ms ease-out;
}

.screen.active {
  display: block;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 16px;
}

.date-button,
.date-arrow {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.date-button {
  min-width: 190px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 650;
}

.date-arrow {
  width: 36px;
  height: 36px;
  font-size: 28px;
  cursor: pointer;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 230px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(213, 255, 97, 0.13);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(213, 255, 97, 0.28), transparent 37%),
    linear-gradient(145deg, #20251d, #17191e 64%);
  box-shadow: var(--shadow);
}

.hero-card::before {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(213, 255, 97, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.hero-copy h2 {
  margin: 10px 0 14px;
  max-width: 320px;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p:last-child {
  max-width: 260px;
  margin: 0;
  color: #b7bdc7;
  font-size: 13px;
  line-height: 1.45;
}

.progress-ring {
  --progress: 0deg;
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 92px;
  align-self: start;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--progress), rgba(255, 255, 255, 0.08) 0);
}

.progress-ring::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #1b1e1d;
  content: "";
}

.progress-ring div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-ring strong {
  font-size: 21px;
  letter-spacing: -0.05em;
}

.progress-ring span {
  color: var(--muted);
  font-size: 10px;
}

.section-block {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  min-height: 50px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.section-count {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.small-action {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(213, 255, 97, 0.1);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.focus-list,
.task-list,
.history-list,
.inbox-list {
  display: grid;
  gap: 9px;
}

.focus-item,
.task-item,
.routine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.focus-item input[type="text"] {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.focus-item input[type="text"]::placeholder {
  color: #626875;
}

.check-control {
  position: relative;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

.check-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-ui {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid #555d68;
  border-radius: 8px;
  color: #111;
  transition: 160ms ease;
}

.check-ui svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  stroke-width: 2.6;
}

.check-control input:checked + .check-ui {
  border-color: var(--lime);
  background: var(--lime);
}

.check-control input:checked + .check-ui svg {
  opacity: 1;
}

.focus-item.completed input[type="text"],
.task-item.completed .task-title {
  color: #707681;
  text-decoration: line-through;
}

.task-item {
  align-items: flex-start;
}

.task-copy {
  min-width: 0;
  flex: 1;
}

.task-title {
  display: block;
  margin: 2px 0 6px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.task-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.task-meta .overdue {
  background: rgba(255, 142, 123, 0.12);
  color: var(--coral);
}

.task-delete,
.inbox-delete {
  flex: 0 0 auto;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #59606c;
  cursor: pointer;
}

.task-delete svg,
.inbox-delete svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  padding: 24px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.routine-item {
  position: relative;
  min-height: 104px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.routine-item.completed {
  border-color: rgba(213, 255, 97, 0.25);
  background: linear-gradient(145deg, rgba(213, 255, 97, 0.13), var(--surface));
}

.routine-item small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.routine-item strong {
  max-width: 150px;
  font-size: 13px;
  line-height: 1.3;
}

.routine-tick {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
}

.routine-item.completed .routine-tick {
  border-color: var(--lime);
  background: var(--lime);
  color: #101113;
}

.routine-tick svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.expand-card {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.expand-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.summary-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(182, 140, 255, 0.13);
  color: var(--purple);
}

.summary-icon.lime {
  background: rgba(213, 255, 97, 0.11);
  color: var(--lime);
}

.expand-card summary small,
.expand-card summary strong {
  display: block;
}

.expand-card summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.expand-card summary strong {
  font-size: 14px;
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.expand-card[open] .chevron {
  transform: rotate(90deg);
}

.inside-form,
.inside-content {
  display: grid;
  gap: 14px;
  padding: 4px 14px 18px;
  border-top: 1px solid var(--line);
}

.inside-form {
  padding-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #aeb4be;
  font-size: 11px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #101217;
  color: var(--text);
  font-size: 14px;
  transition: border 150ms ease, box-shadow 150ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(213, 255, 97, 0.5);
  box-shadow: 0 0 0 3px rgba(213, 255, 97, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #555c68;
}

.input-grid {
  display: grid;
  gap: 10px;
}

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

.input-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

.form-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  background: var(--lime);
  color: #101113;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.full-button {
  width: 100%;
}

.screen-intro {
  padding: 30px 4px 18px;
}

.screen-intro h2 {
  margin: 7px 0 8px;
  font-size: 38px;
  letter-spacing: -0.055em;
}

.screen-intro > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  gap: 8px;
  padding: 4px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.chip.active {
  border-color: var(--lime);
  background: var(--lime);
  color: #101113;
}

.large-list {
  min-height: 220px;
}

.sticky-action {
  position: sticky;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 3;
  margin-top: 20px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.4);
}

.accent-card,
.language-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.accent-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(213, 255, 97, 0.28), transparent 36%),
    linear-gradient(145deg, #252b20, #17191d);
}

.language-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(182, 140, 255, 0.35), transparent 40%),
    linear-gradient(145deg, #26202e, #17191e);
}

.accent-card::after,
.language-card::after {
  position: absolute;
  right: -25px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.accent-card .card-kicker,
.language-card .card-kicker {
  color: var(--lime);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.language-card .card-kicker {
  color: #d4bdff;
}

.accent-card h3,
.language-card h3 {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 12px 0 10px;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.accent-card p,
.language-card p {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0;
  color: #b6bbc5;
  font-size: 13px;
  line-height: 1.45;
}

.accent-card + .primary-button,
.language-card + .primary-button {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: -24px 16px 0;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 7px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.week-day {
  min-height: 82px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.week-day.current {
  border-color: rgba(213, 255, 97, 0.4);
  background: rgba(213, 255, 97, 0.1);
}

.week-day strong,
.week-day span {
  display: block;
}

.week-day strong {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.week-day span {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.25;
}

.exercise-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.exercise-row {
  display: grid;
  width: 100%;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

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

.exercise-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--lime);
  font-size: 11px;
  font-weight: 750;
}

.exercise-row strong,
.exercise-row small {
  display: block;
}

.exercise-row strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.exercise-row small {
  color: var(--muted);
  font-size: 10px;
}

.exercise-dose {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.mobility-group {
  padding-top: 14px;
}

.mobility-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.mobility-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobility-group li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #c5c9d0;
  font-size: 12px;
}

.mobility-group li span:last-child {
  color: var(--muted);
  text-align: right;
}

.detail-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.history-date {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--lime);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.history-item strong,
.history-item small {
  display: block;
}

.history-item strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.history-item small {
  color: var(--muted);
  font-size: 10px;
}

.history-value {
  color: var(--muted);
  font-size: 11px;
}

.time-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.time-plan div {
  padding: 15px 6px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.time-plan div:last-child {
  border-right: 0;
}

.time-plan strong,
.time-plan span {
  display: block;
}

.time-plan strong {
  margin-bottom: 5px;
  color: var(--purple);
  font-size: 23px;
}

.time-plan span {
  color: var(--muted);
  font-size: 9px;
}

.lesson-week,
.roadmap-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.lesson-row,
.roadmap-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.lesson-row.current,
.roadmap-row.current {
  border-color: rgba(182, 140, 255, 0.35);
  background: rgba(182, 140, 255, 0.08);
}

.lesson-day,
.roadmap-month {
  color: var(--purple);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.lesson-row strong,
.lesson-row small,
.roadmap-row strong,
.roadmap-row small {
  display: block;
}

.lesson-row strong,
.roadmap-row strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.lesson-row small,
.roadmap-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.health-routine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.health-column {
  min-height: 260px;
  padding: 17px;
  border: 1px solid rgba(213, 255, 97, 0.15);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(213, 255, 97, 0.11), var(--surface));
}

.health-column.evening {
  border-color: rgba(182, 140, 255, 0.15);
  background: linear-gradient(160deg, rgba(182, 140, 255, 0.11), var(--surface));
}

.health-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(213, 255, 97, 0.12);
  color: var(--lime);
}

.health-column.evening .health-icon {
  background: rgba(182, 140, 255, 0.12);
  color: var(--purple);
}

.health-icon svg {
  width: 19px;
  height: 19px;
}

.health-column h3 {
  margin: 14px 0 12px;
  font-size: 20px;
}

.health-column ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #b9bec7;
  font-size: 11px;
  line-height: 1.35;
}

.measurement-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.measurement-card {
  min-width: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.measurement-card small,
.measurement-card strong,
.measurement-card span {
  display: block;
}

.measurement-card small {
  color: var(--muted);
  font-size: 9px;
}

.measurement-card strong {
  margin: 8px 0 6px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.measurement-card span {
  color: var(--muted);
  font-size: 10px;
}

.quick-capture {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-capture .icon-button {
  border: 0;
  background: var(--lime);
  color: #101113;
}

.inbox-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.inbox-row.processed {
  opacity: 0.55;
}

.inbox-row p {
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.inbox-row small {
  color: var(--muted);
  font-size: 9px;
}

.settings-list {
  display: grid;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.settings-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

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

.settings-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--lime);
}

.settings-icon svg {
  width: 19px;
  height: 19px;
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.settings-row small {
  color: var(--muted);
  font-size: 10px;
}

.danger-row .settings-icon {
  color: var(--coral);
}

.medical-note {
  margin: 18px 4px 0;
  color: #666d79;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 780px);
  min-height: 76px;
  margin: 0 auto;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(18, 20, 25, 0.92);
  backdrop-filter: blur(24px);
}

.nav-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #6f7682;
  cursor: pointer;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 600;
}

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

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(100%, 650px);
  max-height: 91vh;
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #15171c;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.45);
  animation: modal-up 220ms ease-out;
}

@keyframes modal-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 99px;
  background: #424751;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 5px 0 0;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.modal-form {
  display: grid;
  gap: 13px;
}

.form-more {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.form-more summary {
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.form-more[open] {
  display: grid;
  gap: 12px;
}

.check-label {
  align-content: end;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 67px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101217;
}

.check-label input {
  width: 24px;
  height: 24px;
  accent-color: var(--lime);
}

.workout-exercise-form {
  display: grid;
  gap: 10px;
}

.workout-entry {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.workout-entry > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

.workout-entry .input-grid {
  grid-template-columns: 0.75fr 1fr 1fr 0.7fr;
}

.workout-entry label {
  font-size: 9px;
}

.workout-entry input {
  padding: 10px 8px;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 470px;
  margin: auto;
  padding: 13px 16px;
  border: 1px solid rgba(213, 255, 97, 0.24);
  border-radius: 14px;
  background: #242922;
  color: #e7f7bf;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.login-view,
.loading-view {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  min-height: 100vh;
  padding: calc(30px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom));
  overflow: hidden;
  place-items: center;
  background: #0d0e12;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.login-orb-one {
  top: -160px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(182, 140, 255, 0.28), transparent 68%);
}

.login-orb-two {
  bottom: -190px;
  left: -130px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(213, 255, 97, 0.18), transparent 68%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: var(--lime);
  color: #101113;
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -0.08em;
  box-shadow: 0 16px 50px rgba(213, 255, 97, 0.18);
}

.login-card h1 {
  margin: 7px 0 10px;
  font-size: 55px;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.login-copy {
  max-width: 330px;
  margin: 0 0 32px;
  color: var(--muted);
  line-height: 1.5;
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 92px;
}

.text-button {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-size: 11px;
  transform: translateY(-50%);
}

.form-error {
  min-height: 17px;
  margin: 7px 0;
  color: var(--coral);
  font-size: 11px;
}

.login-note {
  margin: 18px 0 0;
  color: #626977;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.loading-view {
  align-content: center;
}

.loading-mark {
  margin: 0 auto 22px;
}

.loading-line {
  width: 120px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.loading-line span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  animation: loading-slide 1s infinite ease-in-out;
}

@keyframes loading-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.ai-today-card {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(182, 140, 255, 0.24);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(182, 140, 255, 0.2), transparent 45%),
    var(--surface);
}

.ai-today-card::after {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(182, 140, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-card-head svg {
  width: 15px;
  height: 15px;
}

.ai-status {
  padding: 5px 8px;
  border: 1px solid rgba(182, 140, 255, 0.22);
  border-radius: 999px;
  color: #d4bdff;
  font-size: 9px;
}

.ai-today-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.ai-today-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #b8bdc6;
  font-size: 12px;
  line-height: 1.5;
}

.ai-today-card button {
  position: relative;
  z-index: 1;
  justify-self: start;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(182, 140, 255, 0.16);
  color: #decfff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ai-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-loading::before {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(182, 140, 255, 0.24);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: ai-spin 0.9s linear infinite;
  content: "";
}

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

/* Guided English lesson v3 */
.lesson-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(213, 255, 97, 0.18);
  border-radius: 14px;
  background: rgba(213, 255, 97, 0.055);
}

.lesson-requirements > div,
.lesson-requirements > span {
  display: grid;
  gap: 4px;
}

.lesson-requirements small,
.lesson-theory-grid small,
.lesson-hint small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-requirements strong {
  font-size: 11px;
  line-height: 1.4;
}

.lesson-theory-grid {
  display: grid;
  gap: 8px;
}

.lesson-theory-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.lesson-theory-grid p,
.lesson-summary-card p,
.lesson-mechanism p,
.lesson-hint p {
  margin: 5px 0 0;
  color: #d5d8df;
  font-size: 12px;
  line-height: 1.55;
}

.interactive-english {
  white-space: pre-wrap;
}

.english-word {
  display: inline;
  margin: 0;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px dotted rgba(213, 255, 97, 0.5);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.english-word:active {
  color: var(--lime);
}

.lesson-help {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.lesson-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.lesson-support-button {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(182, 140, 255, 0.22);
  border-radius: 11px;
  background: rgba(182, 140, 255, 0.08);
  color: #dcd0f3;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.lesson-support-button.muted {
  border-color: var(--line);
  background: var(--surface-2);
  color: #858c98;
}

.lesson-support-button.retry {
  width: 100%;
  border-color: rgba(213, 255, 97, 0.3);
  background: rgba(213, 255, 97, 0.09);
  color: var(--lime);
}

.lesson-hint,
.lesson-scaffold,
.lesson-translation,
.lesson-mechanism {
  padding: 12px;
  border: 1px solid rgba(182, 140, 255, 0.2);
  border-radius: 13px;
  background: rgba(182, 140, 255, 0.07);
  color: #d7ccec;
  font-size: 11px;
  line-height: 1.5;
}

.lesson-audio-player {
  display: grid;
  gap: 10px;
}

.lesson-speed-row {
  display: flex;
  gap: 6px;
}

.lesson-speed {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: #949ba7;
  font-size: 10px;
}

.lesson-speed.selected {
  border-color: rgba(213, 255, 97, 0.35);
  color: var(--lime);
}

.lesson-result-pair {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
}

.lesson-result-pair span {
  color: #858c98;
}

.english-lookup-sheet {
  position: fixed;
  z-index: 500;
  inset: 0;
}

.english-lookup-sheet.hidden {
  display: none;
}

.lookup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.lookup-card {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 700px);
  max-height: 82dvh;
  margin: auto;
  padding: 23px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: #181a20;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
}

.lookup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #8e949e;
  font-size: 28px;
}

.lookup-card h2 {
  margin: 4px 0;
  font-size: 30px;
}

.lookup-pronunciation {
  margin: 0;
  color: #9ca3ae;
  font-size: 12px;
}

.lookup-translation {
  margin: 14px 0;
  color: var(--lime);
  font-size: 20px;
  font-weight: 750;
}

.lookup-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 36px;
}

.lookup-source-row p {
  margin: 0;
}

.lookup-source-row > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(213, 255, 97, 0.25);
  border-radius: 999px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.lookup-senses {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}

.lookup-sense {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 6, 7, 0.35);
}

.lookup-sense small {
  color: #8e949e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lookup-sense strong {
  color: #e6e8ec;
  font-size: 13px;
  line-height: 1.45;
}

.lookup-context-button,
.lookup-local-button {
  width: 100%;
  margin-top: 14px;
}

.lookup-context-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(194, 146, 255, 0.34);
  border-radius: 15px;
  background: rgba(117, 74, 160, 0.16);
  color: #d8b9ff;
  font-weight: 800;
}

.lookup-context-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lookup-not-found {
  margin: 16px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(5, 6, 7, 0.35);
}

.lookup-not-found strong {
  font-size: 14px;
  line-height: 1.4;
}

.lookup-not-found p,
.lookup-context-missing {
  color: #9299a4;
}

.lookup-card p {
  color: #c8ccd3;
  font-size: 12px;
  line-height: 1.55;
}

.lookup-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.routine-progress {
  margin-top: auto;
  color: #727986;
  font-size: 9px;
}

.routine-item.completed .routine-progress {
  color: var(--lime);
}

.task-title-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.task-detail-hint {
  color: #7c8390;
  font-size: 9px;
}

.professional-card {
  position: relative;
  min-height: 150px;
  margin-top: 28px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(124, 184, 255, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(124, 184, 255, 0.22), transparent 44%),
    linear-gradient(145deg, #1d2730, #15171c);
}

.professional-card .card-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.professional-card h3 {
  max-width: 330px;
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.professional-card p {
  max-width: 340px;
  margin: 0;
  color: #b6bbc5;
  font-size: 12px;
  line-height: 1.45;
}

.professional-card + .secondary-button {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: -19px 16px 0;
}

.health-column {
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.health-column p {
  margin: 0;
  color: #b9bec7;
  font-size: 11px;
  line-height: 1.45;
}

.health-open {
  display: block;
  margin-top: 16px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.health-column.evening .health-open {
  color: var(--purple);
}

.ai-settings-card {
  margin-top: 18px;
}

.summary-icon.purple {
  background: rgba(182, 140, 255, 0.14);
  color: var(--purple);
}

.detail-content {
  display: grid;
  gap: 14px;
}

.detail-intro {
  margin: 0;
  color: #c4c8d0;
  font-size: 13px;
  line-height: 1.55;
}

.detail-caution {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 142, 123, 0.2);
  border-radius: 12px;
  background: rgba(255, 142, 123, 0.07);
  color: #e7b4aa;
  font-size: 11px;
  line-height: 1.5;
}

.detail-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.detail-step-copy {
  min-width: 0;
}

.detail-step-copy > strong,
.detail-step-copy > small {
  display: block;
}

.detail-step-copy > strong {
  padding-right: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.detail-step-copy > small {
  margin-top: 3px;
  color: var(--lime);
  font-size: 10px;
}

.detail-step-copy p {
  margin: 12px 0 0;
  white-space: pre-wrap;
  color: #d6d9df;
  font-size: 13px;
  line-height: 1.6;
}

.detail-step-copy ol,
.detail-step-copy ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding-left: 18px;
  color: #b9bec7;
  font-size: 11px;
  line-height: 1.45;
}

.detail-check {
  margin-top: 1px;
}

.modal-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.ai-plan-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.ai-plan-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.ai-plan-section p {
  margin: 0;
  color: #b8bdc6;
  font-size: 12px;
  line-height: 1.5;
}

.ai-plan-section ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d7d9de;
  font-size: 12px;
}

.english-feedback {
  padding: 13px;
  border: 1px solid rgba(182, 140, 255, 0.25);
  border-radius: 14px;
  background: rgba(182, 140, 255, 0.08);
}

.english-feedback h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.english-feedback p {
  margin: 7px 0 0;
  white-space: pre-wrap;
  color: #c9c2d6;
  font-size: 11px;
  line-height: 1.5;
}

.english-correction {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-view {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-rows: auto 4px minmax(0, 1fr) auto;
  width: min(100%, 700px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 2%, rgba(190, 255, 77, 0.13), transparent 28%),
    #0d0e12;
}

.lesson-view.hidden {
  display: none;
}

.lesson-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 18px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
}

.lesson-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lesson-heading {
  min-width: 0;
}

.lesson-heading small {
  display: block;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.lesson-heading strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-stage-counter {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lesson-progress-track {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.lesson-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--lime), #8de7ff);
  transition: width 220ms ease;
}

.lesson-content {
  overflow-y: auto;
  padding: 30px 22px 28px;
  overscroll-behavior: contain;
}

.lesson-step {
  display: grid;
  gap: 18px;
  min-height: 100%;
  align-content: start;
}

.lesson-step-kicker {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lesson-step h2 {
  margin: -6px 0 0;
  font-size: clamp(30px, 9vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lesson-step-copy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.lesson-prompt-card,
.lesson-feedback-card,
.lesson-transcript,
.lesson-summary-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.lesson-prompt-card strong,
.lesson-transcript strong {
  display: block;
  font-size: 19px;
  line-height: 1.4;
}

.lesson-prompt-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lesson-answer {
  width: 100%;
  min-height: 118px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--text);
  background: #12141a;
  font-size: 17px;
  line-height: 1.45;
}

.lesson-answer.short {
  min-height: 58px;
}

.lesson-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lesson-choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-choice {
  min-height: 50px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.lesson-choice.selected {
  border-color: var(--lime);
  color: #11150a;
  background: var(--lime);
}

.lesson-audio-row {
  display: grid;
  grid-template-columns: minmax(52px, 0.65fr) minmax(0, 1.8fr) minmax(52px, 0.65fr);
  gap: 10px;
}

.lesson-audio-full {
  width: 100%;
  min-height: 58px;
  border-color: rgba(213, 255, 97, 0.34);
  color: var(--lime);
  background: rgba(213, 255, 97, 0.09);
}

.lesson-audio-caption {
  margin: 2px 0 -3px;
  color: #858c98;
  font-size: 11px;
}

.lesson-audio-button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  border: 1px solid rgba(182, 140, 255, 0.3);
  border-radius: 16px;
  color: #d5bbff;
  background: rgba(182, 140, 255, 0.1);
  font-weight: 750;
}

#audio-prev,
#audio-next {
  font-size: 20px;
}

.lesson-audio-button.recording {
  border-color: #ff7f72;
  color: #ffb0a8;
  background: rgba(255, 93, 79, 0.12);
}

.lesson-audio-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lesson-feedback-card {
  border-color: rgba(190, 255, 77, 0.25);
  background: rgba(190, 255, 77, 0.06);
}

.lesson-feedback-card.needs-work {
  border-color: rgba(255, 139, 122, 0.3);
  background: rgba(255, 139, 122, 0.07);
}

.lesson-feedback-card h3,
.lesson-feedback-card p {
  margin: 0;
}

.lesson-feedback-card p {
  margin-top: 9px;
  color: #c7c9cf;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.lesson-correction {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.lesson-correction s {
  color: #a98883;
}

.lesson-correction strong {
  display: block;
  margin-top: 5px;
  color: var(--lime);
}

.lesson-transcript {
  color: #e8e9ed;
  font-size: 16px;
  line-height: 1.7;
}

.lesson-transcript.blurred {
  user-select: none;
  filter: blur(9px);
}

.lesson-drill-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-drill-list li {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 14px;
}

.lesson-footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(13, 14, 18, 0.94);
  backdrop-filter: blur(18px);
}

.lesson-primary-action {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: #11150a;
  background: var(--lime);
  font-size: 16px;
  font-weight: 850;
}

.lesson-primary-action:disabled {
  color: #777b84;
  background: #25272d;
}

.english-progress {
  display: grid;
  gap: 12px;
}

.english-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.english-progress-stats div {
  padding: 16px 8px;
  text-align: center;
}

.english-progress-stats div + div {
  border-left: 1px solid var(--line);
}

.english-progress-stats strong {
  display: block;
  color: var(--lime);
  font-size: 25px;
}

.english-progress-stats span {
  color: var(--muted);
  font-size: 10px;
}

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

.english-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #d7d9de;
  background: var(--surface);
  font-size: 12px;
}

@media (min-width: 700px) {
  .app-shell {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .routine-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-backdrop {
    align-items: center;
    padding: 30px;
  }

  .modal {
    border-bottom: 1px solid var(--line);
    border-radius: 28px;
  }
}

@media (max-width: 390px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 78px;
    height: 78px;
  }

  .hero-copy h2 {
    padding-right: 42px;
  }

  .input-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .workout-entry .input-grid {
    grid-template-columns: 1fr 1fr;
  }

  .health-routine {
    grid-template-columns: 1fr;
  }

  .health-column {
    min-height: auto;
  }
}

/* Unified day ledger and reviews v20 */
.now-section {
  overflow: hidden;
  border-color: rgba(213, 255, 97, 0.16);
  background:
    radial-gradient(circle at 92% 0%, rgba(213, 255, 97, 0.08), transparent 38%),
    rgba(10, 11, 14, 0.92);
}

.current-activity {
  margin-top: 14px;
}

.activity-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  color: var(--muted);
}

.activity-empty-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #66706f;
  border-radius: 50%;
}

.activity-empty strong,
.activity-empty small {
  display: block;
}

.activity-empty strong {
  color: var(--text);
  font-size: 13px;
}

.activity-empty small {
  margin-top: 4px;
  font-size: 10px;
}

.activity-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.activity-quick-grid button {
  min-width: 0;
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
}

.activity-quick-grid strong,
.activity-quick-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-quick-grid strong {
  font-size: 11px;
}

.activity-quick-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.activity-timeline {
  margin-top: 15px;
}

.activity-history-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.activity-card.active {
  display: block;
  padding: 16px;
  border: 1px solid rgba(213, 255, 97, 0.22);
  border-radius: 18px;
  background: rgba(213, 255, 97, 0.045);
}

.activity-card-copy small,
.activity-card-copy strong,
.activity-card-copy p {
  display: block;
}

.activity-card-copy small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-card-copy strong {
  margin-top: 5px;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 500;
}

.activity-card-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.activity-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  margin-top: 14px;
}

.activity-card-actions button {
  padding: 10px 8px;
  border: 1px solid rgba(213, 255, 97, 0.22);
  border-radius: 11px;
  background: rgba(213, 255, 97, 0.09);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.activity-card-actions button:nth-child(2) {
  border-color: var(--lime);
  background: var(--lime);
  color: #0c0e09;
}

.activity-card-actions .muted {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.activity-result {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-result.result,
.activity-result.restored {
  color: var(--lime);
}

.activity-result.blocked {
  color: var(--coral);
}

.activity-mini-bar {
  position: fixed;
  z-index: 38;
  right: 10px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 5px;
  width: min(calc(100% - 20px), 760px);
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(213, 255, 97, 0.3);
  border-radius: 16px;
  background: rgba(11, 13, 12, 0.96);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px);
}

.activity-mini-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.activity-mini-main span {
  min-width: 0;
}

.activity-mini-main small,
.activity-mini-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-mini-main small {
  color: var(--lime);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.activity-mini-main strong {
  max-width: 42vw;
  margin-top: 3px;
  font-size: 11px;
}

.activity-mini-main em {
  margin-left: 8px;
  color: var(--lime);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.activity-mini-action {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.activity-mini-action.stop {
  color: var(--coral);
}

.has-activity-mini .app-shell > main {
  padding-bottom: 160px;
}

.duration-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.duration-presets button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
}

.duration-presets button.active {
  border-color: var(--lime);
  color: var(--lime);
}

.review-system-section {
  border-color: rgba(182, 140, 255, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 140, 255, 0.07), transparent 40%),
    rgba(10, 11, 14, 0.94);
}

.review-tabs {
  margin: 14px 0;
}

.review-loading,
.review-ai-empty {
  padding: 22px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.review-ai-empty strong {
  color: var(--text);
}

.review-ai-empty p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.review-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-status {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(124, 184, 255, 0.1);
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.review-status.closed {
  background: rgba(213, 255, 97, 0.1);
  color: var(--lime);
}

.review-status-row > small {
  color: var(--muted);
  font-size: 9px;
}

.review-dimensions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.review-dimensions > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.review-dimensions span,
.review-dimensions strong {
  display: block;
}

.review-dimensions span {
  color: var(--muted);
  font-size: 9px;
}

.review-dimensions strong {
  margin-top: 4px;
  font-size: 11px;
}

.review-dimensions .on_track strong,
.review-dimensions .recorded strong {
  color: var(--lime);
}

.review-dimensions .low strong {
  color: var(--coral);
}

.review-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.review-metric {
  min-width: 0;
  padding: 11px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.review-metric span,
.review-metric strong {
  display: block;
}

.review-metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-metric strong {
  margin-top: 5px;
  font-size: 14px;
}

.review-unknown {
  margin: 12px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.review-ai-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(182, 140, 255, 0.22);
  border-radius: 18px;
  background: rgba(182, 140, 255, 0.055);
}

.review-ai-card.stale {
  border-color: rgba(255, 142, 123, 0.28);
}

.review-ai-card > small {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.review-ai-card h3 {
  margin: 8px 0;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 500;
}

.review-ai-card > p,
.review-ai-card li {
  color: #bec2cb;
  font-size: 11px;
  line-height: 1.55;
}

.review-ai-card ul,
.review-ai-card ol {
  padding-left: 18px;
}

.review-callout {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
}

.review-callout.lime {
  border-color: rgba(213, 255, 97, 0.18);
}

.review-callout small {
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.review-callout p {
  margin: 7px 0 0;
}

.weekly-decisions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.weekly-decisions > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.weekly-decisions small {
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.weekly-decisions p {
  margin: 6px 0 0;
}

.review-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.week-days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.week-days-strip > div {
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.week-days-strip > div.closed {
  border-color: rgba(213, 255, 97, 0.2);
}

.week-days-strip span,
.week-days-strip strong {
  display: block;
}

.week-days-strip span {
  font-size: 8px;
}

.week-days-strip strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 9px;
}

@media (max-width: 390px) {
  .activity-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* v13 · training cockpit and material-first lesson entry */
.training-compact-header {
  padding: 6px 2px 18px;
}

.training-compact-header h2 {
  margin: 4px 0 5px;
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 500;
}

.training-compact-header p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.training-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 -4px 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 13, 15, 0.88);
}

.training-tabs button {
  min-width: 0;
  padding: 10px 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.training-tabs button.active {
  background: rgba(199, 255, 58, 0.12);
  color: var(--lime);
}

.training-panel {
  display: none;
}

.training-panel.active {
  display: block;
}

.training-next-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(199, 255, 58, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 255, 58, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(18, 21, 15, 0.98), rgba(9, 10, 11, 0.98));
}

.training-card-topline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.training-card-topline small {
  color: var(--muted);
  letter-spacing: 0;
}

.training-letter {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(199, 255, 58, 0.32);
  border-radius: 18px;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 2.25rem;
}

.training-next-card h3 {
  margin: 0 0 5px;
  font-size: 1.35rem;
}

.training-next-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.training-next-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.training-next-card dl div {
  display: grid;
  gap: 4px;
  padding: 0 10px;
  border-left: 1px solid var(--line);
}

.training-next-card dl div:first-child {
  padding-left: 0;
  border: 0;
}

.training-next-card dt {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.training-next-card dd {
  margin: 0;
  font-weight: 800;
}

#start-workout {
  margin: 12px 0 25px;
}

.training-dashboard-section {
  margin: 25px 0;
}

.training-cycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.training-cycle article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(15, 16, 18, 0.88);
}

.training-cycle article.current {
  border-color: rgba(199, 255, 58, 0.36);
  background: rgba(199, 255, 58, 0.07);
}

.training-cycle article > span {
  color: var(--lime);
  font: 1.6rem var(--serif);
}

.training-cycle strong {
  font-size: 0.78rem;
}

.training-cycle small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.training-progress-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.training-progress-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 16, 0.9);
  color: var(--text);
  text-align: left;
}

.training-progress-row:last-child {
  border: 0;
}

.training-progress-row span {
  display: grid;
  gap: 4px;
}

.training-progress-row small {
  color: var(--muted);
}

.training-progress-row b {
  flex: none;
  color: var(--lime);
  font-size: 0.82rem;
}

.training-safety {
  padding: 14px 15px;
  border-left: 2px solid #d49a56;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.training-block-card,
.training-progress-summary {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(197, 137, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 18, 32, 0.95), rgba(11, 11, 14, 0.95));
}

.training-block-card small,
.training-progress-summary > small {
  color: #d5a8ff;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.training-block-card h3 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.training-block-card p,
.training-progress-summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.program-workout-card,
.training-equipment-card {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(12, 13, 15, 0.92);
}

.program-workout-card > summary {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  list-style: none;
}

.program-workout-card > summary > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(199, 255, 58, 0.1);
  color: var(--lime);
  font: 1.5rem var(--serif);
}

.program-workout-card summary div {
  display: grid;
  gap: 4px;
}

.program-workout-card summary small {
  color: var(--muted);
  line-height: 1.35;
}

.program-exercise-row {
  display: grid;
  width: 100%;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.program-exercise-row > span {
  color: var(--muted);
  font: 1rem var(--serif);
}

.program-exercise-row div {
  display: grid;
  gap: 4px;
}

.program-exercise-row small,
.program-exercise-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.4;
}

.program-exercise-row em {
  margin-top: 4px;
  color: #cdb3df;
}

.program-exercise-row em.recommendation-increase {
  color: var(--lime);
}

.program-exercise-row em.recommendation-reduce {
  color: #ffb36a;
}

.training-equipment-card > summary {
  padding: 17px;
  color: var(--lime);
  font-weight: 800;
}

.available-weights {
  padding: 0 17px 17px;
}

.available-weights p {
  color: var(--muted);
  line-height: 1.5;
}

.training-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
}

.training-search input {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111216;
  color: var(--text);
}

.exercise-library {
  display: grid;
  gap: 8px;
}

.exercise-library-card {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  gap: 11px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(13, 14, 16, 0.92);
  color: var(--text);
  text-align: left;
}

.exercise-library-card > span {
  color: var(--lime);
}

.exercise-library-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.exercise-library-card div {
  display: grid;
  gap: 3px;
}

.exercise-library-card small,
.exercise-library-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.training-progress-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.training-progress-summary > small,
.training-progress-summary p {
  grid-column: 1 / -1;
}

.training-progress-summary .muscle-volume {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  border: 0;
}

.muscle-volume small {
  width: 100%;
  color: #d5a8ff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.muscle-volume span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
}

.muscle-volume b {
  color: var(--lime);
}

.muscle-volume em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.training-progress-summary div {
  display: grid;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.training-progress-summary div strong {
  color: var(--lime);
  font: 2rem var(--serif);
}

.training-progress-summary div span {
  color: var(--muted);
  font-size: 0.72rem;
}

.more-learning-link {
  width: 100%;
  margin: 0 0 16px;
}

.workout-session-view {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 90% 5%, rgba(199, 255, 58, 0.08), transparent 30%),
    #08090b;
}

.workout-session-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(16px);
}

.workout-session-heading {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.workout-session-heading small {
  overflow: hidden;
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workout-session-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workout-total-timer {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.workout-session-progress {
  position: sticky;
  z-index: 4;
  top: calc(86px + env(safe-area-inset-top));
  height: 3px;
  background: #1c1d20;
}

.workout-session-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #72dcff);
  transition: width 180ms ease;
}

.workout-session-content {
  width: min(100%, 620px);
  margin: auto;
  padding: 28px 16px calc(118px + env(safe-area-inset-bottom));
}

.workout-session-content h2 {
  margin: 7px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.workout-session-footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 13px max(16px, calc((100vw - 620px) / 2)) calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(16px);
}

.workout-session-footer button {
  min-height: 54px;
  border-radius: 15px;
  font-weight: 900;
}

.workout-footer-secondary {
  width: 110px;
  border: 1px solid var(--line);
  background: #111216;
  color: var(--text);
}

.workout-footer-primary {
  flex: 1;
  max-width: 450px;
  border: 0;
  background: var(--lime);
  color: #08090a;
}

.workout-preflight > p,
.workout-warmup > p,
.workout-exercise-screen > p,
.workout-ready-finish > p,
.workout-finish-screen > p {
  color: var(--muted);
  line-height: 1.55;
}

.workout-preflight fieldset,
.workout-set-form fieldset {
  display: flex;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.workout-preflight legend,
.workout-set-form legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.75rem;
}

.workout-preflight fieldset label,
.workout-set-form fieldset label {
  flex: 1;
}

.workout-preflight fieldset input,
.workout-set-form fieldset input {
  position: absolute;
  opacity: 0;
}

.workout-preflight fieldset span,
.workout-set-form fieldset span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111216;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.workout-preflight fieldset input:checked + span,
.workout-set-form fieldset input:checked + span {
  border-color: var(--lime);
  background: rgba(199, 255, 58, 0.12);
  color: var(--lime);
}

.workout-preflight > label,
.workout-set-form > label,
.workout-ready-finish label {
  display: grid;
  gap: 8px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.workout-preflight input,
.workout-set-form input,
.workout-set-form select,
.workout-ready-finish textarea {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111216;
  color: var(--text);
  font: inherit;
}

.workout-plan-preview {
  display: grid;
  gap: 5px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(199, 255, 58, 0.24);
  border-radius: 15px;
  background: rgba(199, 255, 58, 0.06);
}

.workout-plan-preview span {
  color: var(--muted);
}

.workout-warmup > div {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.workout-warmup label {
  display: block;
  border-bottom: 1px solid var(--line);
}

.workout-warmup label:last-child {
  border: 0;
}

.workout-warmup label input {
  position: absolute;
  opacity: 0;
}

.workout-warmup label span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: var(--muted);
}

.workout-warmup label input:checked + span {
  background: rgba(199, 255, 58, 0.07);
  color: var(--text);
}

.workout-warmup label b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--lime);
}

.workout-stability-warning {
  padding: 14px;
  border-left: 2px solid #ffad61;
  background: rgba(255, 173, 97, 0.06);
}

.workout-exercise-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.workout-exercise-meta button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111216;
  color: var(--muted);
}

.workout-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 10px;
}

.workout-target-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 15, 17, 0.9);
}

.workout-target-grid small,
.workout-recommendation small,
.set-number-heading small,
.workout-rest-screen article small,
.workout-next-recommendation small {
  color: var(--lime);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.workout-recommendation {
  padding: 14px;
  border: 1px solid rgba(197, 137, 255, 0.2);
  border-radius: 14px;
  background: rgba(197, 137, 255, 0.06);
}

.workout-recommendation p {
  margin: 6px 0 0;
  color: #d8c8e2;
  line-height: 1.45;
}

.workout-recommendation.recommendation-reduce {
  border-color: rgba(255, 173, 97, 0.3);
  background: rgba(255, 173, 97, 0.07);
}

.saved-workout-sets {
  display: flex;
  gap: 7px;
  margin: 12px 0;
  overflow-x: auto;
}

.saved-workout-sets span {
  display: flex;
  flex: none;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.72rem;
}

.saved-workout-sets b {
  color: var(--lime);
}

.saved-workout-sets span.warmup {
  border-style: dashed;
  color: #8aa0ae;
}

.saved-workout-sets span.warmup b {
  color: #8edcff;
}

.workout-set-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 13, 15, 0.95);
}

.set-number-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.workout-set-form .input-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.workout-technique-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(13, 14, 16, 0.9);
}

.workout-technique-card summary {
  padding: 15px;
  color: #d5a8ff;
  font-weight: 800;
}

.workout-technique-card > :not(summary) {
  margin-right: 16px;
  margin-left: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.workout-rest-screen {
  padding-top: 5vh;
  text-align: center;
}

.workout-rest-screen h2 {
  color: var(--lime);
  font-size: clamp(4.5rem, 24vw, 7rem);
  font-variant-numeric: tabular-nums;
}

.workout-rest-screen article {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #111216;
}

.rest-adjustments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.rest-adjustments button {
  min-height: 50px;
  border: 1px solid rgba(197, 137, 255, 0.24);
  border-radius: 13px;
  background: rgba(197, 137, 255, 0.08);
  color: #d5a8ff;
  font-weight: 900;
}

.workout-finish-results {
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.workout-finish-results article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.workout-finish-results article:last-child {
  border: 0;
}

.workout-finish-results span {
  color: var(--muted);
  font-size: 0.76rem;
}

.workout-next-recommendation {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  padding: 16px;
  border: 1px solid rgba(199, 255, 58, 0.25);
  border-radius: 16px;
  background: rgba(199, 255, 58, 0.06);
}

.workout-next-recommendation p {
  margin: 0;
  color: var(--muted);
}

.professional-primer {
  padding: 20px;
  border: 1px solid rgba(199, 255, 58, 0.22);
  border-radius: 18px;
  background: rgba(199, 255, 58, 0.055);
}

.professional-primer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
}

.primer-timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.primer-definitions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.primer-timeline > small,
.primer-definitions > small,
.primer-notice > small {
  margin-bottom: 10px;
  color: #8edcff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.primer-definitions article {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(15, 16, 18, 0.9);
}

.primer-definitions strong {
  color: var(--accent);
}

.primer-definitions p {
  margin: 7px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.primer-timeline article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.primer-timeline article b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(142, 220, 255, 0.3);
  border-radius: 50%;
  color: #8edcff;
}

.primer-timeline article p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.primer-notice {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 16, 18, 0.9);
}

.primer-notice ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.life-calendar {
  margin: 0 0 22px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 16, 18, 0.92);
}

.calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-header h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  text-transform: capitalize;
}

.calendar-navigation {
  display: flex;
  gap: 6px;
}

.calendar-navigation button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #121316;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: start;
  justify-items: center;
  gap: 2px;
  padding: 7px 2px 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: #111216;
}

.calendar-day strong {
  font-size: 0.82rem;
}

.calendar-day small {
  color: var(--muted);
  font-size: 0.58rem;
}

.calendar-day.done {
  background: rgba(199, 255, 58, 0.1);
}

.calendar-day.partial {
  background: rgba(142, 220, 255, 0.08);
}

.calendar-day.missed {
  background: rgba(255, 112, 112, 0.07);
}

.calendar-day.future {
  opacity: 0.58;
}

.calendar-day.today {
  border-color: rgba(199, 255, 58, 0.45);
}

.calendar-day.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(199, 255, 58, 0.3);
}

.calendar-activity-dots {
  display: flex;
  min-height: 5px;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.calendar-activity-dots i,
.calendar-legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.calendar-activity-dots .task {
  background: #f1f1f1;
}

.calendar-activity-dots .learning,
.calendar-activity-dots .professional {
  background: #ba8cff;
}

.calendar-activity-dots .training {
  background: var(--accent);
}

.calendar-loading {
  grid-column: 1 / -1;
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
}

.calendar-day-detail {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #0d0e11;
}

.calendar-day-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.calendar-day-detail header div {
  display: grid;
  gap: 4px;
}

.calendar-day-detail header small {
  color: var(--muted);
}

.calendar-day-badge {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-day-badge.done {
  color: var(--accent);
  background: rgba(199, 255, 58, 0.12);
}

.calendar-day-badge.partial {
  color: #8edcff;
  background: rgba(142, 220, 255, 0.1);
}

.calendar-day-badge.missed {
  color: #ff9999;
  background: rgba(255, 112, 112, 0.1);
}

.calendar-day-badge.future {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.calendar-routine-list {
  display: grid;
  gap: 7px;
}

.calendar-routine-list > div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.calendar-routine-list > div.completed {
  color: var(--text);
}

.calendar-routine-list > div.completed > span {
  color: var(--accent);
}

.calendar-routine-list small {
  color: var(--muted);
  font-size: 0.62rem;
}

.calendar-day-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.calendar-day-summary span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.62rem;
}

.calendar-day-summary b {
  overflow: hidden;
  color: var(--text);
  font-size: 0.68rem;
  text-overflow: ellipsis;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 1px 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend i.done {
  background: var(--accent);
}

.calendar-legend i.partial {
  background: #8edcff;
}

.calendar-legend i.missed {
  background: #ff7777;
}

@media (min-width: 621px) {
  .workout-session-header,
  .workout-session-footer {
    right: calc((100vw - 620px) / 2);
    left: calc((100vw - 620px) / 2);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 370px) {
  .training-tabs button {
    font-size: 0.65rem;
  }

  .training-next-card {
    grid-template-columns: 52px 1fr;
    padding: 16px;
  }

  .training-letter {
    width: 50px;
    height: 50px;
  }

  .workout-preflight fieldset,
  .workout-set-form fieldset {
    gap: 4px;
  }

  .workout-preflight fieldset span,
  .workout-set-form fieldset span {
    padding: 5px 2px;
    font-size: 0.68rem;
  }
}

/* Learning workspace v11 */
.learning-screen {
  padding-bottom: 145px;
}

.learning-compact-header {
  position: relative;
  min-height: 168px;
  margin: 0 -14px;
  padding: calc(76px + env(safe-area-inset-top)) 20px 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.38)),
    linear-gradient(0deg, #050607, transparent 80%),
    url("/assets/learning-gates.webp") center 45% / cover no-repeat;
}

.learning-compact-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 255, 61, 0.25), transparent);
  content: "";
}

.learning-compact-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display-font);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.learning-compact-header h2 span {
  color: #92969e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.learning-compact-header > p:last-child {
  max-width: 330px;
  margin: 9px 0 0;
  color: #90949c;
  font-size: 11px;
}

.learning-tabs {
  position: sticky;
  z-index: 7;
  top: 0;
  display: flex;
  gap: 5px;
  margin: 0 -14px 16px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 6, 7, 0.94);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.learning-tabs::-webkit-scrollbar {
  display: none;
}

.learning-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #777b83;
  background: #0a0b0e;
  font-size: 10px;
  font-weight: 650;
}

.learning-tabs button.active {
  border-color: rgba(201, 255, 61, 0.32);
  color: #101306;
  background: var(--lime);
}

.learning-panel {
  display: none;
  animation: learning-panel-in 180ms ease;
}

.learning-panel.active {
  display: block;
}

@keyframes learning-panel-in {
  from {
    transform: translateY(5px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.learning-dashboard-card {
  position: relative;
  min-height: 0;
  margin-bottom: 14px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 19px;
  background: #0b0c0f;
}

.learning-dashboard-card::after,
.course-overview-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid currentcolor;
  border-radius: 50%;
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.learning-dashboard-card::after {
  right: -86px;
  bottom: -84px;
}

.learning-english-card {
  color: #c997ff;
  background:
    radial-gradient(circle at 100% 0, rgba(173, 103, 239, 0.18), transparent 45%),
    #100d17;
}

.learning-professional-card {
  color: #8ec7ff;
  background:
    radial-gradient(circle at 100% 0, rgba(80, 145, 208, 0.2), transparent 45%),
    #0c1117;
}

.learning-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.learning-card-topline > span:last-child {
  color: #747982;
  font-size: 9px;
}

.learning-card-topline .card-kicker {
  color: currentcolor;
}

.learning-dashboard-card h3 {
  display: -webkit-box;
  max-width: 92%;
  margin: 11px 0 5px;
  overflow: hidden;
  color: #f4f3ef;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.learning-card-meta {
  margin: 0;
  color: #90949c;
  font-size: 10px;
}

.learning-today-list {
  margin-top: 15px;
  color: #989ca4;
  font-size: 10px;
  line-height: 1.55;
}

.learning-today-list strong {
  color: #d8d9d7;
  font-size: 9px;
}

.learning-today-list ul {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.learning-today-list li::before {
  margin-right: 7px;
  color: currentcolor;
  content: "•";
}

.learning-progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: #858a93;
  font-size: 9px;
}

.learning-progress-label strong {
  color: #d9d9d6;
}

.learning-progress-line {
  display: block;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.learning-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9860e3, #d789ff);
}

.learning-primary-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 15px;
  border: 0;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 800;
}

.purple-cta {
  color: #f7f2fd;
  background: linear-gradient(135deg, #7d43b7, #a45cdb);
}

.blue-cta {
  color: #eff8ff;
  background: linear-gradient(135deg, #315d84, #4d83b1);
}

.lime-cta {
  color: #101306;
  background: var(--lime);
}

.compact-cta {
  width: auto;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 15px;
}

.learning-secondary-link,
.learning-text-link {
  padding: 0;
  border: 0;
  color: #9297a0;
  background: transparent;
  font-size: 9px;
}

.learning-secondary-link {
  display: block;
  margin: 10px auto 0;
}

.learning-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px -17px -17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
}

.learning-card-metrics span {
  min-width: 0;
  padding: 9px 5px;
  color: #757a83;
  background: #0e0d14;
  font-size: 8px;
  text-align: center;
}

.learning-card-metrics strong {
  display: block;
  margin-bottom: 2px;
  color: #cc94ff;
  font-size: 13px;
}

.learning-session-parts {
  margin: 13px -17px -17px;
  padding: 10px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #707681;
  background: rgba(255, 255, 255, 0.02);
  font-size: 8px;
  text-align: center;
}

.learning-summary-section {
  margin-top: 24px;
}

.learning-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 9px;
}

.learning-section-title h3,
.review-group > h3,
.skills-intro h3 {
  margin: 3px 0 0;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 500;
}

.learning-week-summary,
.learning-reinforce,
.learning-latest-notes,
.course-overview-card,
.review-group,
.skills-intro {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  background: #0a0b0d;
}

.learning-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.learning-week-days span {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #62666d;
}

.learning-week-days small {
  font-size: 8px;
}

.learning-week-days i {
  width: 7px;
  height: 7px;
  border: 1px solid #4e5259;
  border-radius: 50%;
}

.learning-week-days .past i {
  border-color: var(--lime);
  background: var(--lime);
}

.learning-week-days .today {
  color: var(--lime);
}

.learning-week-days .today i {
  border-color: var(--lime);
  box-shadow: 0 0 8px rgba(201, 255, 61, 0.5);
}

.learning-week-rows {
  padding: 7px 13px;
}

.learning-week-rows div {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #92969d;
  font-size: 9px;
}

.learning-week-rows div:last-child {
  border: 0;
}

.learning-week-rows strong {
  color: #d5d6d3;
}

.learning-reinforce {
  padding: 13px;
}

.learning-reinforce > p {
  margin: 0;
  color: #b7bac0;
  font-size: 10px;
}

.reinforce-list {
  margin-top: 12px;
}

.reinforce-list div {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #e0dfdc;
  font-size: 9px;
}

.reinforce-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reinforce-list small {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 8px;
}

.learning-latest-notes button {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #e2e1dd;
  background: transparent;
  text-align: left;
}

.learning-latest-notes button:last-child {
  border: 0;
}

.learning-latest-notes span,
.learning-latest-notes small {
  display: block;
}

.learning-latest-notes span {
  font-family: var(--display-font);
  font-size: 14px;
}

.learning-latest-notes small {
  margin-top: 4px;
  overflow: hidden;
  color: #777c84;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-compact-empty {
  padding: 15px;
  color: #6f747c;
  font-size: 9px;
  text-align: center;
}

.course-overview-card {
  position: relative;
  margin-bottom: 15px;
  padding: 17px;
}

.course-overview-card::after {
  right: -105px;
  top: -100px;
}

.english-course-overview {
  color: #c48bfa;
}

.professional-course-overview {
  color: #88c2f4;
}

.course-overview-card h3 {
  max-width: 88%;
  margin: 8px 0 5px;
  color: #f0efec;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 500;
}

.course-overview-card p {
  color: #7b8089;
  font-size: 9px;
}

.course-overview-card dl {
  margin: 14px 0;
}

.course-overview-card dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 34px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 9px;
}

.course-overview-card dt {
  color: #6f747c;
}

.course-overview-card dd {
  margin: 0;
  color: #d5d5d2;
}

.compact-course-list {
  margin: 12px 0;
}

.compact-course-list .lesson-row {
  min-height: 54px;
}

.current-course-topic {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(94, 158, 214, 0.08);
}

.current-course-topic small {
  color: #7f858e;
  font-size: 8px;
}

.current-course-topic strong {
  color: #edf1f4;
  font-size: 11px;
}

.professional-course-sessions {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
}

.professional-course-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 43px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #777c84;
}

.professional-course-row:last-child {
  border: 0;
}

.professional-course-row span {
  text-align: center;
}

.professional-course-row strong {
  font-size: 9px;
  font-weight: 500;
}

.professional-course-row.current {
  color: #e8f4ff;
  background: rgba(81, 146, 201, 0.09);
}

.professional-course-row.current span {
  color: #86c9ff;
}

.professional-course-row.done span {
  color: var(--lime);
}

.professional-course-actions {
  display: flex;
  gap: 6px;
  margin: 7px 0 9px;
}

.professional-course-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(201, 255, 61, 0.18);
  border-radius: 8px;
  color: #c9ff3d;
  background: rgba(201, 255, 61, 0.055);
  font-size: 8px;
}

.planned-courses {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background: #090a0c;
}

.planned-courses article {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 9px;
  min-height: 57px;
  align-items: center;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.planned-courses article:last-child {
  border: 0;
}

.planned-courses article > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #777b83;
  background: #15171b;
  font-size: 8px;
}

.planned-courses strong,
.planned-courses small {
  display: block;
}

.planned-courses strong {
  color: #d9d9d6;
  font-size: 9px;
}

.planned-courses small {
  margin-top: 3px;
  color: #686d75;
  font-size: 8px;
}

.notes-toolbar {
  position: sticky;
  z-index: 5;
  top: 55px;
  padding-bottom: 12px;
  background: #050607;
}

.notes-toolbar input {
  width: 100%;
}

.notes-filters {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.notes-filters button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #767b83;
  background: #0b0c0f;
  font-size: 8px;
}

.notes-filters button.active {
  border-color: rgba(201, 255, 61, 0.25);
  color: var(--lime);
}

.professional-notes {
  display: grid;
  gap: 9px;
}

.professional-conspect-card {
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(201, 255, 61, 0.13);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 255, 61, 0.06), transparent 32%),
    #0a0b0d;
}

.conspect-meta,
.fragment-notes-heading,
.review-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conspect-meta span,
.fragment-notes-heading span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.conspect-meta small,
.fragment-notes-heading small {
  color: #666b73;
  font-size: 8px;
}

.professional-conspect-card > h3 {
  margin: 10px 0 7px;
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 500;
}

.conspect-overview {
  margin: 0 0 12px;
  color: #b5b8bd;
  font-size: 10px;
  line-height: 1.55;
}

.professional-conspect-card > details > summary,
.future-reviews > summary {
  padding: 10px 0;
  color: #d8dadd;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.conspect-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.conspect-section > small {
  color: #9ed5ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.conspect-section > div {
  padding: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.conspect-section b {
  float: left;
  margin-right: 8px;
  color: var(--lime);
}

.conspect-section strong,
.conspect-section p,
.conspect-section em {
  display: block;
}

.conspect-section strong {
  color: #e7e7e4;
  font-size: 10px;
}

.conspect-section p {
  margin: 5px 0 0;
  color: #9b9fa6;
  font-size: 9px;
  line-height: 1.55;
}

.conspect-section em {
  margin-top: 7px;
  color: #777d86;
  font-size: 8px;
  font-style: normal;
}

.personal-conspect textarea {
  width: 100%;
}

.personal-conspect button {
  justify-self: start;
}

.weak-conspect {
  border-top-color: rgba(255, 118, 118, 0.2);
}

.conspect-actions,
.review-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.conspect-actions button,
.review-support-actions button {
  min-height: 34px;
  border: 1px solid rgba(201, 255, 61, 0.15);
  border-radius: 10px;
  color: #c9ff3d;
  background: rgba(201, 255, 61, 0.05);
  font-size: 8px;
  font-weight: 700;
}

.fragment-notes-heading {
  margin: 12px 2px 2px;
}

.professional-note-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: #0a0b0d;
}

.professional-note-card > div {
  display: flex;
  justify-content: space-between;
}

.note-kind {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.professional-note-card small {
  color: #62676f;
  font-size: 8px;
}

.professional-note-card h3 {
  margin: 10px 0 6px;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 500;
}

.professional-note-card p {
  margin: 0;
  color: #a0a4ab;
  font-size: 10px;
  line-height: 1.55;
}

.review-group {
  margin-bottom: 14px;
  padding: 15px;
}

.review-group > h3 {
  margin-bottom: 12px;
}

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

.review-item {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: #0d0e11;
}

.review-type {
  display: block;
  margin-bottom: 6px;
  color: #c68cff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.review-item strong {
  display: block;
  color: #e5e4e1;
  font-size: 10px;
}

.review-item p,
.review-item small {
  color: #747982;
  font-size: 8px;
}

.professional-review-group .review-type {
  color: #8bc9ff;
}

.professional-review-item textarea {
  width: 100%;
  margin-top: 10px;
}

.professional-review-item > em {
  display: block;
  margin-bottom: 7px;
  color: #777d85;
  font-size: 8px;
  font-style: normal;
}

.professional-review-item.scheduled {
  opacity: 0.78;
}

.review-card-meta .review-type {
  margin: 0;
}

.review-queue-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(201, 255, 61, 0.12);
  border-radius: 12px;
  background: rgba(201, 255, 61, 0.035);
}

.review-queue-summary strong {
  grid-row: span 2;
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 28px;
}

.review-queue-summary span {
  color: #a4a8ae;
  font-size: 9px;
}

.review-queue-summary button {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #9ed5ff;
  background: transparent;
  font-size: 8px;
}

.future-reviews {
  padding: 0 4px;
}

.mastery-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0;
}

.mastery-row > span {
  margin-right: auto;
  color: #70757e;
  font-size: 8px;
}

.mastery-row button {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #777c84;
  background: #14161a;
  font-size: 8px;
}

.mastery-row button.active {
  border-color: var(--lime);
  color: #111407;
  background: var(--lime);
}

.skills-intro {
  margin-bottom: 12px;
  padding: 15px;
}

.skills-intro p:last-child {
  margin: 8px 0 0;
  color: #777c85;
  font-size: 8px;
}

.professional-skills {
  display: grid;
  gap: 7px;
}

.skill-row {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: #0a0b0d;
}

.skill-row > div:first-child {
  display: flex;
  justify-content: space-between;
}

.skill-row strong {
  font-size: 9px;
}

.skill-row span {
  color: var(--lime);
  font-size: 9px;
}

.skill-row small {
  color: #62676f;
  font-size: 7px;
}

.skill-levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 8px 0 6px;
}

.skill-levels i {
  height: 4px;
  border-radius: 99px;
  background: #22252a;
}

.skill-levels i.filled {
  background: var(--lime);
}

.compact-history .history-item {
  min-height: 55px;
}

/* Full-screen professional session */
.professional-view {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-rows: auto 3px minmax(0, 1fr) auto;
  width: min(100%, 620px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0.98), rgba(5, 6, 7, 0.78)),
    url("/assets/learning-gates.webp") center top / cover fixed no-repeat;
}

.professional-view.hidden {
  display: none;
}

.professional-session-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: calc(11px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 7, 0.88);
  backdrop-filter: blur(15px);
}

.professional-session-header .lesson-heading strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.professional-progress-track {
  position: sticky;
  z-index: 11;
  top: calc(76px + env(safe-area-inset-top));
  height: 3px;
  background: #17191d;
}

.professional-progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #84d9ff);
  transition: width 180ms ease;
}

.professional-content {
  overflow-y: auto;
  padding: 26px 17px 28px;
  overscroll-behavior: contain;
}

.professional-step > .section-kicker {
  color: #8dcaff;
}

.professional-step > h2 {
  max-width: 520px;
  margin: 9px 0 10px;
  font-family: var(--display-font);
  font-size: clamp(34px, 10vw, 53px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.professional-step-lead {
  max-width: 520px;
  color: #888d95;
  font-size: 11px;
  line-height: 1.55;
}

.professional-question-stack,
.professional-practice-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.professional-question-stack label,
.professional-practice-stack article,
.professional-free-note,
.professional-case-card,
.professional-explain-prompt {
  display: block;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(10, 11, 14, 0.9);
}

.professional-question-stack strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 500;
}

.professional-question-stack textarea,
.professional-practice-stack textarea,
.professional-free-note textarea,
#professional-case-answer,
#professional-explanation {
  width: 100%;
  margin-top: 9px;
  scroll-margin-block: 112px 168px;
}

.independent-cases textarea,
.artifact-evidence-card textarea,
#professional-teach-back {
  scroll-margin-block: 112px 168px;
}

.professional-theory-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(9, 10, 13, 0.92);
}

.professional-theory-block > .section-kicker {
  color: #8ccaff;
}

.professional-theory-copy {
  color: #b1b4ba;
  font-size: 11px;
  line-height: 1.65;
}

.professional-formula {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(201, 255, 61, 0.18);
  border-radius: 12px;
  background: rgba(20, 27, 10, 0.7);
}

.professional-formula small {
  color: var(--lime);
  font-size: 7px;
}

.professional-formula strong {
  color: #e6f7b6;
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 500;
}

.professional-knowledge-list {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.professional-knowledge-list strong {
  color: #d9dad7;
  font-size: 9px;
}

.professional-knowledge-list ul {
  margin: 7px 0 0;
  padding-left: 17px;
  color: #90949d;
  font-size: 9px;
  line-height: 1.6;
}

.professional-knowledge-list.warning strong {
  color: #e3a397;
}

.professional-fragment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.professional-fragment-actions button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(140, 202, 255, 0.18);
  border-radius: 9px;
  color: #9bb8d0;
  background: #10151b;
  font-size: 8px;
}

.professional-fragment-actions button.saved {
  border-color: rgba(201, 255, 61, 0.25);
  color: var(--lime);
}

.professional-saved-fragments {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.professional-saved-fragments article {
  padding: 12px;
  border-left: 2px solid var(--lime);
  border-radius: 0 11px 11px 0;
  background: rgba(12, 14, 10, 0.9);
}

.professional-saved-fragments small,
.professional-saved-fragments strong {
  display: block;
}

.professional-saved-fragments small {
  color: var(--lime);
  font-size: 7px;
  text-transform: uppercase;
}

.professional-saved-fragments strong {
  margin-top: 5px;
  color: #b5b9be;
  font-size: 9px;
  font-weight: 500;
}

.professional-practice-stack article {
  position: relative;
  padding-left: 52px;
}

.practice-number {
  position: absolute;
  top: 15px;
  left: 13px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.professional-practice-stack article > strong {
  display: block;
  color: #ecebe8;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.professional-options {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.professional-options label {
  display: block;
}

.professional-options input {
  position: absolute;
  opacity: 0;
}

.professional-options span {
  display: block;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #a3a7ae;
  background: #111318;
  font-size: 9px;
}

.professional-options input:checked + span {
  border-color: var(--lime);
  color: #edf7d1;
  background: rgba(201, 255, 61, 0.08);
}

.professional-practice-stack details,
.professional-check-details {
  margin-top: 12px;
  color: #858a92;
  font-size: 9px;
}

.professional-practice-stack summary,
.professional-check-details summary {
  color: #8bcaff;
  cursor: pointer;
}

.professional-case-card {
  display: grid;
  gap: 9px;
  margin: 20px 0 12px;
}

.professional-case-card small {
  color: #8bcaff;
  font-size: 8px;
}

.professional-case-card strong,
.professional-explain-prompt {
  color: #e5e5e2;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.application-contexts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 18px 0;
}

.application-contexts button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  color: #8d929a;
  background: #101216;
  font-size: 9px;
}

.application-contexts button.active {
  border-color: #8bcaff;
  color: #dff1ff;
  background: rgba(79, 146, 204, 0.13);
}

.professional-step > label {
  display: block;
  margin-top: 12px;
}

.professional-step > label strong {
  display: block;
  margin-bottom: 6px;
  color: #b4b8bf;
  font-size: 9px;
}

.professional-step > label input,
.professional-step > label textarea {
  width: 100%;
}

.professional-summary-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.professional-summary-grid section {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(10, 11, 14, 0.9);
}

.professional-summary-grid small {
  color: var(--lime);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.professional-summary-grid ul {
  margin: 9px 0 0;
  padding-left: 17px;
  color: #a5a9b0;
  font-size: 10px;
  line-height: 1.55;
}

.professional-session-added {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  color: #a9c67a;
  background: rgba(201, 255, 61, 0.06);
  font-size: 9px;
}

.professional-footer {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 6, 7, 0.94);
  backdrop-filter: blur(15px);
}

.professional-secondary-action,
.professional-primary-action {
  min-height: 49px;
  border: 0;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 800;
}

.professional-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9297a0;
  background: #111216;
}

.professional-secondary-action:disabled {
  opacity: 0.35;
}

.professional-primary-action {
  color: #101306;
  background: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gothic editorial system — visual direction v10 */
:root {
  --bg: #050607;
  --surface: #0b0c0f;
  --surface-2: #101115;
  --surface-3: #17191e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f2ef;
  --muted: #858991;
  --lime: #c9ff3d;
  --lime-dark: #9fd51f;
  --purple: #c68cff;
  --blue: #8eb7d8;
  --coral: #e8796b;
  --radius-lg: 20px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.42);
  --display-font: Georgia, "Times New Roman", Times, serif;
}

html {
  background: #050607;
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(201, 255, 61, 0.035), transparent 28rem),
    #050607;
}

.app-shell {
  width: min(100%, 620px);
  background: #050607;
}

.app-shell > main {
  padding: 0 14px calc(116px + env(safe-area-inset-bottom));
}

.topbar {
  padding: calc(17px + env(safe-area-inset-top)) 18px 13px;
  border-bottom-color: rgba(255, 255, 255, 0.045);
  background: rgba(5, 6, 7, 0.92);
}

.topbar h1 {
  font-family: var(--display-font);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.eyebrow,
.section-kicker,
.hero-eyebrow,
.card-kicker {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.icon-button,
.add-button {
  border-radius: 50%;
}

.add-button {
  width: 50px;
  height: 50px;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(201, 255, 61, 0.28);
}

.app-shell[data-active-screen="today"] .topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: calc(70px + env(safe-area-inset-top)) 22px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.app-shell[data-active-screen="today"] .topbar > div {
  visibility: hidden;
}

.app-shell[data-active-screen="today"] #quick-add {
  pointer-events: auto;
}

.app-shell[data-active-screen="learning"] .topbar {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: calc(38px + env(safe-area-inset-top)) 22px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.app-shell[data-active-screen="learning"] .topbar > div {
  visibility: hidden;
}

.app-shell[data-active-screen="learning"] #quick-add {
  pointer-events: auto;
}

.today-hero {
  display: block;
  min-height: 270px;
  margin: 0 -14px;
  padding: calc(63px + env(safe-area-inset-top)) 22px 24px;
  border: 0;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.12), rgba(4, 5, 6, 0.02)),
    url("/assets/lifeos-hero.webp") 63% center / cover no-repeat;
  box-shadow: none;
  isolation: isolate;
}

.today-hero::before {
  display: none;
}

.today-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0%, rgba(3, 4, 5, 0.58) 44%, rgba(3, 4, 5, 0.08) 78%),
    linear-gradient(0deg, #050607 0%, rgba(5, 6, 7, 0.18) 48%, rgba(5, 6, 7, 0.08) 100%);
  content: "";
}

.today-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 7, 0.42), transparent 45%);
  pointer-events: none;
}

.today-hero .hero-copy {
  display: flex;
  height: 100%;
  min-height: 183px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
}

.today-hero .date-row {
  justify-content: flex-start;
  width: 100%;
  padding: 0 0 10px;
}

.today-hero .date-arrow {
  display: none;
}

.today-hero .date-button {
  min-width: 0;
  padding: 0;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.today-hero .hero-eyebrow {
  display: none;
}

.today-hero .hero-copy h2 {
  margin: 0;
  padding: 0;
  font-family: var(--display-font);
  font-size: clamp(51px, 14vw, 70px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.today-hero .hero-copy > p:last-of-type {
  max-width: none;
  margin-top: 18px;
  color: #96999f;
  font-size: 13px;
}

.today-hero #hero-summary span {
  color: var(--lime);
  font-weight: 750;
}

.today-hero .progress-ring {
  display: none;
}

.day-progress-track {
  width: 122px;
  height: 4px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.day-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(201, 255, 61, 0.38);
  transition: width 220ms ease;
}

.today-section {
  margin-top: 19px;
}

.today-section .section-heading {
  min-height: 30px;
  align-items: center;
  margin-bottom: 7px;
  padding: 0 4px;
}

.today-section .section-heading h2 {
  display: none;
}

.today-section .section-count {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #8b8e94;
  font-size: 10px;
}

.focus-section {
  padding: 7px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(7, 8, 10, 0.92);
}

.focus-section .section-heading {
  min-height: 34px;
  margin: 0;
  padding: 0 4px;
}

.focus-list {
  gap: 0;
}

.focus-section .focus-item {
  min-height: 51px;
  padding: 7px 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
  background: transparent;
}

.focus-section .focus-item input[type="text"] {
  font-size: 12px;
}

.check-control,
.check-ui {
  width: 23px;
  height: 23px;
}

.check-ui {
  border-color: #55585f;
  border-radius: 6px;
}

.tasks-section .task-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: rgba(10, 11, 13, 0.92);
}

.tasks-section .task-item {
  min-height: 61px;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  background: transparent;
}

.tasks-section .task-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
}

.tasks-section .task-meta {
  gap: 4px;
  color: #70747b;
  font-size: 9px;
}

.tasks-section .task-meta span {
  padding: 0;
  background: transparent;
}

.tasks-section .task-meta span + span::before {
  margin-right: 4px;
  color: var(--lime);
  content: "•";
}

.task-delete {
  width: 24px;
  color: #73767c;
  font-size: 18px;
  line-height: 1;
}

.today-tasks-more {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #d9d9d7;
  font-size: 11px;
  text-align: left;
}

.today-tasks-more span {
  margin-left: 3px;
  color: var(--lime);
}

.continue-section {
  margin-top: 22px;
}

.continue-section > .section-kicker {
  display: block;
  margin: 0 4px 9px;
  color: #d5a9ff;
}

.compact-language-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  min-height: 128px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(198, 140, 255, 0.23);
  border-radius: 17px;
  background:
    radial-gradient(circle at 105% 0, rgba(198, 140, 255, 0.14), transparent 42%),
    #0d0c14;
}

.continue-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #cf9cff;
  background: rgba(198, 140, 255, 0.12);
}

.continue-icon svg {
  width: 24px;
  height: 24px;
}

.continue-copy {
  min-width: 0;
}

.continue-copy .card-kicker {
  color: #caa0ef;
}

.continue-copy h3 {
  margin: 5px 0 5px;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}

.continue-copy p {
  margin: 0;
  color: #7f818a;
  font-size: 10px;
}

.continue-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.continue-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ab65ef, #db8eff);
  box-shadow: 0 0 10px rgba(198, 140, 255, 0.35);
}

.continue-action {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #100b16;
  background: linear-gradient(145deg, #d18bff, #8c4fd0);
}

.continue-action svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.routines-section .routine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.routines-section .routine-item {
  min-width: 0;
  min-height: 116px;
  padding: 10px 7px 9px;
  gap: 5px;
  border-color: rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: #0b0c0e;
}

.routines-section .routine-item.rest-day {
  opacity: 0.72;
}

.voice-session-view {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% 4%, rgba(213, 255, 97, 0.12), transparent 27%),
    radial-gradient(circle at 12% 32%, rgba(182, 140, 255, 0.09), transparent 32%),
    #07080b;
  color: var(--text);
}

.voice-session-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  min-height: 96px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(20px);
}

.voice-session-heading {
  min-width: 0;
}

.voice-session-heading small,
.voice-session-heading strong {
  display: block;
}

.voice-session-heading small {
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.voice-session-heading strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-total-timer {
  color: var(--lime);
  font-size: 17px;
  font-weight: 850;
}

.voice-session-progress {
  position: sticky;
  z-index: 31;
  top: 96px;
  height: 4px;
  background: #15171b;
}

.voice-session-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #73dcff);
  transition: width 200ms ease;
}

.voice-session-content {
  display: grid;
  max-width: 700px;
  min-height: calc(100dvh - 185px);
  gap: 18px;
  margin: 0 auto;
  padding: 28px 20px 130px;
}

.voice-session-footer {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(100px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.96);
  backdrop-filter: blur(20px);
}

.voice-footer-primary,
.voice-footer-secondary {
  min-height: 58px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 850;
}

.voice-footer-primary {
  border: 0;
  background: var(--lime);
  color: #0b0c0d;
}

.voice-footer-primary:disabled {
  opacity: 0.45;
}

.voice-footer-secondary {
  border: 1px solid var(--line);
  background: #111319;
  color: var(--text);
}

.voice-hero-card,
.voice-overview-section,
.voice-choice-block,
.voice-scale-block,
.voice-safety-card,
.voice-exercise-head,
.voice-breath-card,
.voice-rating-card,
.voice-l-card,
.voice-control-recording,
.voice-note-field {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 17, 22, 0.92);
}

.voice-hero-card {
  padding: 28px 24px;
  border-color: rgba(213, 255, 97, 0.2);
}

.voice-hero-card h1,
.voice-step-intro h1,
.voice-exercise-head h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 9vw, 60px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.voice-hero-card > p:not(.section-kicker),
.voice-step-intro > p:last-child,
.voice-exercise-head > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.voice-plan-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.voice-plan-line span {
  font-weight: 750;
}

.voice-plan-line strong {
  color: var(--lime);
}

.voice-hero-card > small {
  display: block;
  margin-top: 7px;
  color: #747b86;
}

.voice-baseline-callout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(182, 140, 255, 0.32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(182, 140, 255, 0.13), rgba(213, 255, 97, 0.06));
  color: var(--text);
  text-align: left;
}

.voice-baseline-callout small,
.voice-baseline-callout strong,
.voice-baseline-callout em {
  display: block;
}

.voice-baseline-callout small {
  color: var(--purple);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.voice-baseline-callout strong {
  margin: 6px 0;
  font-size: 17px;
}

.voice-baseline-callout em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.voice-baseline-callout b {
  color: var(--lime);
  font-size: 28px;
}

.voice-overview-section {
  padding: 22px;
}

.voice-section-heading small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.voice-section-heading h2,
.voice-choice-block h2,
.voice-scale-block h2 {
  margin: 5px 0 16px;
  font-size: 20px;
}

.voice-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.voice-metric,
.voice-context-stats > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0d11;
}

.voice-metric span,
.voice-metric strong,
.voice-context-stats span,
.voice-context-stats strong,
.voice-context-stats small {
  display: block;
}

.voice-metric span,
.voice-context-stats span {
  color: var(--muted);
  font-size: 11px;
}

.voice-metric strong,
.voice-context-stats strong {
  margin-top: 5px;
  font-size: 21px;
}

.voice-context-stats {
  display: grid;
  gap: 9px;
}

.voice-context-stats small {
  margin-top: 4px;
  color: #7c8390;
}

.voice-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.voice-week-grid > div {
  padding: 10px 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.voice-week-grid span,
.voice-week-grid strong,
.voice-week-grid small {
  display: block;
}

.voice-week-grid span,
.voice-week-grid small {
  color: var(--muted);
  font-size: 9px;
}

.voice-week-grid strong {
  margin: 6px 0 2px;
  color: var(--lime);
}

.voice-week-grid .rest {
  opacity: 0.45;
}

.voice-recording-list,
.voice-history-list,
.voice-baseline-list {
  display: grid;
  gap: 10px;
}

.voice-recording-list article,
.voice-history-list article,
.voice-baseline-list article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0c10;
}

.voice-recording-list strong,
.voice-recording-list small,
.voice-history-list strong,
.voice-history-list small {
  display: block;
}

.voice-recording-list small,
.voice-history-list small,
.voice-history-list span {
  color: var(--muted);
  font-size: 11px;
}

.voice-recording-list audio,
.voice-baseline-list audio,
.voice-control-recording audio {
  width: 100%;
  height: 38px;
}

.voice-rest-note,
.voice-record-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.voice-step-intro {
  padding: 12px 4px 4px;
}

.voice-choice-block,
.voice-scale-block,
.voice-safety-card,
.voice-note-field {
  padding: 20px;
}

.voice-choice-block > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-choice-block button,
.voice-rating-card button,
.voice-l-card button {
  flex: 1 1 120px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0d11;
  color: var(--text);
  font-weight: 750;
}

.voice-choice-block button.active,
.voice-l-card button.active {
  border-color: var(--lime);
  background: rgba(213, 255, 97, 0.1);
  color: var(--lime);
}

.voice-scale-block > div:first-child,
.voice-scale-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-scale-block h2 {
  margin-bottom: 10px;
}

.voice-scale-block > div:first-child strong {
  color: var(--lime);
  font-size: 20px;
}

.voice-scale-block input[type="range"] {
  padding: 0;
  accent-color: var(--lime);
}

.voice-scale-labels {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.voice-safety-card {
  border-color: rgba(255, 111, 124, 0.25);
  background: rgba(255, 111, 124, 0.06);
}

.voice-safety-card strong {
  color: #ff8791;
}

.voice-safety-card p {
  margin: 8px 0 0;
  color: #aab0bb;
  line-height: 1.5;
}

.voice-exercise-head {
  position: relative;
  padding: 25px 22px;
}

.voice-exercise-head #voice-exercise-countdown {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-size: 24px;
}

.voice-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(182, 140, 255, 0.32);
  border-radius: 18px;
  background: rgba(182, 140, 255, 0.09);
  color: var(--text);
  text-align: left;
}

.voice-prompt small,
.voice-prompt strong {
  display: block;
}

.voice-prompt small {
  color: var(--purple);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.voice-prompt strong {
  margin-top: 6px;
  font-size: 17px;
}

.voice-prompt span {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--purple);
}

.voice-prompt svg {
  width: 24px;
  height: 24px;
}

.voice-instruction-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 20px 20px 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0d0f14;
}

.voice-instruction-list li {
  padding-left: 5px;
  color: #c6cad1;
  line-height: 1.52;
}

.voice-safety-strip {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 3px solid #ff6f7c;
  background: rgba(255, 111, 124, 0.06);
}

.voice-safety-strip strong {
  color: #ff8791;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-safety-strip span {
  color: #aab0bb;
  font-size: 13px;
}

.voice-breath-card,
.voice-rating-card,
.voice-l-card,
.voice-control-recording {
  padding: 20px;
}

.voice-breath-card small,
.voice-breath-card strong,
.voice-l-card small,
.voice-l-card strong {
  display: block;
}

.voice-breath-card > strong {
  margin: 8px 0;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 72px;
}

.voice-breath-card p {
  color: var(--muted);
}

.voice-breath-card button,
.voice-control-recording button,
.voice-baseline-list button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(213, 255, 97, 0.35);
  border-radius: 14px;
  background: rgba(213, 255, 97, 0.1);
  color: var(--lime);
  font-weight: 800;
}

.voice-breath-card button:disabled {
  opacity: 0.45;
}

.voice-rating-card > div,
.voice-l-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.voice-rating-card > p {
  color: var(--muted);
  line-height: 1.5;
}

.voice-l-card > strong {
  margin: 10px 0 15px;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.25;
}

.voice-control-recording {
  display: grid;
  gap: 12px;
}

.voice-control-recording small {
  color: var(--muted);
}

.voice-baseline-list article {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}

.voice-baseline-list article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(213, 255, 97, 0.1);
  color: var(--lime);
  font-weight: 850;
}

.voice-baseline-list p {
  color: var(--muted);
  line-height: 1.5;
}

.voice-baseline-list button {
  grid-column: 2;
  justify-self: start;
}

.voice-baseline-list button.recording,
.voice-control-recording button.recording {
  border-color: #ff6f7c;
  background: rgba(255, 111, 124, 0.12);
  color: #ff8791;
}

.voice-note-field textarea {
  margin-top: 8px;
}

@media (min-width: 760px) {
  .voice-session-footer {
    right: max(20px, calc((100vw - 700px) / 2));
    left: max(20px, calc((100vw - 700px) / 2));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
}

.routine-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #70747c;
}

.routine-icon svg {
  width: 23px;
  height: 23px;
}

.routine-item[data-open-routine="morning_care"] .routine-icon,
.routine-item[data-open-routine="voice"] .routine-icon,
.routine-item[data-open-routine="workout"] .routine-icon {
  color: var(--lime);
}

.routine-item[data-open-routine="english"] .routine-icon {
  color: #c18bf3;
}

.routines-section .routine-item small {
  display: none;
}

.routines-section .routine-item strong {
  max-width: 100%;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.routines-section .routine-progress {
  color: #71757c;
  font-size: 8px;
  line-height: 1.25;
}

.routines-section .routine-tick {
  top: 8px;
  right: 7px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

#sleep-card {
  margin-top: 14px;
  border: 1px solid rgba(201, 255, 61, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 255, 61, 0.08), transparent 35%),
    #0b0c0e;
  overflow: hidden;
}

#sleep-card > button {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border: 0;
  color: var(--text);
  text-align: left;
  background: transparent;
}

#sleep-card .summary-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: rgba(201, 255, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 255, 61, 0.12);
}

#sleep-card .summary-icon svg {
  width: 21px;
  height: 21px;
}

#sleep-card button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

#sleep-card button small {
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.16em;
}

#sleep-card button strong {
  color: #e8e8e6;
  font-size: 11px;
  font-weight: 650;
}

#sleep-card button em {
  color: #777b83;
  font-size: 9px;
  font-style: normal;
}

#sleep-card .chevron {
  width: 16px;
  height: 16px;
  color: #6f737a;
}

.day-review-card {
  margin-top: 8px;
}

.sleep-modal {
  background:
    radial-gradient(circle at 85% 4%, rgba(201, 255, 61, 0.08), transparent 24%),
    #08090b;
}

.sleep-status {
  display: grid;
  gap: 12px;
}

.sleep-window {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 17px;
  border: 1px solid rgba(201, 255, 61, 0.18);
  border-radius: 18px;
  background: rgba(201, 255, 61, 0.045);
}

.sleep-window div {
  display: grid;
  gap: 5px;
}

.sleep-window small,
.sleep-recommendation > small,
.sleep-ai-review article > small {
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.sleep-window strong {
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 500;
}

.sleep-window strong span {
  color: var(--lime);
}

.sleep-window div:last-child strong {
  color: var(--lime);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.sleep-recommendation {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #101115;
}

.sleep-recommendation.danger {
  border-color: rgba(255, 105, 111, 0.35);
  background: rgba(88, 24, 30, 0.18);
}

.sleep-recommendation.danger > small {
  color: #ff777d;
}

.sleep-recommendation h3,
.sleep-section-heading h3,
.sleep-ai-review h3 {
  margin: 7px 0;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.sleep-recommendation p,
.sleep-ai-review p {
  margin: 0;
  color: #aaaeb5;
  font-size: 11px;
  line-height: 1.55;
}

.sleep-recommendation button {
  margin-top: 13px;
}

.sleep-log-form {
  margin-top: 22px;
}

.sleep-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sleep-total-field small {
  display: block;
  margin-top: 7px;
  color: #7f838b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.sleep-total-field input {
  font-variant-numeric: tabular-nums;
}

.sleep-checks {
  display: grid;
  gap: 8px;
}

.sleep-checks label {
  display: grid;
  min-height: 48px;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: #c9cbd0;
  background: #101115;
}

.sleep-checks input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--lime);
}

.sleep-section {
  margin-top: 26px;
}

.sleep-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sleep-section-heading h3 {
  margin-bottom: 0;
}

.sleep-section-heading > span {
  color: #70747b;
  font-size: 9px;
}

.sleep-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sleep-metrics > article {
  display: grid;
  min-height: 84px;
  align-content: space-between;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: #101115;
}

.sleep-metrics > .empty-state {
  grid-column: 1 / -1;
}

.sleep-metrics small,
.sleep-history small,
.sleep-tonight small {
  color: #747880;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.sleep-metrics strong {
  margin: 7px 0 3px;
  font-size: 19px;
}

.sleep-metrics span {
  color: #777b82;
  font-size: 8px;
}

.sleep-ai-review > article {
  padding: 16px;
  border: 1px solid rgba(177, 117, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 5%, rgba(177, 117, 255, 0.11), transparent 35%),
    #111017;
}

.sleep-ai-review ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 18px;
  color: #d0d0d4;
  font-size: 10px;
  line-height: 1.45;
}

.sleep-tonight {
  margin-top: 15px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(201, 255, 61, 0.06);
}

.sleep-tonight strong {
  display: block;
  margin: 5px 0;
  color: #eef0eb;
  font-size: 12px;
  line-height: 1.45;
}

.sleep-watchouts {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid #ff777d;
}

.sleep-history {
  display: grid;
  gap: 7px;
}

.sleep-history > article {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #0f1013;
}

.sleep-history > article > div {
  display: grid;
  gap: 3px;
}

.sleep-history strong {
  font-size: 10px;
}

.sleep-protocol,
.sleep-settings-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: #0d0e11;
}

.sleep-protocol summary,
.sleep-settings-panel summary {
  color: #d8d8d8;
  font-size: 11px;
  font-weight: 700;
}

#sleep-protocol-content {
  padding-top: 12px;
  color: #a3a7ae;
  font-size: 10px;
  line-height: 1.55;
}

#sleep-protocol-content ol {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.sleep-safety-copy {
  padding: 12px;
  border: 1px solid rgba(255, 105, 111, 0.25);
  border-radius: 12px;
  color: #e6b7ba;
  background: rgba(88, 24, 30, 0.16);
}

.sleep-source-links {
  display: grid;
  gap: 7px;
}

.sleep-source-links a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ambient-ai-card {
  margin: 18px 0 0;
  opacity: 0.82;
}

.section-block {
  margin-top: 28px;
}

.section-heading h2,
.screen-intro h2,
.modal-header h2 {
  font-family: var(--display-font);
  font-weight: 500;
}

.section-heading h2 {
  font-size: 27px;
}

.screen-intro {
  padding: 24px 3px 22px;
}

.screen-intro h2 {
  margin: 8px 0 8px;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.screen-intro p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.accent-card,
.language-card,
.professional-card,
.expand-card,
.history-item,
.lesson-row,
.roadmap-row,
.measurement-card,
.inbox-row,
.settings-list,
.time-plan,
.english-progress-stats,
.english-progress-row {
  border-color: rgba(255, 255, 255, 0.075);
  background-color: #0b0c0e;
}

#screen-learning .screen-intro {
  position: relative;
  min-height: 268px;
  margin: 0 -14px 18px;
  padding: 148px 22px 24px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: url("/assets/learning-gates.webp") center 43% / cover no-repeat;
  isolation: isolate;
}

#screen-learning .screen-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #050607 0%, rgba(5, 6, 7, 0.35) 58%, rgba(5, 6, 7, 0.08)),
    linear-gradient(90deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0.12));
  content: "";
}

#screen-learning .screen-intro h2 {
  color: #f1f0ec;
}

.primary-button,
.secondary-button,
.small-action,
.chip {
  border-radius: 12px;
}

.primary-button {
  color: #101207;
  background: var(--lime);
  box-shadow: none;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8e7e3;
  background: #111216;
}

input,
textarea,
select {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  background: #090a0c;
}

.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 620px);
  min-height: 83px;
  padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
  border-top-color: rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 11, 0.94);
}

.nav-item {
  position: relative;
  gap: 4px;
  color: #6e727a;
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
}

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

.nav-item.active::after {
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.nav-add {
  transform: translateY(-12px);
}

.nav-add::after {
  display: none;
}

.nav-add-orb {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  border-radius: 50%;
  color: #0d1005;
  background: var(--lime);
  box-shadow: 0 0 25px rgba(201, 255, 61, 0.19);
}

.nav-add-orb svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.55;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.modal {
  border-color: rgba(255, 255, 255, 0.09);
  background: #090a0c;
}

.login-view,
.loading-view {
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.42)),
    url("/assets/learning-gates.webp") center / cover no-repeat;
}

.login-card h1 {
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.brand-mark {
  border-radius: 50%;
  background: var(--lime);
}

.lesson-view {
  isolation: isolate;
  background: #050607;
}

.lesson-view::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/assets/lesson-castle.webp") center top / cover no-repeat;
  opacity: 0.2;
  content: "";
}

.lesson-view::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.73) 62%, rgba(5, 6, 7, 0.84) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.48), transparent);
  pointer-events: none;
  content: "";
}

.lesson-header,
.lesson-progress-track,
.lesson-content,
.lesson-footer {
  position: relative;
  z-index: 1;
}

.lesson-header {
  border-bottom-color: rgba(255, 255, 255, 0.055);
  background: rgba(5, 6, 7, 0.62);
  backdrop-filter: blur(12px);
}

.lesson-heading strong {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 500;
}

.lesson-step h2 {
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.lesson-prompt-card,
.lesson-feedback-card,
.lesson-transcript,
.lesson-summary-card,
.lesson-theory-grid > div,
.lesson-choice,
.lesson-drill-list li {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(10, 11, 13, 0.91);
  backdrop-filter: blur(10px);
}

.lesson-requirements {
  border-color: rgba(201, 255, 61, 0.16);
  background: rgba(10, 13, 8, 0.83);
}

.lesson-answer {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(8, 9, 11, 0.94);
}

.lesson-support-button,
.lesson-audio-button {
  border-color: rgba(198, 140, 255, 0.24);
  background: rgba(24, 17, 32, 0.78);
}

.lesson-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 7, 0.9);
}

.lesson-primary-action {
  border-radius: 15px;
  background: var(--lime);
}

@media (min-width: 621px) {
  .app-shell,
  .bottom-nav,
  .app-shell[data-active-screen="today"] .topbar {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 390px) {
  .today-hero {
    grid-template-columns: none;
  }

  .today-hero .hero-copy h2 {
    padding-right: 0;
  }

  .routines-section .routine-item {
    min-height: 112px;
  }
}

.app-shell[data-active-screen="more"] #screen-more > .screen-intro {
  display: none;
}

.review-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.24);
}

.review-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.review-tabs button.active {
  color: #0b0d08;
  background: var(--lime);
}

/* Unified day planner v21 */
.schedule-section {
  overflow: hidden;
  border: 1px solid rgba(213, 255, 97, 0.13);
  background:
    radial-gradient(circle at 100% 0, rgba(213, 255, 97, 0.07), transparent 35%),
    #090a0c;
}

.schedule-next-card {
  margin: 16px 0 10px;
  padding: 14px;
  border: 1px solid rgba(182, 140, 255, 0.19);
  border-radius: 18px;
  background: rgba(20, 16, 27, 0.72);
}

.schedule-next-card > small {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.schedule-next-card .schedule-block {
  padding: 11px 0 0;
  border: 0;
  background: transparent;
}

.schedule-reminder {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 255, 97, 0.12);
  border-radius: 14px;
  background: rgba(213, 255, 97, 0.035);
}

.schedule-reminder button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(213, 255, 97, 0.2);
  border-radius: 10px;
  color: var(--lime);
  background: rgba(213, 255, 97, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.schedule-reminder button:disabled {
  color: #979ca4;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.schedule-reminder span {
  color: #92969e;
  font-size: 10px;
  line-height: 1.4;
}

.schedule-timeline {
  display: grid;
}

.schedule-block {
  position: relative;
  display: grid;
  grid-template-columns: 46px 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.schedule-block:last-child {
  border-bottom: 0;
}

.schedule-time {
  display: grid;
  gap: 3px;
}

.schedule-time strong {
  color: #eceee8;
  font-size: 11px;
}

.schedule-time span {
  color: #686d75;
  font-size: 8px;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 2px solid #686d75;
  border-radius: 50%;
  background: #090a0c;
}

.schedule-block:not(:last-child) .schedule-dot::after {
  position: absolute;
  top: 24px;
  bottom: -14px;
  width: 1px;
  margin-left: 1px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.schedule-block.work .schedule-dot {
  border-color: var(--lime);
}

.schedule-block.learning .schedule-dot {
  border-color: var(--purple);
}

.schedule-block.training .schedule-dot {
  border-color: var(--blue);
}

.schedule-block.entertainment .schedule-dot {
  border-color: var(--coral);
}

.schedule-block.completed .schedule-dot {
  border-color: var(--lime);
  background: var(--lime);
}

.schedule-block.skipped,
.schedule-block.carried {
  opacity: 0.47;
}

.schedule-copy {
  min-width: 0;
}

.schedule-copy small,
.review-plan-fact > small {
  display: block;
  margin-bottom: 4px;
  color: #747982;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.schedule-copy strong {
  display: block;
  overflow: hidden;
  color: #e8e9e5;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.schedule-copy p {
  margin: 4px 0 0;
  color: #777c85;
  font-size: 9px;
  line-height: 1.4;
}

.schedule-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.schedule-actions button,
.schedule-footer button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(213, 255, 97, 0.18);
  border-radius: 10px;
  color: var(--lime);
  background: rgba(213, 255, 97, 0.055);
  font-size: 9px;
  font-weight: 750;
}

.schedule-actions .schedule-skip {
  width: 30px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.08);
  color: #7f838b;
  background: transparent;
}

.schedule-done {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #0a0c06;
  background: var(--lime);
}

.schedule-done svg {
  width: 15px;
  height: 15px;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-footer > div {
  display: flex;
  gap: 6px;
}

.schedule-footer span {
  color: #858a93;
  font-size: 10px;
}

.schedule-empty {
  display: grid;
  gap: 5px;
  padding: 5px 0;
}

.schedule-empty span {
  color: var(--muted);
  font-size: 10px;
}

.form-explainer {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.schedule-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 0;
  border: 0;
}

.schedule-weekdays legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.schedule-weekdays label {
  position: relative;
}

.schedule-weekdays input {
  position: absolute;
  opacity: 0;
}

.schedule-weekdays span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #858a93;
  background: #0e1013;
  font-size: 9px;
  font-weight: 750;
}

.schedule-weekdays input:checked + span {
  border-color: var(--lime);
  color: #111407;
  background: var(--lime);
}

.review-plan-fact {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(213, 255, 97, 0.12);
  border-radius: 15px;
  background: rgba(213, 255, 97, 0.035);
}

.review-plan-fact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #999ea7;
  font-size: 10px;
}

.review-plan-fact strong {
  color: #e8ebe3;
  font-size: 11px;
}

.professional-video-import,
.professional-video-transcript {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(127, 214, 255, 0.17);
  border-radius: 14px;
  background: rgba(127, 214, 255, 0.035);
}

.professional-video-import small,
.professional-video-transcript summary span {
  color: #8ea5b5;
  font-size: 10px;
}

.professional-video-import label {
  display: grid;
  gap: 6px;
  color: #dce9ee;
  font-size: 11px;
}

.professional-video-import input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 10px;
  color: #e8ebe3;
  background: #0e1013;
}

.professional-video-import p,
.professional-video-transcript div {
  margin: 0;
  color: #a9afb8;
  font-size: 11px;
  line-height: 1.55;
}

.professional-video-import button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: #071017;
  background: #92dfff;
  font-weight: 800;
}

.professional-video-transcript summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.professional-video-transcript a {
  color: #92dfff;
  font-size: 11px;
}

@media (max-width: 390px) {
  .schedule-block {
    grid-template-columns: 43px 9px minmax(0, 1fr);
  }

  .schedule-actions,
  .schedule-done {
    grid-column: 3;
    justify-self: start;
  }
}
