/* Proje günlüğü (salt okunur): Bugün satırı, Projeler bölümü, journal ekranı. Değerler styles.css değişkenlerinden. */
.td-journal-warn { flex: none; margin: 0; }
.jr { flex: none; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.jr-name { margin: 0; min-width: 0; font-size: 20px; line-height: 28px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-ro { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--accent-text); font-size: 12px; line-height: 16px; font-weight: 600; }

.jr-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.jr-seg__btn { height: var(--target); border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; font-weight: 500; }
.jr-seg__btn.is-on { background: var(--text); color: var(--bg); font-weight: 600; }

.jr-days { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jr-days__label { flex: 1; min-width: 0; text-align: center; }
.jr-days__title { font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.jr-days__sub { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-today { width: auto; flex: none; height: var(--target); min-height: var(--target); padding: 0 14px; font-size: 14px; }

.jr-rec { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 1px solid var(--line); }
.card > .jr-rec:first-child { border-top: 0; }
.jr-rec__head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.jr-rec__time { flex: none; font-size: 12px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-rec__title { margin: 0; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.jr-rec.is-old .jr-rec__title { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.jr-rec.is-old .jr-more summary, .jr-rec.is-old .jr-field dd { color: var(--muted); }
.jr-rec__note { margin: 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; white-space: pre-wrap; }
.jr-rec__lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.jr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-chips:empty { display: none; }
.jr-chip { display: inline-flex; align-items: center; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--muted-on-surface); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-chip--ok { color: var(--accent-text); }
.jr-chip--who { color: var(--text); }
.jr-chip--old { text-decoration: none; background: none; color: var(--muted); font-style: italic; }

.jr-more { min-width: 0; }
.jr-more summary { min-height: var(--target); display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--accent-text); list-style: none; }
.jr-more summary::-webkit-details-marker { display: none; }
.jr-more summary::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.12s ease; margin: 0 4px 0 2px; }
.jr-more[open] summary::before { transform: rotate(45deg); }
.jr-more summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.jr-fields { margin: 0 0 4px; display: flex; flex-direction: column; gap: 10px; }
.jr-field { min-width: 0; }
.jr-field dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jr-field dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* STATE.md düz metin: Markdown çevrilmez */
.jr-state { padding: 14px 16px; font-size: 14px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

@media (min-width: 700px) {
  .jr-rec { padding: 16px 20px; }
}
.row[data-jslug] .row__meta { white-space: normal; overflow: visible; text-overflow: clip; }
.row--static { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .jr-more summary::before { transition: none; } }
/* Projeler: kasa projesi yokken boş durum bölümü ekranın dibine itmesin */
.empty:has(~ .section) { flex: none; padding: 24px 0; }
