/* Tendências */
.tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tr-ihead { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.tr-ihead > label { margin: 0; min-width: 240px; }
.tr-ihead .sw-row { margin-left: auto; padding-bottom: 10px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 12px 0; }
.tr-card { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tr-card h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
.tr-card p { margin: 0; }
.tr-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tr-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #262626; color: var(--muted); }
.tr-badge.u-hoje { background: color-mix(in srgb, var(--err) 20%, transparent); color: #FCA5A5; }
.tr-badge.u-semana { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.tr-from { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tr-from.f-google::before, .tr-from.f-tiktok::before, .tr-from.f-web::before, .tr-from.f-segmento::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 99px; margin-right: 5px; background: var(--muted); }
.tr-from.f-google::before { background: #60A5FA; } .tr-from.f-tiktok::before { background: #F472B6; } .tr-from.f-web::before { background: var(--ok); }
.tr-hook { font-style: italic; color: var(--fg); }
.tr-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tr-mk { display: flex; gap: 6px; align-items: center; }
.tr-mk input { margin: 0; width: 150px; padding: 6px 8px; font-size: 13px; }
.tr-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tr-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tr-row:last-of-type { border-bottom: 0; }
.tr-rank { width: 24px; text-align: right; color: var(--muted); font-weight: 700; font-size: 13px; flex: none; }
.tr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-body a { color: var(--fg); font-weight: 600; font-size: 14px; }
.tr-body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.tr-num { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-spark { width: 70px; height: 22px; color: var(--accent); flex: none; }
/* bloco do Início */
.tr-mini { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.tr-src { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.tr-pill { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, #60A5FA 14%, transparent); color: #BFDBFE; margin: 0 6px 6px 0; text-decoration: none !important; }
.tr-pill.tk { background: color-mix(in srgb, #F472B6 14%, transparent); color: #FBCFE8; }
.tr-idea small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .tr-lists { grid-template-columns: 1fr; } .tr-ihead .sw-row { margin-left: 0; } }
.tr-lists > *, .tr-grid > * { min-width: 0; }
.tr-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 640px) { .tr-num { display: none; } .tr-spark { width: 44px; } }
.h-grid > * { min-width: 0; }
.tr-card { overflow: hidden; }
.tr-from { min-width: 0; }
