/* Match the existing favorite card: same face, body size, spacing and theme tokens. */
.favorite-limits { margin: 0 0 8px; color: var(--muted); font: inherit; font-size: 12px; }
.favorite-journal { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-family: inherit; font-size: 13px; line-height: 1.6; color: var(--text); }
.favorite-journal summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; min-height: 32px; font-weight: 650; list-style: none; }
.favorite-journal summary::-webkit-details-marker { display: none; }
.favorite-journal summary::after { content: '＋'; color: var(--brand, #2898d6); }
.favorite-journal[open] summary::after { content: '−'; }
.favorite-journal summary > span { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; }
.favorite-thought-title,.favorite-thought-head,.favorite-journal-editor > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.favorite-journal-source { margin-top: 8px; padding: 9px 0 10px; border-bottom: 1px solid var(--line); }
.favorite-journal-caption { display: block; font-size: 12px; color: var(--muted); }
.favorite-journal-source-path { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13px; line-height: 1.6; }
.favorite-journal-source-path > b { font-weight: 650; }
.favorite-journal-source-path > span { color: var(--muted); }
.favorite-journal-source-context { color: var(--muted); font-size: 12px; }
.favorite-journal-sort { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; font-size: 12px; }
.favorite-journal-sort > span:first-child { color: var(--muted); flex-shrink: 0; }
.favorite-journal-sort > span:last-child { overflow-wrap: anywhere; }
.favorite-journal-line { margin-top: 8px; }
.favorite-journal-line > span,.favorite-journal-muted,.favorite-thought time { color: var(--muted); }
.favorite-journal p { margin: 3px 0 0; overflow-wrap: anywhere; }
.favorite-journal-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.favorite-journal-tags > span { border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12px; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.favorite-journal-snapshot { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.favorite-journal-snapshot-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 6px 0 10px; }
.favorite-journal-snapshot-metrics > div { min-width: 0; padding-right: 5px; }
.favorite-journal-snapshot-metrics > div + div { padding-left: 8px; border-left: 1px solid var(--line); }
.favorite-journal-snapshot-metrics dt { color: var(--muted); font-size: 12px; font-weight: 400; }
.favorite-journal-snapshot-metrics dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.favorite-journal-tag-group + .favorite-journal-tag-group { margin-top: 8px; }
.favorite-journal button { font-family: inherit; font-size: 12px; line-height: 1.5; color: var(--brand,#2898d6); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; min-height: 32px; cursor: pointer; }
.favorite-journal button:focus-visible,.favorite-journal summary:focus-visible { outline: 2px solid var(--brand,#2898d6); outline-offset: 2px; }
.favorite-journal button:disabled { opacity: .6; cursor: wait; }
.favorite-journal-matrix-button { margin-top: 10px; }
.favorite-thought-title { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.favorite-thought { padding: 9px 0; border-bottom: 1px solid var(--line); }
.favorite-thought-head time { font-size: 12px; }
.favorite-thought-head > div { display: flex; gap: 6px; }
.favorite-thought p { white-space: pre-wrap; }
.favorite-journal [data-journal-editor] { margin-top: 9px; }
.favorite-journal textarea { display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 88px; margin: 5px 0 7px; font: inherit; font-size: 14px; line-height: 1.6; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); }
.favorite-journal [data-journal-editor] > div { display: flex; align-items: center; gap: 6px; }
.favorite-journal [data-journal-error] { flex: 1; color: var(--red,#c04154); }
.favorite-journal-matrix-scroll { overflow-x: auto; margin-top: 8px; }
.favorite-journal table { border-collapse: collapse; width: 100%; min-width: 400px; font: inherit; font-size: 12px; }
.favorite-journal th,.favorite-journal td { border-bottom: 1px solid var(--line); padding: 8px 5px; text-align: center; }
.favorite-journal td small { display: block; font-size: inherit; color: var(--muted); }
.favorite-journal pre { white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; }
.favorite-journal [hidden] { display: none !important; }
@media (pointer:coarse) { .favorite-journal button,.favorite-journal summary { min-height: 40px; } .favorite-journal textarea { font-size: 16px; } }
