/* Blok 1 (Jonáš): kompaktní řádky úkolů (B8), sekce Hotovo pod listem (B1), horní menu (A5), rozbalitelné Projekty v menu (A2), filtr projektu (A1). */

/* B8: na počítači jsou štítky a metadata ve stejném řádku jako název, řádek je nižší */
@media (min-width: 769px) and (pointer: fine) {
  .trow { padding-block: 5px; min-height: 40px; }
  .t-main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
  .t-main .t-meta { margin-top: 0; gap: 4px 8px; }
  .t-main .t-name { flex: 0 1 auto; }
  .t-side { gap: 8px; }
}

/* B1: hotové úkoly pod listem */
.ldone { margin-top: 6px; }
.ldone-h { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 6px; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 6px; }
.ldone-h:hover { background: var(--surface-2); color: var(--text); }
.ldone-h svg { width: 14px; height: 14px; }
.ldone .trows { margin-top: 4px; opacity: .92; }

/* A5: horní menu (Domů, Projekty) a akce vpravo */
.topnav { display: none; align-items: center; gap: 2px; margin-right: 8px; }
.topnav a, .topnav button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-decoration: none; }
.topnav a:hover, .topnav button:hover { background: var(--surface-2); color: var(--text); }
.topnav a.on, .topnav button.on { background: var(--primary-soft); color: var(--primary); }
.topnav svg { width: 16px; height: 16px; }
.topnav { flex-shrink: 0; } .topnav a, .topnav button { white-space: nowrap; }
@media (min-width: 1101px) { .topnav { display: flex; } .tb-title { display: none; } }
.tb-user { display: none; }
@media (min-width: 769px) { .tb-user { display: inline-flex; } }

/* A2: Projekty v menu se rozbalí, stránka se neotevře */
.nav-group { display: flex; flex-direction: column; }
.nav-item.has-sub { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.nav-item.has-sub .chev { margin-left: auto; width: 14px; height: 14px; opacity: .7; transition: transform var(--t-fast); }
.nav-item.has-sub[aria-expanded="true"] .chev { transform: rotate(90deg); }
.nav-sub { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px 6px; }
.nav-sub[hidden] { display: none; }
.nav-sub .nav-all { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.nav-sub .nav-all:hover { background: var(--surface-2); color: var(--text); }

/* A1: filtr projektu v Moje úkoly */
.my-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-filter .chip .sq { width: 9px; height: 9px; }
.sidebar .nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav-sub.nav-projects { flex: none; overflow: visible; padding: 2px 0 6px 6px; }
.nav-item.has-sub.on:not([aria-expanded="true"]) { background: var(--primary-soft); }

/* B3: další řešitelé a jejich čas */
.coa-box { display: flex; flex-direction: column; gap: 6px; }
.coa-row { display: flex; align-items: center; gap: 8px; }
.coa-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.coa-est { width: 110px; flex: none; }
.coa-mode { margin-top: 4px; }
