/* Threads: cobertura por dia. Usa as variáveis de tema de style.css. */
.th-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg-app); color: var(--text-primary); font-family: var(--font-family); }
.th-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--bg-sidebar-header); border-bottom: 1px solid var(--border-color); }
.th-home { color: var(--text-link); text-decoration: none; font-size: 14px; white-space: nowrap; }
.th-brand { flex: 1; min-width: 0; font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-brand strong { color: var(--text-primary); font-size: 17px; margin-right: 6px; }
.th-actions { display: flex; align-items: center; gap: 8px; }
.th-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; }
.th-side { display: flex; flex-direction: column; min-height: 0; background: var(--bg-sidebar); border-right: 1px solid var(--border-color); }
.th-search { padding: 10px 12px; }
.th-search input { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px; border: 0; background: var(--bg-sidebar-header); color: var(--text-primary); font: inherit; font-size: 14px; }
.th-list { flex: 1; overflow-y: auto; padding-bottom: 16px; }
.th-vol { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin: 4px 16px 0; }
.th-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.th-bar { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--border-color); }
a.th-col .th-bar { background: var(--accent-green); }
a.th-col:hover .th-bar, a.th-col[aria-current="true"] .th-bar { background: var(--accent-gold); }
.th-axis { display: flex; justify-content: space-between; margin: 4px 16px 6px; font-size: 11px; color: var(--text-muted); }
.th-sep { padding: 12px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.th-item { display: flex; gap: 12px; padding: 10px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-color); }
.th-item:hover { background: var(--bg-hover-chat); }
.th-item[aria-current="true"] { background: var(--bg-active-chat); }
.th-ring { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--accent-green); font-size: 12px; font-weight: 700; }
.th-item-body { flex: 1; min-width: 0; }
.th-item-date { display: block; font-size: 12px; color: var(--text-secondary); }
.th-item-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; line-height: 1.35; }
.th-empty, .th-placeholder { padding: 32px 16px; text-align: center; color: var(--text-secondary); }
.th-day { overflow-y: auto; background: var(--bg-chat); }
.th-card { max-width: 760px; margin: 20px auto; padding: 24px 26px 28px; background: var(--bg-sidebar); border: 1px solid var(--border-color); border-radius: 12px; }
.th-back { display: none; color: var(--text-link); text-decoration: none; font-size: 22px; }
.th-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.th-card h1 { margin: 6px 0 8px; font-size: 24px; line-height: 1.2; }
.th-card h2 { margin: 24px 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.th-lead, .th-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.th-note { margin-bottom: 10px; font-size: 13px; }
.th-facts { display: flex; flex-direction: column; gap: 8px; }
.th-fact { padding: 10px 12px; border-left: 3px solid var(--accent-gold); background: var(--bg-bubble-in); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.45; }
.th-thread { list-style: none; margin: 0; padding: 0; position: relative; }
.th-thread::before { content: ""; position: absolute; left: 18px; top: 20px; bottom: 20px; width: 2px; background: var(--border-color); }
.th-post { position: relative; display: flex; gap: 12px; padding: 10px 0; }
.th-av { flex: none; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sidebar-header); border: 2px solid var(--bg-sidebar); box-shadow: 0 0 0 1px var(--border-color); font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.th-post-body { flex: 1; min-width: 0; }
.th-post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.th-post-title { display: block; margin-top: 2px; font-size: 16px; line-height: 1.38; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.th-post-title:hover { text-decoration: underline; color: var(--text-link); }
.th-post-meta { margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.th-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--bg-sidebar-header); font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.th-chip.th-summary, .th-chip.th-media { font-style: italic; }
.th-recs { display: flex; flex-direction: column; gap: 8px; }
.th-rec { display: block; padding: 9px 12px; border-radius: 8px; background: var(--bg-bubble-in); border: 1px solid var(--border-color); color: inherit; text-decoration: none; }
.th-rec:hover { border-color: var(--accent-green); }
.th-rec-head { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; }
.th-rec-text { font-size: 14px; line-height: 1.4; }
.th-more summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--text-link); }
.th-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; }
.th-nav a { color: var(--text-link); text-decoration: none; font-size: 14px; }

@media (max-width: 900px) {
  .th-main { grid-template-columns: minmax(0, 1fr); }
  .th-day { display: none; }
  .th-app.show-day .th-side { display: none; }
  .th-app.show-day .th-day { display: block; }
  .th-card { margin: 0; border-radius: 0; border: 0; padding: 16px 16px 28px; min-height: 100%; box-sizing: border-box; }
  .th-back { display: inline-block; margin-bottom: 6px; }
  .th-brand span { display: none; }
}
