body {
  background: #f7efe2;
}

.music-lyrics-scroll {
  max-height: calc(100dvh - 8rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
}

.music-lyric-row {
  transform-origin: left center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.music-meaning-popover {
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.music-meaning-token:hover .music-meaning-popover,
.music-meaning-token:focus-within .music-meaning-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.music-mini-player {
  width: min(360px, calc(100vw - 24px));
}

.music-mini-player iframe {
  display: block;
  width: 100%;
}

.music-mini-player-expanded {
  width: min(560px, calc(100vw - 24px));
}

.music-mini-player-dragging {
  cursor: grabbing;
  user-select: none;
}

.dh-app-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, #fbf4e8 0%, #f7efe2 42%, #eaf1e7 100%);
  color: #080b25;
}

.dh-app-layout {
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .dh-app-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
  }
}

.dh-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .dh-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid rgba(29, 58, 48, 0.1);
    background: rgba(255, 252, 246, 0.86);
    padding: 24px 18px;
  }
}

.dh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #080b25;
  font-weight: 800;
  text-decoration: none;
}

.dh-main-region {
  min-width: 0;
  padding: 18px 14px 104px;
}

@media (min-width: 768px) {
  .dh-main-region {
    padding: 28px 28px 112px;
  }
}

@media (min-width: 1024px) {
  .dh-main-region {
    padding: 32px 36px 48px;
  }
}

.dh-content-width {
  margin: 0 auto;
  max-width: 1320px;
}

.dh-mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

@media (min-width: 1024px) {
  .dh-mobile-topbar {
    display: none;
  }
}

.dh-pill-filter {
  border-radius: 10px;
  border: 1px solid rgba(28, 63, 52, 0.14);
  background: rgba(255, 252, 246, 0.78);
  color: #52645d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dh-pill-filter:hover,
.dh-pill-filter:focus-visible {
  border-color: #89a99a;
  color: #1e5f4a;
  outline: none;
}

.dh-pill-filter-active {
  border-color: #8fb09d;
  background: #e5f0e8;
  color: #1e5f4a;
}

.dh-bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  border-top: 1px solid #eef0f6;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  padding: 8px 12px 12px;
}

@media (min-width: 1024px) {
  .dh-bottom-nav {
    display: none;
  }
}

.dh-bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  max-width: 560px;
  margin: 0 auto;
}

.dh-nav-item,
.dh-sidebar-link {
  color: #64708a;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dh-nav-item {
  min-width: 0;
  display: flex;
  min-height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 650;
}

.dh-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.dh-sidebar-link:hover,
.dh-sidebar-link:focus-visible {
  background: #f3f4fa;
  color: #080b25;
  outline: none;
}

.dh-nav-item-active,
.dh-sidebar-link-active {
  color: #1e5f4a;
}

.dh-sidebar-link-active {
  background: #e5f0e8;
}

.dh-card {
  border: 1px solid rgba(29, 58, 48, 0.1);
  background: rgba(255, 252, 246, 0.88);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.dh-character-tile {
  isolation: isolate;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-character-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(30, 95, 74, 0.13), rgba(255, 250, 240, 0) 62%);
  opacity: 0;
  transform: translate3d(-10px, 10px, 0) scale(0.96);
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-character-tile-glyph,
.dh-character-tile-pinyin {
  transition:
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .dh-character-tile:hover,
  .dh-character-tile:focus-visible {
    background: #fbfdfb;
    border-color: #9eb9aa;
    box-shadow: 0 12px 24px rgba(25, 59, 48, 0.1);
    outline: none;
    transform: translate3d(0, -2px, 0);
  }

  .dh-character-tile:hover::before,
  .dh-character-tile:focus-visible::before {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .dh-character-tile:hover .dh-character-tile-glyph,
  .dh-character-tile:focus-visible .dh-character-tile-glyph {
    color: #1e5f4a;
    transform: translate3d(0, -1px, 0) scale(1.06);
  }

  .dh-character-tile:hover .dh-character-tile-pinyin,
  .dh-character-tile:focus-visible .dh-character-tile-pinyin {
    color: #52645d;
    transform: translate3d(0, 1px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-character-tile,
  .dh-character-tile::before,
  .dh-character-tile-glyph,
  .dh-character-tile-pinyin,
  .dh-reveal {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
    transform: none;
  }
}

.dh-action-primary,
.dh-action-secondary {
  min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-action-primary {
  background: #1e5f4a;
  color: white;
}

.dh-action-primary:hover,
.dh-action-primary:focus-visible {
  background: #174f3d;
  box-shadow: 0 12px 24px rgba(30, 95, 74, 0.18);
  outline: none;
}

.dh-action-secondary {
  border: 1px solid rgba(28, 63, 52, 0.14);
  background: rgba(255, 252, 246, 0.78);
  color: #52645d;
}

.dh-form-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e3e7f0;
  background: #fff;
  padding: 12px 14px;
  color: #080b25;
  font-size: 14px;
  line-height: 1.5;
}

.dh-form-input:focus {
  border-color: #89a99a;
  box-shadow: 0 0 0 4px rgba(30, 95, 74, 0.12);
  outline: none;
}

.hanzi-display {
  font-family: "STKaiti", "Kaiti SC", "Songti SC", serif;
}

.dh-inbox-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(29, 58, 48, 0.12);
  background: linear-gradient(135deg, #123d31, #1e5f4a);
  color: #fffaf0;
  box-shadow: 0 28px 80px rgba(29, 58, 48, 0.2);
}

.dh-timeline-header,
.dh-timeline-controls {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: 0 14px 36px rgba(41, 64, 54, 0.07);
}

.dh-timeline-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

@media (min-width: 1024px) {
  .dh-timeline-controls {
    top: 16px;
  }
}

.dh-timeline-day {
  display: grid;
  gap: 12px;
}

@media (min-width: 1024px) {
  .dh-timeline-day {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 18px;
  }
}

.dh-timeline-date {
  color: #10231d;
}

@media (min-width: 1024px) {
  .dh-timeline-date {
    position: sticky;
    top: 118px;
    align-self: start;
    padding-top: 4px;
  }
}

.dh-timeline-date h2 {
  font-size: 14px;
  font-weight: 750;
}

.dh-timeline-date p {
  margin-top: 2px;
  color: #6d8177;
  font-size: 12px;
  font-weight: 650;
}

.dh-timeline-stack {
  position: relative;
  display: grid;
  gap: 10px;
}

.dh-timeline-stack::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 10px;
  width: 1px;
  background: #d8e4dc;
}

.dh-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.dh-timeline-marker {
  z-index: 1;
  margin-top: 22px;
  width: 21px;
  height: 21px;
  border: 6px solid #f4f0e8;
  border-radius: 999px;
  background: #9fb8aa;
}

.dh-timeline-entry-latest .dh-timeline-marker {
  background: #1e5f4a;
}

.dh-timeline-card {
  overflow: hidden;
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 12px 30px rgba(41, 64, 54, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dh-timeline-card:hover,
.dh-timeline-card:focus-within {
  border-color: #b8cec1;
  box-shadow: 0 16px 42px rgba(41, 64, 54, 0.1);
}

.dh-timeline-thumb {
  display: flex;
  width: 100%;
  min-height: 4.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f2eadc;
}

@media (min-width: 640px) {
  .dh-timeline-thumb {
    width: 5rem;
    height: 5rem;
    min-height: 0;
  }
}

.dh-inbox-stage > * {
  position: relative;
}

.dh-capture-card {
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(41, 64, 54, 0.07);
}

.dh-study-surface {
  border-radius: 24px;
  border: 1px solid rgba(29, 58, 48, 0.12);
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(239, 247, 241, 0.88));
  box-shadow: 0 24px 70px rgba(41, 64, 54, 0.1);
}

.dh-kicker {
  color: #6d8177;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dh-lesson-guide {
  border: 1px solid rgba(29, 58, 48, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.97), rgba(241, 247, 239, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(184, 91, 0, 0.08), transparent 32%);
  box-shadow: 0 24px 70px rgba(41, 64, 54, 0.09);
}

.dh-guide-steps {
  display: grid;
  gap: 10px;
}

.dh-guide-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.dh-guide-step > span {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 95, 74, 0.15);
  border-radius: 999px;
  background: #fffaf0;
  color: #1e5f4a;
  font-size: 13px;
  font-weight: 800;
}

.dh-guide-step p {
  color: #10231d;
  font-size: 14px;
  font-weight: 750;
}

.dh-guide-step small {
  display: block;
  margin-top: 2px;
  color: #52645d;
  font-size: 13px;
  line-height: 1.45;
}

.dh-lesson-item {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 10px 24px rgba(41, 64, 54, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dh-lesson-item-current {
  border-color: rgba(30, 95, 74, 0.28);
  background: rgba(250, 253, 250, 0.96);
}

@media (hover: hover) and (pointer: fine) {
  .dh-lesson-item:hover,
  .dh-lesson-item:focus-visible {
    border-color: rgba(30, 95, 74, 0.24);
    box-shadow: 0 16px 36px rgba(41, 64, 54, 0.1);
    outline: none;
    transform: translate3d(0, -1px, 0);
  }
}

.dh-source-line {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 18px;
  background: rgba(239, 245, 240, 0.72);
}

.dh-primary-action,
.dh-secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dh-primary-action {
  background: #1e5f4a;
  color: #fffaf0;
}

.dh-secondary-action {
  border: 1px solid rgba(29, 58, 48, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: #52645d;
}

@media (hover: hover) and (pointer: fine) {
  .dh-primary-action:hover,
  .dh-primary-action:focus-visible,
  .dh-secondary-action:hover,
  .dh-secondary-action:focus-visible {
    outline: none;
    transform: translate3d(0, -1px, 0);
  }

  .dh-primary-action:hover,
  .dh-primary-action:focus-visible {
    background: #174f3d;
  }

  .dh-secondary-action:hover,
  .dh-secondary-action:focus-visible {
    border-color: rgba(30, 95, 74, 0.24);
    background: rgba(255, 255, 255, 0.86);
  }
}

.dh-focus-board {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.86);
}

.dh-focus-level {
  display: grid;
  min-width: 4.75rem;
  justify-items: center;
  border-left: 1px solid rgba(29, 58, 48, 0.12);
  padding: 2px 0 2px 16px;
  color: #1e5f4a;
}

.dh-focus-level strong {
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.dh-focus-level span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.dh-hanzi-focus {
  border-top: 1px solid rgba(29, 58, 48, 0.1);
  padding-top: 18px;
}

.dh-hanzi-focus span {
  color: #10231d;
  font-size: 4rem;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 640px) {
  .dh-hanzi-focus span {
    font-size: 3rem;
  }
}

.dh-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(29, 58, 48, 0.1);
  padding-top: 14px;
}

.dh-progress-strip div:not(:first-child) {
  border-left: 1px solid rgba(29, 58, 48, 0.1);
  padding-left: 14px;
}

.dh-progress-strip strong,
.dh-progress-strip span {
  display: block;
}

.dh-progress-strip strong {
  color: #10231d;
  font-size: 22px;
  font-weight: 800;
}

.dh-progress-strip span {
  margin-top: 2px;
  color: #6d8177;
  font-size: 12px;
  font-weight: 700;
}

.dh-compact-action {
  display: block;
  min-height: 70px;
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.74);
  padding: 12px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.dh-compact-action strong,
.dh-compact-action span {
  display: block;
}

.dh-compact-action strong {
  color: #10231d;
  font-size: 15px;
  font-weight: 800;
}

.dh-compact-action span {
  margin-top: 4px;
  color: #6d8177;
  font-size: 13px;
  line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
  .dh-compact-action:hover,
  .dh-compact-action:focus-visible {
    border-color: rgba(30, 95, 74, 0.24);
    outline: none;
    transform: translate3d(0, -1px, 0);
  }
}

.dh-soft-pill {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(29, 58, 48, 0.12);
  padding: 5px 9px;
  color: #1e5f4a;
  font-size: 12px;
  font-weight: 800;
}

.dh-path-summary,
.dh-path-section,
.dh-source-details {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.78);
}

.dh-path-count {
  display: grid;
  min-width: 5rem;
  justify-items: end;
  color: #1e5f4a;
}

.dh-path-count strong {
  color: #10231d;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.dh-path-count span {
  margin-top: 4px;
  color: #6d8177;
  font-size: 12px;
  font-weight: 700;
}

.dh-path-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 58, 48, 0.09);
}

.dh-path-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1e5f4a;
}

.dh-next-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(29, 58, 48, 0.1);
  padding-top: 18px;
}

.dh-path-section {
  padding: 16px;
}

.dh-path-status,
.dh-path-state {
  flex-shrink: 0;
  color: #6d8177;
  font-size: 12px;
  font-weight: 800;
}

.dh-path-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  transition: transform 160ms ease;
}

.dh-path-item-current .dh-path-index,
.dh-path-item-current .dh-path-state {
  color: #1e5f4a;
}

.dh-path-item-muted {
  opacity: 0.74;
}

.dh-path-index {
  display: flex;
  min-width: 2.1rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 58, 48, 0.12);
  border-radius: 999px;
  color: #52645d;
  font-size: 11px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .dh-path-item:hover,
  .dh-path-item:focus-visible {
    outline: none;
    transform: translate3d(2px, 0, 0);
  }

  .dh-path-item:hover strong,
  .dh-path-item:focus-visible strong {
    color: #1e5f4a;
  }
}

.dh-source-details {
  padding: 14px 16px;
}

.dh-source-details summary {
  cursor: pointer;
  color: #10231d;
  font-size: 14px;
  font-weight: 800;
}

.dh-source-details summary::marker {
  color: #6d8177;
}

.dh-session {
  display: grid;
  gap: 16px;
}

.dh-session-bar,
.dh-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dh-session-bar {
  justify-content: space-between;
  border-bottom: 1px solid rgba(76, 51, 40, 0.1);
  padding-bottom: 12px;
}

.dh-session-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dh-source-session,
.dh-practice-now,
.dh-source-glance,
.dh-practice-queue {
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 0 16px 44px rgba(66, 45, 35, 0.07);
}

.dh-source-session {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.dh-source-stamp {
  display: grid;
  min-height: 5rem;
  place-items: center;
  border-radius: 20px;
  background: #10231d;
  color: #fffaf0;
}

.dh-source-stamp span {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.dh-source-stamp small {
  color: #dcefe5;
  font-size: 11px;
  font-weight: 850;
}

.dh-source-session h1 {
  margin-top: 7px;
  color: #10231d;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.12;
}

.dh-source-session p:not(.dh-kicker) {
  margin-top: 8px;
  color: #52645d;
  font-size: 14px;
  line-height: 1.55;
}

.dh-practice-now {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(232, 239, 227, 0.86)),
    linear-gradient(90deg, rgba(141, 63, 50, 0.06), transparent);
}

.dh-practice-now h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
  color: #10231d;
}

.dh-practice-now h2 span {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.dh-practice-now h2 small {
  color: #6d8177;
  font-size: 14px;
  font-weight: 750;
}

.dh-practice-now p:not(.dh-kicker) {
  margin-top: 8px;
  color: #52645d;
  font-size: 14px;
  line-height: 1.55;
}

.dh-source-glance {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.dh-source-glance p:not(.dh-kicker) {
  color: #10231d;
  font-size: 1.1rem;
  line-height: 1.65;
}

.dh-source-glance-image {
  max-height: 18rem;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.dh-practice-queue {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.dh-session-heading {
  display: grid;
  gap: 10px;
}

.dh-session-heading h2 {
  margin-top: 4px;
  color: #10231d;
  font-size: 1.25rem;
  font-weight: 850;
}

.dh-practice-queue-list,
.dh-practice-items {
  display: grid;
  gap: 10px;
}

.dh-practice-group {
  display: grid;
  gap: 10px;
}

.dh-practice-group-title {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.dh-practice-group-title > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #e8efe3;
  color: #1e5f4a;
  font-size: 12px;
  font-weight: 900;
}

.dh-practice-group-title strong,
.dh-practice-group-title small {
  display: block;
}

.dh-practice-group-title strong {
  color: #10231d;
  font-size: 14px;
  font-weight: 850;
}

.dh-practice-group-title small {
  margin-top: 2px;
  color: #6d8177;
  font-size: 12px;
  line-height: 1.35;
}

.dh-practice-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  padding: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dh-practice-item.is-current {
  border-color: rgba(30, 95, 74, 0.24);
  background: #f0f7f2;
}

.dh-practice-item.is-done {
  background: rgba(232, 239, 227, 0.7);
}

.dh-practice-item.is-muted {
  opacity: 0.72;
}

.dh-practice-item > .hanzi-display {
  color: #10231d;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.dh-practice-item strong,
.dh-practice-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-practice-item strong {
  color: #6d8177;
  font-size: 12px;
  font-weight: 800;
}

.dh-practice-item small {
  margin-top: 2px;
  color: #52645d;
  font-size: 13px;
}

.dh-practice-item em {
  border-radius: 999px;
  background: #f3e3d4;
  padding: 6px 9px;
  color: #8d3f32;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.dh-reveal {
  animation: dh-rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dh-home > .dh-reveal:nth-child(2),
.dh-sources > .dh-reveal:nth-child(2),
.dh-capture > .dh-reveal:nth-child(2) {
  animation-delay: 70ms;
}

.dh-home > .dh-reveal:nth-child(3),
.dh-sources > .dh-reveal:nth-child(3),
.dh-capture > .dh-reveal:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes dh-rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.dh-home,
.dh-sources,
.dh-capture {
  display: grid;
  gap: 16px;
}

.dh-home-hero,
.dh-sources-head,
.dh-capture-head,
.dh-study-ribbon,
.dh-recall-strip {
  border: 1px solid rgba(76, 51, 40, 0.1);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 18px 50px rgba(66, 45, 35, 0.07);
}

.dh-home-hero {
  position: relative;
  display: grid;
  min-height: 20rem;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
}

.dh-home-hero::after {
  content: "日日";
  position: absolute;
  right: 18px;
  bottom: -28px;
  color: rgba(141, 63, 50, 0.06);
  font-family: "STKaiti", "Kaiti SC", "Songti SC", serif;
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.dh-hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 36rem;
}

.dh-hero-copy h1,
.dh-sources-head h1,
.dh-capture-head h1 {
  margin-top: 10px;
  color: #10231d;
  font-size: 2.35rem;
  font-weight: 760;
  line-height: 1.03;
}

.dh-hero-copy p,
.dh-sources-head p,
.dh-capture-head p {
  margin-top: 12px;
  max-width: 34rem;
  color: #52645d;
  font-size: 1rem;
  line-height: 1.65;
}

.dh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dh-hero-focus {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  justify-items: start;
  gap: 10px;
  border-top: 1px solid rgba(76, 51, 40, 0.1);
  padding-top: 20px;
}

.dh-hero-focus span {
  color: #8d3f32;
  font-size: 4.75rem;
  font-weight: 650;
  line-height: 0.9;
}

.dh-hero-focus small {
  border-radius: 999px;
  background: #f3e3d4;
  padding: 6px 10px;
  color: #7b4b3e;
  font-size: 12px;
  font-weight: 850;
}

.dh-mode-grid {
  display: grid;
  gap: 12px;
}

.dh-mode-panel {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.82);
  padding: 16px;
  text-decoration: none;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-mode-panel-practice {
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(237, 242, 230, 0.82));
}

.dh-mode-panel-source {
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(248, 227, 211, 0.76));
}

.dh-mode-glyph {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 16px;
  background: #10231d;
  color: #fffaf0;
  font-size: 1.7rem;
  line-height: 1;
}

.dh-mode-panel strong,
.dh-mode-panel small,
.dh-mode-panel em {
  display: block;
}

.dh-mode-panel strong {
  color: #10231d;
  font-size: 1rem;
  font-weight: 850;
}

.dh-mode-panel small {
  margin-top: 3px;
  color: #52645d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.dh-mode-panel em {
  justify-self: end;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  padding: 7px 10px;
  color: #1e5f4a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.dh-quick-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(76, 51, 40, 0.1);
  padding-block: 14px;
}

.dh-quick-line div {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.dh-quick-line div:not(:first-child) {
  border-left: 1px solid rgba(76, 51, 40, 0.1);
}

.dh-quick-line strong {
  color: #10231d;
  font-size: 1.55rem;
  font-weight: 850;
}

.dh-quick-line span {
  color: #6d8177;
  font-size: 12px;
  font-weight: 760;
}

.dh-source-queue {
  display: grid;
  gap: 12px;
}

.dh-section-heading,
.dh-sources-head,
.dh-capture-head,
.dh-recall-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dh-section-heading h2,
.dh-recall-strip h2 {
  margin-top: 4px;
  color: #10231d;
  font-size: 1.25rem;
  font-weight: 820;
}

.dh-section-heading a,
.dh-back-link {
  color: #8d3f32;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.dh-queue-list {
  display: grid;
  gap: 8px;
}

.dh-queue-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.74);
  padding: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.dh-queue-index {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: #e8efe3;
  color: #1e5f4a;
  font-size: 12px;
  font-weight: 900;
}

.dh-queue-row strong,
.dh-queue-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-queue-row strong {
  color: #10231d;
  font-size: 14px;
  font-weight: 820;
}

.dh-queue-row small {
  margin-top: 2px;
  color: #52645d;
  font-size: 12px;
}

.dh-queue-row em {
  color: #8d3f32;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.dh-recall-strip,
.dh-sources-head,
.dh-capture-head,
.dh-study-ribbon {
  border-radius: 22px;
  padding: 18px;
}

.dh-study-ribbon {
  display: grid;
  gap: 14px;
}

.dh-study-ribbon h2 {
  margin-top: 3px;
  color: #10231d;
  font-size: 1.4rem;
  font-weight: 850;
}

.dh-study-ribbon-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dh-study-chip {
  display: grid;
  min-width: 5.8rem;
  gap: 4px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 16px;
  background: #fffaf0;
  padding: 10px;
  text-decoration: none;
}

.dh-study-chip span {
  color: #10231d;
  font-size: 1.3rem;
  font-weight: 700;
}

.dh-study-chip small {
  overflow: hidden;
  color: #6d8177;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-timeline-controls {
  display: grid;
  gap: 14px;
  border-radius: 22px;
  padding: 12px;
}

.dh-source-search {
  display: flex;
  gap: 8px;
}

.dh-timeline {
  display: grid;
  gap: 22px;
}

.dh-timeline-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  text-decoration: none;
}

.dh-timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 18px;
}

.dh-timeline-thumb {
  min-height: 4.25rem;
}

.dh-timeline-thumb span {
  font-size: 1.8rem;
  font-weight: 700;
}

.dh-timeline-copy {
  min-width: 0;
}

.dh-timeline-copy strong,
.dh-timeline-copy small,
.dh-timeline-copy span {
  display: block;
}

.dh-timeline-copy strong {
  overflow: hidden;
  color: #10231d;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-timeline-copy small {
  margin-top: 4px;
  color: #52645d;
  font-size: 13px;
  line-height: 1.4;
}

.dh-timeline-copy span {
  margin-top: 9px;
  color: #8a9a92;
  font-size: 11px;
  font-weight: 800;
}

.dh-timeline-copy em {
  margin-left: 8px;
  color: #8d3f32;
  font-style: normal;
}

.dh-timeline-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 10px 10px 10px 0;
}

.dh-icon-button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 10px;
  color: #6d8177;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dh-icon-button:hover,
.dh-icon-button:focus-visible,
.dh-icon-button.is-active {
  background: #e8efe3;
  color: #1e5f4a;
  outline: none;
}

.dh-icon-button-danger {
  color: #9a3c2f;
}

.dh-icon-button-danger:hover,
.dh-icon-button-danger:focus-visible {
  background: #f7e3db;
  color: #7c2f25;
}

.dh-empty-source {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed rgba(76, 51, 40, 0.18);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.72);
  padding: 40px 20px;
  text-align: center;
}

.dh-empty-source span {
  color: #8d3f32;
  font-size: 3rem;
}

.dh-empty-source h2 {
  color: #10231d;
  font-size: 1.25rem;
  font-weight: 850;
}

.dh-empty-source p {
  color: #52645d;
  font-size: 14px;
}

.dh-capture-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dh-capture-flow div {
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.7);
  padding: 12px;
}

.dh-capture-flow div.is-current {
  background: #e8efe3;
}

.dh-capture-flow strong,
.dh-capture-flow span {
  display: block;
}

.dh-capture-flow strong {
  color: #10231d;
  font-size: 14px;
  font-weight: 850;
}

.dh-capture-flow span {
  margin-top: 2px;
  color: #6d8177;
  font-size: 12px;
  font-weight: 720;
}

.dh-capture-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.84);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(66, 45, 35, 0.07);
}

.dh-source-drop .dh-form-input {
  min-height: 16rem;
  border-color: rgba(141, 63, 50, 0.16);
  background: #fffdf8;
  font-size: 16px;
}

.dh-capture-tools {
  display: grid;
  gap: 14px;
}

.dh-capture-submit {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.dh-journal {
  display: grid;
  gap: 18px;
}

.dh-journal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(76, 51, 40, 0.1);
  padding-bottom: 14px;
}

.dh-journal-topbar h1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 3px;
  color: #10231d;
}

.dh-journal-topbar h1 span {
  color: #8d3f32;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.dh-journal-topbar h1 time {
  font-size: 1rem;
  font-weight: 850;
}

.dh-journal-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dh-journal-cover {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(76, 51, 40, 0.11);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(242, 235, 220, 0.9) 48%, rgba(228, 239, 226, 0.88)),
    linear-gradient(90deg, rgba(141, 63, 50, 0.08), transparent);
  padding: 24px;
  box-shadow: 0 28px 70px rgba(66, 45, 35, 0.1);
}

.dh-journal-cover::after {
  content: "学";
  position: absolute;
  right: 0;
  bottom: -3.2rem;
  color: rgba(30, 95, 74, 0.075);
  font-family: "STKaiti", "Kaiti SC", "Songti SC", serif;
  font-size: 13rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.dh-journal-date {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 8.5rem;
  border: 1px solid rgba(141, 63, 50, 0.18);
  border-radius: 28px;
  background: #fffaf0;
  color: #8d3f32;
  box-shadow: 0 18px 44px rgba(141, 63, 50, 0.08);
}

.dh-journal-date span {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.dh-journal-date time {
  margin-top: 9px;
  color: #7b4b3e;
  font-size: 12px;
  font-weight: 850;
}

.dh-journal-cover-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 38rem;
}

.dh-journal-cover-copy h1 {
  margin-top: 10px;
  color: #10231d;
  font-size: 2.65rem;
  font-weight: 780;
  line-height: 1.02;
}

.dh-journal-cover-copy p:not(.dh-kicker) {
  margin-top: 14px;
  max-width: 36rem;
  color: #52645d;
  font-size: 1rem;
  line-height: 1.65;
}

.dh-journal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 10px;
}

.dh-journal-stream {
  display: grid;
  gap: 26px;
}

.dh-journal-day {
  display: grid;
  gap: 14px;
}

.dh-journal-day-label h2 {
  color: #10231d;
  font-size: 1.05rem;
  font-weight: 850;
}

.dh-journal-day-label span {
  display: block;
  margin-top: 3px;
  color: #8a9a92;
  font-size: 12px;
  font-weight: 780;
}

.dh-journal-entries {
  position: relative;
  display: grid;
  gap: 12px;
}

.dh-journal-entries::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  left: 1.35rem;
  width: 1px;
  background: linear-gradient(#cbb9a5, #9ab2a2);
}

.dh-journal-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(76, 51, 40, 0.1);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.82);
  padding: 12px;
  box-shadow: 0 14px 38px rgba(66, 45, 35, 0.06);
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-journal-entry-source {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(239, 246, 239, 0.84)),
    linear-gradient(90deg, rgba(141, 63, 50, 0.06), transparent);
}

.dh-journal-entry-practice {
  background: rgba(255, 253, 248, 0.72);
}

.dh-journal-entry-main {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  gap: 14px;
  text-decoration: none;
}

.dh-journal-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid rgba(16, 35, 29, 0.08);
  border-radius: 18px;
  background: #10231d;
  color: #fffaf0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.dh-journal-entry-practice .dh-journal-glyph {
  background: #8d3f32;
}

.dh-journal-body {
  min-width: 0;
}

.dh-journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #8a9a92;
  font-size: 11px;
  font-weight: 850;
}

.dh-journal-meta em {
  color: #8d3f32;
  font-style: normal;
}

.dh-journal-body strong,
.dh-journal-body small {
  display: block;
}

.dh-journal-body strong {
  margin-top: 5px;
  color: #10231d;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
}

.dh-journal-body small {
  margin-top: 6px;
  color: #52645d;
  font-size: 13px;
  line-height: 1.45;
}

.dh-journal-item-strip {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.dh-journal-item-strip span {
  flex: 0 0 auto;
  border: 1px solid rgba(30, 95, 74, 0.13);
  border-radius: 999px;
  background: #edf4ef;
  padding: 5px 9px;
  color: #1e5f4a;
  font-size: 15px;
  font-weight: 700;
}

.dh-journal-entry-action {
  justify-self: start;
  border-radius: 999px;
  background: #f3e3d4;
  padding: 8px 12px;
  color: #8d3f32;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dh-journal-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px dashed rgba(76, 51, 40, 0.2);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.72);
  padding: 44px 20px;
  text-align: center;
}

.dh-journal-empty span {
  color: #8d3f32;
  font-size: 3.25rem;
  line-height: 1;
}

.dh-journal-empty h2 {
  color: #10231d;
  font-size: 1.35rem;
  font-weight: 850;
}

.dh-journal-empty p {
  max-width: 28rem;
  color: #52645d;
  font-size: 14px;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .dh-mode-panel:hover,
  .dh-mode-panel:focus-visible,
  .dh-queue-row:hover,
  .dh-queue-row:focus-visible,
  .dh-timeline-card:hover,
  .dh-timeline-card:focus-within,
  .dh-journal-entry:hover,
  .dh-journal-entry:focus-within {
    border-color: rgba(141, 63, 50, 0.22);
    box-shadow: 0 20px 46px rgba(66, 45, 35, 0.1);
    outline: none;
    transform: translate3d(0, -2px, 0);
  }
}

@media (min-width: 640px) {
  .dh-home-hero {
    grid-template-columns: minmax(0, 1fr) 13rem;
    padding: 32px;
  }

  .dh-mode-grid,
  .dh-capture-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dh-timeline-main {
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
  }

  .dh-timeline-thumb {
    height: 5rem;
    min-height: 0;
  }

  .dh-capture-submit {
    flex-direction: row;
    justify-content: flex-end;
  }

  .dh-journal-cover {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    align-items: center;
    padding: 34px;
  }

  .dh-journal-actions {
    grid-column: auto;
    align-self: end;
    flex-direction: column;
    min-width: 11rem;
  }

  .dh-journal-day {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 22px;
  }

  .dh-journal-day-label {
    position: sticky;
    top: 86px;
    align-self: start;
    padding-top: 12px;
  }

  .dh-journal-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 14px;
  }

  .dh-journal-entry-action {
    justify-self: end;
  }

  .dh-practice-now {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .dh-session-heading {
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .dh-hero-copy h1,
  .dh-sources-head h1,
  .dh-capture-head h1 {
    font-size: 2rem;
  }

  .dh-hero-focus span {
    font-size: 3.6rem;
  }

  .dh-section-heading,
  .dh-sources-head,
  .dh-capture-head,
  .dh-recall-strip {
    align-items: start;
    flex-direction: column;
  }

  .dh-mode-panel {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .dh-mode-panel em {
    grid-column: 2;
    justify-self: start;
  }

  .dh-source-search {
    flex-direction: column;
  }

  .dh-timeline-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh-timeline-actions {
    justify-content: flex-end;
    padding: 0 10px 10px;
  }

  .dh-journal-cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh-journal-topbar {
    align-items: start;
    flex-direction: column;
  }

  .dh-journal-topbar-actions {
    justify-content: start;
  }

  .dh-journal-cover-copy h1 {
    font-size: 2.05rem;
  }

  .dh-journal-date {
    width: 7.25rem;
    min-height: 7.25rem;
  }

  .dh-journal-actions {
    grid-column: auto;
  }

  .dh-journal-entries::before {
    left: 1.15rem;
  }

  .dh-journal-entry-main {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 12px;
  }

  .dh-journal-glyph {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  .dh-session-bar {
    align-items: start;
    flex-direction: column;
  }

  .dh-session-actions {
    justify-content: start;
  }

  .dh-source-session {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh-source-stamp {
    width: 5rem;
  }

  .dh-practice-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh-practice-item em {
    justify-self: start;
  }
}

.dh-recall-card {
  border-radius: 24px;
  background: linear-gradient(145deg, #123d31, #1e5f4a);
  color: #fffaf0;
  box-shadow: 0 30px 90px rgba(18, 61, 49, 0.24);
}

.dh-ink-line {
  background-image: linear-gradient(90deg, rgba(30, 95, 74, 0.18) 1px, transparent 1px);
  background-size: 18px 1px;
  background-position: left bottom;
  background-repeat: repeat-x;
}

.dh-learning-workbench {
  overflow: hidden;
  border: 1px solid rgba(29, 58, 48, 0.12);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 14px 36px rgba(41, 64, 54, 0.07);
}

.dh-workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dfe8e2;
  padding: 10px 12px;
}

.dh-mode-switch {
  display: inline-flex;
  gap: 4px;
  border-radius: 12px;
  background: #edf4ef;
  padding: 3px;
}

.dh-mode-button {
  min-height: 36px;
  border-radius: 9px;
  padding: 0 14px;
  color: #52645d;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dh-mode-button[aria-pressed="true"] {
  background: #1e5f4a;
  color: #fffaf0;
  box-shadow: 0 8px 18px rgba(30, 95, 74, 0.18);
}

.dh-practice-panel[hidden] {
  display: none;
}

.dh-tiny-action {
  min-height: 34px;
  border-radius: 9px;
  background: #edf4ef;
  padding: 0 10px;
  color: #1e5f4a;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dh-tiny-action:hover,
.dh-tiny-action:focus-visible {
  background: #dfeee5;
  outline: none;
}

.dh-draw-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dh-draw-button {
  display: grid;
  min-width: 4.25rem;
  place-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f8f4;
  padding: 10px;
  color: #52645d;
  font-size: 11px;
  font-weight: 650;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dh-draw-button[aria-pressed="true"] {
  border-color: #86ad9a;
  background: #e5f0e8;
  color: #1e5f4a;
}

.dh-draw-button.is-complete {
  background: #1e5f4a;
  color: #fffaf0;
}

.dh-drawing-pane {
  border: 1px solid rgba(29, 58, 48, 0.1);
  border-radius: 16px;
  background: #fffdf8;
  padding: 12px;
}

.dh-drawing-pane[hidden] {
  display: none;
}

.dh-drawing-pane.is-complete {
  border-color: #88b69d;
  background: #eff8f1;
}

.dh-writing-canvas,
.dh-writing-fallback {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(30, 95, 74, 0.14);
  border-radius: 14px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(rgba(30, 95, 74, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 95, 74, 0.12) 1px, transparent 1px);
  background-size: 50% 50%;
}

.dh-writing-canvas {
  aspect-ratio: 1;
  max-width: min(100%, 22rem);
  margin-inline: auto;
}

.dh-writing-fallback {
  display: flex;
  min-height: 11rem;
  align-items: center;
  justify-content: center;
  color: #10231d;
}

.dh-memory-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: #fffdf8;
  padding: 0 14px;
  color: #10231d;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-memory-input:focus {
  border-color: #89a99a;
  box-shadow: 0 0 0 4px rgba(30, 95, 74, 0.12);
}

.dh-memory-input.is-correct {
  border-color: #60a779;
  background: #eff8f1;
}

.dh-memory-input.is-wrong {
  border-color: #c88478;
  background: #fff4ef;
}

.dh-quiz-option {
  display: grid;
  min-height: 48px;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dce7df;
  border-radius: 13px;
  background: #fffdf8;
  padding: 8px 12px 8px 8px;
  text-align: left;
  color: #10231d;
  font-size: 14px;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dh-quiz-option:hover,
.dh-quiz-option:focus-visible {
  border-color: #9fb8aa;
  background: #f6fbf7;
  outline: none;
}

.dh-quiz-option:disabled {
  cursor: default;
}

.dh-option-letter {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf4ef;
  color: #1e5f4a;
  font-size: 12px;
  font-weight: 900;
}

.dh-quiz-option.is-correct {
  border-color: #65a87b;
  background: #eef8f1;
}

.dh-quiz-option.is-correct .dh-option-letter {
  background: #1e5f4a;
  color: #fffaf0;
}

.dh-quiz-option.is-wrong {
  border-color: #c88478;
  background: #fff3ee;
}

.dh-quiz-option.is-wrong .dh-option-letter {
  background: #9a3c2f;
  color: #fffaf0;
}

.dh-quiz-option.is-muted {
  opacity: 0.58;
}

.dh-quiz-card .is-correct,
.dh-quiz-card .is-wrong {
  border: 1px solid transparent;
}

.dh-quiz-card .is-correct {
  border-color: #90c8a2;
  background: #eff8f1;
  color: #1e5f4a;
}

.dh-quiz-card .is-wrong {
  border-color: #d7a197;
  background: #fff3ee;
  color: #8a3428;
}

.dh-quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

turbo-frame {
  display: block;
  transition: opacity 250ms ease-out;
}

@keyframes dh-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dh-skeleton {
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #e8ede8 25%, #d6dfd6 50%, #e8ede8 75%);
  background-size: 200% 100%;
  animation: dh-shimmer 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .dh-capture-card,
  .dh-pill-filter,
  .dh-action-primary,
  .dh-action-secondary {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .dh-capture-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 42px rgba(41, 64, 54, 0.1);
  }
}
