.tr-page {
    width: min(940px, 100%);
    padding: clamp(22px, 5vw, 44px);
    border-radius: var(--radius-lg);
}

.tr-report { margin-bottom: 2rem; }
.tr-report h3 { font-size: 2rem; }
.tr-desc, .tr-notes { color: var(--muted); }
.tr-table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 14px; }
.tr-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tr-table th, .tr-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.tr-table tbody tr:last-child td { border-bottom: 0; }
.tr-table thead { color: #fff; background: rgba(255, 255, 255, .08); }
.tr-row--income { background: rgba(45, 212, 191, .07); }
.tr-row--expense { background: rgba(251, 113, 133, .07); }
.tr-row--balance_start, .tr-row--balance_end { background: var(--subtle); font-weight: 700; }
.tr-row--total_income { background: rgba(45, 212, 191, .15); font-weight: 700; }
.tr-row--total_expenses { background: rgba(251, 113, 133, .15); font-weight: 700; }
.tr-archive { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tr-archive h4 { font-size: 1.4rem; }
.tr-archive ul { display: flex; flex-wrap: wrap; gap: 8px; margin: .8rem 0 0; padding: 0; list-style: none; }
.tr-archive li a { display: block; padding: .42rem .7rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.tr-partner { margin-top: 1.5rem; padding-block: clamp(20px, 3vw, 26px); }
.tr-partner-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.tr-partner h3 { margin: .25rem 0 .4rem; font-size: 1.4rem; }
.tr-partner p { margin: 0; color: var(--muted); font-size: .84rem; }
.tr-partner .tr-partner-disclosure { margin-top: .85rem; max-width: 72ch; font-size: .72rem; line-height: 1.6; }
.tr-partner-link { display: inline-flex; flex-shrink: 0; gap: .65rem; align-items: center; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--fg_color); font-size: .8rem; text-decoration: none; }
.tr-partner-link:hover { background: var(--surface-raised); opacity: 1; }
@media (max-width: 560px) { .tr-partner-row { align-items: flex-start; flex-direction: column; gap: 1rem; } }
