/* Stránka pro Terku (v2.38) – staví na style.css, tady jen doplňky */
.tk-main { max-width: 760px; margin: 0 auto; padding: 22px 16px 60px; }
.tk-owner-note { background: var(--blue-soft); border: 1px solid var(--blue); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px; font-size: 13.5px; }
.tk-owner-note a { color: var(--text); font-weight: 600; }

.tk-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--purple); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tk-card.st-active { border-left-color: var(--green); }
.tk-card.st-waiting { border-left-color: var(--yellow); }
.tk-card.st-late { border-left-color: var(--red); }
.tk-card.done { opacity: .6; border-left-color: var(--border); }
.tk-state { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.tk-state.st-active { background: var(--green-soft); color: var(--green); }
.tk-state.st-waiting { background: rgba(251,191,36,.18); color: #d97706; }
.tk-state.st-late { background: var(--red-soft); color: var(--red); }
.tk-actions { gap: 10px; flex-wrap: wrap; }

.tk-card.done .tk-title { text-decoration: line-through; }
.tk-head { display: flex; align-items: flex-start; gap: 12px; }
.tk-check { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }
.tk-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.tk-instr { white-space: pre-wrap; word-break: break-word; line-height: 1.5; font-size: 14.5px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.tk-instr a { color: var(--blue); }
.tk-sec { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: -6px; }
.tk-video { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; text-decoration: none; }
.tk-note label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.tk-note textarea { width: 100%; min-height: 54px; resize: vertical; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font: inherit; font-size: 14px; }
.tk-actions { display: flex; justify-content: flex-end; }
.tk-done-btn { background: var(--green); color: #fff; font-weight: 600; }
.tk-card.done .tk-done-btn { background: var(--bg-input); color: var(--text-dim); border-color: var(--border); }

.tk-done-wrap { margin-top: 32px; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tk-filters select, .tk-filters input { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text); font: inherit; font-size: 13.5px; }
.tk-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.tk-month { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); margin: 16px 0 6px; }
.tk-month:first-child { margin-top: 0; }
.tk-done-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: var(--radius-sm); margin-bottom: 8px; }
.tk-done-main { min-width: 0; }
.tk-done-title { font-weight: 600; word-break: break-word; }
.tk-done-note { font-size: 13px; color: var(--text-dim); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .tk-filters select, .tk-filters label { flex: 1 1 100%; } .tk-filters input { flex: 1; } }

.tk-login { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 500; }
.tk-login-box { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 18px; padding: 36px 28px; width: 100%; max-width: 360px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.tk-login-icon { font-size: 34px; }
.tk-login-box p { color: var(--text-dim); font-size: 13.5px; }
.tk-login-box input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; color: var(--text); font: inherit; }
.tk-login-box .btn { justify-content: center; padding: 13px; }
.tk-login-box small { color: var(--text-faint); font-size: 11.5px; }
.tk-login-err { color: var(--red); font-size: 13px; }

@media (max-width: 600px) {
  .app-header { padding: 12px 16px; }
  .header-title h1 { font-size: 19px; }
  .tk-actions .btn { width: 100%; justify-content: center; }
}

/* hlasové zprávy (v2.45) */
.tk-audio { display: flex; flex-direction: column; gap: 8px; }
.tk-audio-item { display: flex; align-items: center; gap: 10px; }
.tk-audio-item audio { flex: 1; min-width: 0; height: 40px; }
.tk-audio-num, .tk-audio-dur { font-size: 12.5px; color: var(--text-dim); flex-shrink: 0; }
