/* Akademia ManawaFlow — narzędzia: hub, Projektant sesji (z trybem sesji), Biblioteka narzędzi, Dziennik refleksji, Portfolio.
 * Wyłącznie zmienne motywu z app.css (jasny/ciemny). Telefon najpierw, od 1024 px szerzej. Cele dotykowe ≥ 44 px.
 * Druk: kontener #tl-print z nagłówkiem szkoły — reszta strony znika tylko na wydruku. */

.tl { max-width: 1040px; margin: 0 auto; }
.tl [hidden] { display: none !important; }
.tl h1 { margin-bottom: .35em; }
.tl-lead { max-width: 720px; }

/* dotyk ≥ 44 px w obrębie narzędzi */
.tl .btn-sm { min-height: 44px; }
.tl .icon-btn { width: 44px; height: 44px; }
.tl .seg button { min-height: 44px; }
.tl .tabs button { min-height: 46px; }
.tl .check { padding: 10px 0; }
.tl .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }

.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-head-main { flex: 1 1 320px; min-width: 0; }
.tl-head .saved { margin-top: 8px; min-height: 20px; }
.saved[data-st="error"], .saved[data-st="offline"] { color: var(--warn); font-weight: 700; }
.tl-actions { margin: 4px 0 16px; }
.tl-sec { margin-top: 14px; }
.tl-sec > * + * { margin-top: 12px; }
.tl-sec h2 { font-size: 1.1rem; }
.tl-sec h3 { font-size: 1rem; margin-top: 18px; }
.tl-seg { margin: 6px 0 14px; max-width: 100%; }
.tl-listcard { padding: 4px 14px; }
.tl-span { grid-column: 1 / -1; }
.tl-danger { color: var(--no); }
.tl-danger:hover { background: var(--no-t); color: var(--no); }
.tl-quote { padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--brass-t); border-radius: 0 10px 10px 0; margin: 8px 0; color: var(--ink); }
.tl-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.tl-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal); flex: none; }
.tl-ico.brass { background: var(--brass-t); color: var(--brass); }

/* ---------- hub ---------- */
.tl-tiles { margin-top: 18px; }
.tl-tile, .card.click.tl-tile { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; }
.tl-tile-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tl-tile-t { font: 600 1.08rem/1.3 var(--head); color: var(--ink); }
.tl-tile-d { font-size: .92rem; }
.tl-count { color: var(--teal); font-weight: 700; min-height: 1.3em; }
.tl-tile-go { color: var(--muted-2); align-self: center; flex: none; }
.tl-tile-sm .tl-ico { width: 44px; height: 44px; }
.tl-jlink { margin-top: 22px; }

/* ---------- Projektant: karta ---------- */
.tl-n { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-t); color: var(--teal); display: grid; place-items: center; font: 600 .95rem var(--head); flex: none; }
.tl-moves { margin-top: 8px; }
.tl-move { margin-top: 12px; padding: 14px 16px; }
.tl-move.off { background: var(--card-2); box-shadow: none; }
.tl-move.off .tl-move-title, .tl-move.off .tl-n { opacity: .6; }
.tl-move-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-move-title { flex: 1 1 200px; min-width: 0; }
.tl-move-title h3 { margin: 0; }
.tl-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink); }
.tl-switch input { width: 20px; height: 20px; accent-color: var(--teal); margin: 0; }
.tl-move-body { margin-top: 6px; }
.tl-move-body > * + * { margin-top: 12px; }
.tl-move-body > summary, .tl-details > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--teal); list-style: none; border-radius: 8px; }
.tl-move-body > summary::-webkit-details-marker, .tl-details > summary::-webkit-details-marker { display: none; }
.tl-move-body > summary::before, .tl-details > summary::before { content: ''; width: 8px; height: 8px; margin: 0 6px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.tl-move-body[open] > summary::before, .tl-details[open] > summary::before { transform: rotate(45deg); }
.tl-block { display: grid; gap: 6px; }
.tl-lbl { font-weight: 700; color: var(--ink); font-size: .92rem; }
.tl-qs { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.tl-qs li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-qs .tl-qn { font: 600 .85rem var(--head); color: var(--teal); width: 22px; flex: none; }
.tl-qs li > .field { flex: 1 1 220px; min-width: 0; width: auto; }
.tl-q-act { display: flex; gap: 4px; margin-left: auto; }
.tl-qs-empty { padding: 6px 0; }
.tl-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tl-add .field { flex: 1 1 220px; min-width: 0; width: auto; }
.tl-sugs { display: grid; gap: 6px; margin-top: 6px; }
.tl-sug-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-sug { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed var(--rule-2); background: transparent; color: var(--ink-2); cursor: pointer; text-align: left; font: 400 .9rem/1.35 var(--sans); }
.tl-sug:hover { border-color: var(--teal); color: var(--teal); }
.tl-sug svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.tl-fs { border: 1px solid var(--rule); border-radius: 12px; padding: 4px 14px 6px; margin: 0; display: grid; min-width: 0; }
.tl-fs legend { font-weight: 700; color: var(--ink); font-size: .92rem; padding: 0 6px; }
.tl-check { font-weight: 700; color: var(--ink); }
.tl-template h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.tl-template h3 svg { color: var(--teal); }
.tl-tpl { margin: 8px 0 12px; padding-left: 1.3em; }
.tl-tpl li { margin: 4px 0; }
.tl-warn-real { color: var(--warn); background: var(--warn-t); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.tl-danger-zone { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); }
.tl-lab { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.tl-lab li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.tl-lab li svg { flex: none; margin-top: 2px; color: var(--info); }
.tl-lab li.ok { background: var(--ok-t); } .tl-lab li.ok svg { color: var(--ok); }
.tl-lab li.no { background: var(--warn-t); } .tl-lab li.no svg { color: var(--warn); }

/* ---------- podsumowania (druk, portfolio) ---------- */
.tl-dl { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.tl-dl dt { font-weight: 700; color: var(--ink); font-size: .9rem; }
.tl-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tl-dl .tl-dl { grid-template-columns: 1fr; gap: 2px; margin: 4px 0; }
@media (max-width: 560px) { .tl-dl { grid-template-columns: 1fr; gap: 2px; } .tl-dl dd { margin-bottom: 8px; } }
.tl-sub { font-weight: 700; color: var(--ink); margin: 12px 0 4px; font-size: .92rem; }
.tl-sum h2 { font-size: 1.1rem; margin-top: 1.2em; padding-top: .7em; border-top: 1px solid var(--rule); }
.tl-sum h3 { font-size: 1rem; margin-top: 1em; }
.tl-sum-move { margin: 10px 0; }
.tl-sum-qs, .tl-sum-vals { padding-left: 1.3em; margin: 4px 0; }
.tl-sum-qs li, .tl-sum-vals li { margin: 4px 0; }
.tl-ticklist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.tl-ticklist li { display: flex; gap: 8px; align-items: flex-start; }
.tl-ticklist svg { color: var(--ok); flex: none; margin-top: 4px; }
.tl-notes-sum { padding-left: 1.1em; margin: 6px 0; }
.tl-notes-sum li { margin: 4px 0; overflow-wrap: anywhere; }
.tl-big { font: 600 1.05rem var(--head); color: var(--ink); }
.tl-big b { font-size: 2rem; color: var(--teal); }
.tl-gen { padding-left: 1.2em; margin: 4px 0; }
.tl-origin { margin-top: 18px; }
.tl-doc { margin-top: 6px; }
.tl-table { border-collapse: collapse; width: 100%; max-width: 520px; font-size: .92rem; margin: 10px 0; }
.tl-table th, .tl-table td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.tl-table th { color: var(--ink); }
.tl-sum-chart { max-width: 420px; margin: 0; }

/* ---------- Projektant: tryb sesji (widok skupiony, bez nawigacji) ---------- */
.tl-live { max-width: 1280px; padding: calc(8px + var(--safe-t)) 16px calc(28px + var(--safe-b)); }
.tl-live-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.tl-live-title { flex: 1 1 140px; min-width: 0; }
.tl-live-title b { display: block; font: 600 1.05rem/1.2 var(--head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-live-title small { color: var(--muted); }
.tl-exit { padding-left: 8px; padding-right: 12px; }
.tl-timer { min-height: 48px; padding: 2px 4px 2px 14px; }
.tl-time { font: 600 1.35rem/1 var(--head); font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.tl-timer small { font: 700 .74rem/1.2 var(--sans); color: var(--muted); max-width: 9.5em; }
.tl-timer.run small { color: var(--teal); }
.tl-timer.warn { background: var(--warn-t); color: var(--warn); }
.tl-timer.over { background: var(--no-t); color: var(--no); }
.tl-timer.warn small, .tl-timer.over small { color: inherit; }
.tl-timer .icon-btn { color: inherit; }
.tl-live-contract { display: grid; gap: 8px; margin: 12px 0; }
.tl-live-contract > div { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); min-width: 0; overflow-wrap: anywhere; }
.tl-live-contract small { display: block; font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--brass); margin-bottom: 2px; }
.tl-live-contract span { color: var(--ink); }
@media (min-width: 720px) { .tl-live-contract { grid-template-columns: repeat(3, 1fr); } }
.tl-live-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .tl-live { padding-left: 28px; padding-right: 28px; }
  .tl-live-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; }
  .tl-live-side { position: sticky; top: 92px; }
}
.tl-tabs { margin-bottom: 12px; }
.tl-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.tl-tabs button.off { opacity: .6; }
.tl-tab-n { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; font: 600 .75rem var(--head); }
.tl-tabs .on .tl-tab-n { background: var(--teal); color: #fff; }
.tl-live-panel, .tl-live-side { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.tl-live-panel > * + * { margin-top: 12px; }
.tl-panel-head { display: flex; gap: 12px; align-items: flex-start; }
.tl-panel-head h2 { margin: 0; }
.tl-panel-head p { margin: 2px 0 0; }
.tl-ask { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tl-ask .check { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--rule); font-size: 1rem; color: var(--ink); }
.tl-ask input:checked + span { color: var(--muted); text-decoration: line-through; }
.tl-live-side h2 { font-size: 1.05rem; }
.tl-note-form { display: grid; gap: 8px; }
.tl-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.tl-notes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 4px 8px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--rule); }
.tl-note-meta { font: 700 .74rem var(--sans); color: var(--teal); grid-column: 1; }
.tl-note-text { grid-column: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-notes li .icon-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.tl-notes li.tl-notes-empty { display: block; background: none; border: 0; padding: 4px 0; }
.tl-live-foot { margin-top: 16px; }
.tl-live-done { padding-top: 40px; }

/* ---------- Biblioteka ---------- */
.tl-tools { margin-top: 4px; }
.tl-tool { position: relative; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.tl-tool:hover { border-color: var(--rule-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tl-tool h3 { margin: 4px 0 0; }
.tl-tool p { margin: 0; }
.tl-tool-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tl-tool-n { margin-top: auto !important; padding-top: 4px; }
.tl-stretch { color: var(--ink); text-decoration: none; }
.tl-stretch::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.tl-stretch:focus-visible { outline: none; }
.tl-stretch:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.tl-star { position: relative; z-index: 2; color: var(--muted-2); }
.tl-star.on { color: var(--brass); }
.tl-star.on svg { fill: currentColor; }
.tl-info { margin-top: 14px; }
.tl-info > .card + .card { margin-top: 0; }
.tl-info h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.tl-info h2 svg { color: var(--teal); }
.tl-ul { padding-left: 1.2em; margin: 0; }
.tl-ul li { margin: 6px 0; }
.tl-ul.ok li::marker { color: var(--ok); }
.tl-ul.no li::marker { color: var(--no); }
.tl-ul.q li { font-style: italic; color: var(--ink); }

/* karta narzędzia */
.tl-privacy { display: flex; gap: 8px; align-items: flex-start; }
.tl-privacy svg { flex: none; color: var(--warn); margin-top: 3px; }
.tl-errors ul { margin: 0; padding-left: 1.2em; }
.tl-errors p { margin: 0 0 4px; }

/* koło życia */
.tl-wheel { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .tl-wheel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .tl-wheel-chart { position: sticky; top: 80px; }
  .tl-wheel .tl-legend { grid-column: 1; }
  .tl-wheel .tl-areas { grid-column: 2; grid-row: 1 / span 2; }
}
.tl-wheel-chart { max-width: 520px; width: 100%; margin: 0 auto; }
.tl-radar { width: 100%; height: auto; display: block; overflow: visible; }
.tl-radar .rg { fill: none; stroke: var(--rule); stroke-width: 1; }
.tl-radar .rg-out { stroke: var(--rule-2); stroke-width: 1.5; }
.tl-radar .ax { stroke: var(--rule); stroke-width: 1; }
.tl-radar .sc { fill: var(--muted-2); font: 600 10px var(--sans); }
.tl-radar .s-now { fill: color-mix(in srgb, var(--teal) 22%, transparent); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.tl-radar .s-want { fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.tl-radar .dot { fill: var(--teal); stroke: var(--card); stroke-width: 2; }
.tl-radar .lb { fill: var(--ink-2); font: 600 13.5px var(--sans); }
.tl-radar .lv { fill: var(--teal); font: 700 13.5px var(--head); }
.tl-legend { display: flex; gap: 16px; justify-content: center; color: var(--muted); }
.tl-legend span::before { content: ''; display: inline-block; width: 18px; border-top: 3px solid var(--teal); vertical-align: middle; margin-right: 6px; }
.tl-legend .lg-want { display: none; }
.tl-legend .lg-want::before { border-top: 2px dashed var(--brass); }
.want-on .tl-legend .lg-want { display: inline; }
.tl-areas { display: grid; gap: 10px; }
.tl-area { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card-2); display: grid; gap: 2px; }
.tl-area-name { font-weight: 700; }
.tl-want { display: none; }
.want-on .tl-want { display: block; }
.tl-range { display: grid; grid-template-columns: 7.5em 1fr 2.2ch; align-items: center; gap: 10px; font-size: .82rem; line-height: 1.25; color: var(--muted); font-weight: 700; }
.tl-range input[type=range] { width: 100%; min-height: 44px; accent-color: var(--teal); margin: 0; cursor: pointer; }
.tl-want .tl-range input[type=range] { accent-color: var(--brass); }
.tl-range output { font: 600 1rem var(--head); color: var(--ink); text-align: right; }

/* skalowanie */
.tl-scale { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card-2); }
.tl-scale-row { display: grid; gap: 2px; }
.tl-scale-num { font: 600 2.6rem/1 var(--head); color: var(--teal); text-align: center; }
.tl-scale-row input[type=range] { width: 100%; min-height: 44px; accent-color: var(--teal); margin: 0; cursor: pointer; }
.tl-ticks { display: flex; justify-content: space-between; padding: 0 6px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.tl-hist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.tl-hist li { display: grid; grid-template-columns: 8em 1fr 2.2ch auto; align-items: center; gap: 10px; }
.tl-hist .bar { height: 10px; }
.tl-hist-d { font-size: .88rem; color: var(--muted); }

/* matryca decyzji */
.tl-mx-setup h3 { margin-top: 6px; }
.tl-elist { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; }
.tl-elist li { display: flex; gap: 6px; align-items: center; }
.tl-elist .field { flex: 1 1 auto; min-width: 0; width: auto; }
.tl-elist .tl-w { flex: 0 0 auto; width: 7.4em; }
.tl-mx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; }
.tl-mx { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .92rem; }
.tl-mx th, .tl-mx td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.tl-mx thead th { background: var(--card-2); font-weight: 700; color: var(--ink); }
.tl-mx thead th small { display: block; font-weight: 400; color: var(--muted); }
.tl-mx tbody th { color: var(--ink); font-weight: 700; max-width: 14em; overflow-wrap: anywhere; }
.tl-mx tr:last-child > * { border-bottom: 0; }
.tl-cell { width: 4.8em; padding: 8px; text-align: center; }
.tl-res { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 10px; }
.tl-res li { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; gap: 10px; align-items: center; }
.tl-res-n { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tl-res li.top .tl-res-n { color: var(--teal); }
.tl-res b { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .tl-res li { grid-template-columns: 1fr auto; } .tl-res .bar { grid-column: 1 / -1; grid-row: 2; } }

/* mapa wartości */
.tl-vals { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tl-val { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-2); font: 700 .9rem var(--sans); cursor: pointer; }
.tl-val:hover { border-color: var(--teal); }
.tl-val.sel { background: var(--teal-t); border-color: var(--teal); color: var(--teal); }
.tl-val.own { border-style: dashed; }
.tl-val[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.tl-val svg { width: 16px; height: 16px; }
.tl-vmax { color: var(--warn); font-weight: 700; }
.tl-rank { padding: 0; margin: 8px 0; }
.tl .order-item .mv { flex-direction: row; gap: 4px; }
.tl .order-item .mv button { width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.tl .order-item .mv button[disabled] { opacity: .35; cursor: default; }
.tl-rank .tl-top { border-color: var(--teal); background: var(--teal-tt); }
.tl-rank-sep { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 8px 4px 0; }
.tl-rank-empty { padding: 6px 0; }

/* perspektywy */
.tl-persp { margin: 8px 0; }
.tl-pcard { padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card-2); }
.tl-pc-h { font: 600 1rem var(--head); color: var(--teal); }
.tl-pcard small { font-style: italic; }

/* ---------- Dziennik i Portfolio ---------- */
.tl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 10px; }
.tl-toolbar .seg { margin: 0; }
.tl-search { position: relative; flex: 1 1 260px; min-width: 0; }
.tl-search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tl-search .field { padding-left: 42px; }
.tl-select { flex: 0 1 280px; min-width: 200px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.tl-tag { min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink-2); font: 700 .82rem var(--sans); cursor: pointer; }
.tl-tag.on { background: var(--teal-t); color: var(--teal); border-color: var(--teal); }
.tl-entries { display: grid; gap: 10px; }
.tl-entries > .card + .card { margin-top: 0; }
.tl-entry { padding: 0; }
.tl-entry-btn { display: grid; gap: 6px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r); color: inherit; font: inherit; }
.tl-entry-btn:hover { background: var(--card-2); }
.tl-entry-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-entry-t { font: 600 1.02rem/1.3 var(--head); color: var(--ink); }
.tl-entry-p { font-style: italic; }
.tl-entry-x { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-entry-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-entry-full { max-height: 50vh; overflow: auto; padding: 12px 14px; background: var(--card-2); border-radius: 12px; border: 1px solid var(--rule); margin: 10px 0; }
.tl-group .sec h2 { display: flex; align-items: center; gap: 8px; }
.tl-group .sec h2 svg { color: var(--teal); }
.tl-docview .tl-head .chips { margin-top: 4px; }

/* ---------- druk ---------- */
#tl-print { display: none; }
@media print {
  body.tl-printing > *:not(#tl-print) { display: none !important; }
  body.tl-printing #tl-print { display: block !important; }
  #tl-print {
    --ink: #162C33; --ink-2: #23343A; --muted: #5B6D72; --muted-2: #7D8D91; --teal: #17605C; --teal-2: #1E7A74; --teal-3: #2C9A92;
    --teal-t: #E3EFEC; --teal-tt: #F0F6F4; --brass: #A77F4B; --brass-t: #F4ECDF; --bg: #fff; --bg-2: #E9EFED; --card: #fff; --card-2: #F8FAF9;
    --rule: #D6E2DE; --rule-2: #C2D2CD; --ok: #1F7A4D; --ok-t: #E2F3EA; --no: #B23A3A; --no-t: #F9E6E4; --warn: #9A6A12; --warn-t: #FBF0D9;
    --info: #2B5F86; --info-t: #E4EEF6;
    color: #23343A; background: #fff; font-size: 10.5pt; line-height: 1.5;
  }
  #tl-print h1 { font-size: 18pt; margin: 12pt 0 6pt; }
  #tl-print h2 { font-size: 13pt; break-after: avoid; }
  #tl-print h3 { font-size: 11pt; break-after: avoid; }
  #tl-print .card { box-shadow: none; border-color: #ccc; }
  #tl-print .tl-info { display: block; }
  #tl-print .tl-info > section { margin: 0 0 8pt; }
  #tl-print .tl-mx-wrap { overflow: visible; border: 0; }
  #tl-print .tl-wheel-chart { max-width: 330px; position: static; }
  #tl-print .callout { break-inside: avoid; }
  .tl-pr-head { display: flex; align-items: center; gap: 12pt; padding-bottom: 8pt; border-bottom: 2px solid var(--brass); }
  .tl-pr-brand { flex: 1; }
  .tl-pr-brand b { display: block; font: 600 13pt var(--head); color: var(--ink); }
  .tl-pr-brand small { color: var(--muted); font-size: 8.5pt; }
  .tl-pr-meta { text-align: right; font-size: 9pt; color: var(--muted); }
  .tl-pr-foot { margin-top: 18pt; padding-top: 8pt; border-top: 1px solid var(--rule); font-size: 8.5pt; color: var(--muted); }
  .tl-pr-doc { margin: 10pt 0 14pt; padding-bottom: 10pt; border-bottom: 1px solid var(--rule); }
  .tl-actions, .tl-danger-zone, .tl-live-head .btn, .tl-q-act, .tl-add, .tl-sugs { display: none !important; }
  @page { margin: 14mm; }
}
