/* Journaling · Styles */
.jo-modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.jo-mode { border: 1.5px solid var(--mk-line); border-radius: var(--mk-radius-sm); background: var(--mk-surface); padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; color: inherit; transition: all .15s; }
.jo-mode span { font-size: 22px; }
.jo-mode b { font-size: 12px; font-weight: 600; }
.jo-mode:hover { border-color: var(--c); }
.jo-mode.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.jo-prompt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 8%, white); border-radius: var(--mk-radius-sm); margin: 10px 0; font-size: 15px; font-weight: 500; font-style: italic; }
.jo-prompt span { flex: 1; }
.jo-mood { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.jo-mood > span { font-size: 13px; color: var(--mk-muted); font-weight: 600; min-width: 120px; }
.jo-mood div { display: flex; gap: 4px; }
.jo-mood button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--mk-line); background: var(--mk-surface); font-size: 20px; cursor: pointer; transition: all .15s; opacity: .55; }
.jo-mood button:hover { opacity: 1; }
.jo-mood button.on { opacity: 1; border-color: var(--mk-accent); background: var(--mk-accent-soft); transform: scale(1.1); }
.jo-ta { font-size: 16px; line-height: 1.65; min-height: 180px; }
.jo-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; font-size: 13px; color: var(--mk-muted); }
.jo-timer { display: flex; gap: 6px; align-items: center; }
.jo-timer b { font-variant-numeric: tabular-nums; font-size: 18px; color: var(--mk-accent); }
.jo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.jo-stats div { background: var(--mk-surface-2); border-radius: var(--mk-radius-sm); padding: 12px 8px; text-align: center; }
.jo-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--mk-accent); }
.jo-stats span { font-size: 11px; color: var(--mk-muted); }
.jo-stats.small b { font-size: 20px; }
.jo-modestats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 14px; }
.jo-modestats div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border: 1px solid var(--mk-line); border-left: 4px solid var(--c); border-radius: var(--mk-radius-sm); padding: 8px 10px; }
.jo-modestats span { grid-row: span 2; font-size: 22px; }
.jo-modestats b { font-size: 13px; }
.jo-modestats small { font-size: 11px; color: var(--mk-muted); }
.jo-themes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.jo-themes .mk-chip small { opacity: .6; }
.jo-wd { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-bottom: 14px; }
.jo-wd div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.jo-wd i { display: block; width: 100%; max-width: 40px; background: var(--mk-accent); border-radius: 4px 4px 0 0; opacity: .8; }
.jo-wd span { font-size: 11px; color: var(--mk-muted); }
.jo-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.jo-e { border: 1px solid var(--mk-line); border-left: 4px solid var(--c); border-radius: var(--mk-radius-sm); margin-bottom: 8px; overflow: hidden; }
.jo-e-h { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: inherit; }
.jo-e-h > span { font-size: 20px; }
.jo-e-h b { display: block; font-size: 13px; }
.jo-e-h small { display: block; font-size: 12px; color: var(--mk-muted); overflow: hidden; }
.jo-e-h em { font-style: normal; font-size: 16px; white-space: nowrap; }
.jo-e-b { padding: 0 12px 12px; }
.jo-e-b p { font-size: 15px; line-height: 1.6; margin: 8px 0; }
.jo-e-p { font-size: 13px; font-style: italic; color: var(--mk-muted); background: var(--mk-surface-2); padding: 8px 10px; border-radius: var(--mk-radius-sm); margin-bottom: 8px; }
.jo-e-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.jo-e-f .mk-faint { margin-right: auto; }
.jo-th-in { max-width: 220px; }
.jo-rel { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.jo-rel div { font-size: 13px; color: var(--mk-muted); background: var(--mk-surface-2); padding: 8px 10px; border-radius: var(--mk-radius-sm); line-height: 1.5; }
.jo-rel small { display: block; font-size: 11px; opacity: .7; }
.jo-rel mark { background: var(--mk-accent-soft); color: inherit; font-weight: 600; padding: 0 2px; border-radius: 3px; }
.jo-refl { border: 1px solid var(--mk-line); border-radius: var(--mk-radius-sm); padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.jo-refl b { text-transform: capitalize; }
.jo-refl small { color: var(--mk-muted); margin-left: 6px; }
.jo-refl > div { margin-top: 4px; }
.jo-link { text-decoration: none; color: inherit; }
@media (max-width: 640px) {
    .jo-modes { grid-template-columns: repeat(3, 1fr); }
    .jo-mode span { font-size: 18px; }
    .jo-stats { grid-template-columns: repeat(2, 1fr); }
    .jo-mood > span { min-width: 0; width: 100%; }
    .jo-mood button { width: 36px; height: 36px; font-size: 18px; }
    .jo-e-h em { font-size: 14px; }
    .jo-th-in { max-width: none; width: 100%; }
}
