/* Small learning controls use the existing light/dark theme tokens. */
.lab-discovery { width: 100%; }
.lab-search-input { min-height: 48px; font-size: 16px; }
.lab-filter-btn { min-height: 44px; padding-inline: 16px; }
.lab-template-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.lab-template-open { display: block; width: 100%; flex: 1; min-height: 132px; color: var(--ink1); background: transparent; border: 0; border-radius: 16px 16px 0 0; }
.lab-template-open > div { overflow-wrap: anywhere; }
.lab-save-btn { min-height: 44px; margin: 0 12px 12px; padding: 8px 12px; }
.lab-save-btn[aria-pressed="true"] { color: var(--brand); background: var(--brand-bg); border-color: var(--brand-tint); }
.lab-empty { grid-column: 1 / -1; }
.lab-template-open:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.lab-discovery label { color: var(--ink2); }
.program-path-statuses { flex-wrap: wrap; row-gap: 4px; }
.program-path__item > .mahir-icon { flex-shrink: 0; }
.practice-loop-v3 .prompt-box,
.practice-loop-v3 .prompt-box .ink2,
.practice-loop-v3 textarea { color: #0f172a; background: #f7fbff; }
.practice-loop-v3 textarea::placeholder { color: #52677b; }
@media (max-width: 899px) {
  .practice-loop-v3 .ink4 { color: #b6c9d9; }
  .practice-loop-v3 .practice-proof__saved { background: #103149; border-color: #3c647d; --green: #5ee4b7; }
}
@media (max-width: 350px) {
  body.mode-app { min-width: 0; }
  .lab-template-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-template-open { min-height: 112px; }
}
#program-capstone textarea,#program-capstone input{font-size:16px;min-height:48px}
#program-capstone button{min-height:44px}
.capstone-guide li{display:flex;align-items:flex-start;gap:6px}
.capstone-guide li .mahir-icon{flex-shrink:0}

/* Weekly habit strip. Uses the shared theme tokens so it follows light/dark
   without a second palette, and stays legible at 320px. */
.habit-strip { margin-top: 12px; padding: 16px; }
.habit-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.habit-strip__head h2 { font-size: 13px; font-weight: 800; color: var(--ink1); }
.habit-strip__best { font-size: 11px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.habit-strip__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.habit-strip__day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
/* Tone, not border: an unearned day is a quiet wash on the card, not a ring
   drawn around emptiness. Only a day the learner earned gets a filled mark. */
.habit-strip__dot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 40px; aspect-ratio: 1;
  border: 0; border-radius: 999px;
  color: var(--green-ink); background: color-mix(in srgb, var(--ink4) 14%, transparent);
  transition: background var(--motion-surface, 220ms) var(--ease-out, ease), transform var(--motion-surface, 220ms) var(--ease-out, ease);
}
.habit-strip__day.is-active .habit-strip__dot { color: var(--green-ink); background: var(--green-bg); }
.habit-strip__day.is-future .habit-strip__dot { background: color-mix(in srgb, var(--ink4) 7%, transparent); }
.habit-strip__day.is-today .habit-strip__dot { box-shadow: 0 0 0 2px var(--brand-tint); }
@media (prefers-reduced-motion: reduce) { .habit-strip__dot { transition: none; } }
.habit-strip__label { font-size: 10px; font-weight: 700; color: var(--ink3); }
.habit-strip__day.is-today .habit-strip__label { color: var(--brand); }
.habit-strip__note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink3); }
@media (max-width: 350px) {
  .habit-strip { padding: 12px; }
  .habit-strip__row { gap: 4px; }
  .habit-strip__label { font-size: 9px; }
}

/* Practice simulation. A quiet inner surface on the practice card: no second
   border around it, only a change of ground, so the card stays one object. */
.practice-sim {
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink4) 9%, transparent);
}
.practice-sim__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.practice-sim__head h3 { font-size: 13px; font-weight: 800; color: var(--ink1); }
.practice-sim__badge {
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-bg);
}
.practice-sim__note { margin-top: 8px; font-size: 11px; line-height: 1.55; color: var(--ink3); }
.practice-sim__task { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ink1); }
.practice-sim__label { display: block; margin-top: 12px; font-size: 11px; color: var(--ink3); }
.practice-sim__input {
  width: 100%; margin-top: 6px; padding: 12px;
  font-size: 16px; line-height: 1.5; border-radius: 14px;
}
.practice-sim__send { width: 100%; margin-top: 10px; min-height: 44px; padding: 12px; font-size: 14px; }
.practice-sim__out:empty { display: none; }

/* Three dots while the saved reply is fetched from content, not a model. */
.practice-sim__typing { display: flex; gap: 5px; margin-top: 14px; padding: 12px 2px; }
.practice-sim__typing i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ink4);
  animation: practice-sim-blink 1.1s infinite ease-in-out;
}
.practice-sim__typing i:nth-child(2) { animation-delay: .16s; }
.practice-sim__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes practice-sim-blink { 0%, 70%, 100% { opacity: .28; } 35% { opacity: 1; } }

.practice-sim__reply { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--card); }
.practice-sim__replyhead {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
}
.practice-sim__replytext { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--ink1); overflow-wrap: anywhere; }
.practice-sim__score { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink1); }
.practice-sim__score span { font-size: 12px; font-weight: 800; color: var(--ink3); }
.practice-sim__checks { margin-top: 10px; display: grid; gap: 8px; }
.practice-sim__checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--ink2); }
.practice-sim__checks li .mahir-icon { flex-shrink: 0; margin-top: 2px; }
.practice-sim__checks li.is-met { color: var(--ink3); }
.practice-sim__checks li.is-met .mahir-icon { color: var(--green-ink); }
.practice-sim__checks li.is-missed .mahir-icon { color: var(--amber-ink); }
.practice-sim__next { width: 100%; margin-top: 14px; min-height: 44px; padding: 12px; font-size: 14px; }
.practice-sim__hand { margin-top: 10px; font-size: 11px; line-height: 1.55; color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) { .practice-sim__typing i { animation: none; } }
@media (max-width: 350px) { .practice-sim { padding: 12px; } }
