/* Tea O Plus Finance home (fin-home.js) */
.fh-total { margin-left: auto; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fh-accs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fh-acc { display: grid; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fh-acc span { font-size: 13px; color: var(--muted); }
.fh-acc b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fh-acc:hover { background: var(--hover); }
.fh-chart { width: 100%; height: auto; display: block; }
.fh-area { fill: var(--tint); stroke: none; }
.fh-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.fh-low { fill: var(--surface); stroke: var(--red); stroke-width: 2.5; }
.fh-zero { stroke: var(--red); stroke-dasharray: 4 4; }
.fh-fix { stroke: var(--gold); stroke-width: 1; opacity: .7; }
.fh-ax { font-size: 11px; fill: var(--muted); }
.fh-fc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-sm); margin: 10px 0; }
.fh-fc > div { padding: 10px 12px; display: grid; gap: 2px; }
.fh-fc > div + div { border-left: 1px solid var(--line); }
.fh-fc span, .fh-fc small { font-size: 12.5px; color: var(--muted); }
.fh-fc b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fh-up { color: var(--green); font-size: 12.5px; font-weight: 700; }
.fh-down { color: var(--red); font-size: 12.5px; font-weight: 700; }
.fh-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; height: 140px; align-items: end; }
.fh-months > div { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.fh-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fh-bars i { display: block; width: 40%; max-width: 18px; background: var(--navy); border-radius: 3px 3px 0 0; min-height: 1px; }
.fh-bars i.n { background: var(--green); }
.fh-bars i.n.neg { background: var(--red); }
.fh-months small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; min-height: 2.6em; }
.fh-key { display: inline-block; width: 10px; height: 10px; background: var(--navy); border-radius: 2px; margin: 0 4px 0 0; vertical-align: -1px; }
.fh-key.n { background: var(--green); margin-left: 10px; }
.fh-h { margin: 14px 0 2px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
a.kv { color: var(--ink); text-decoration: none; }
a.kv:hover { background: var(--hover); }
.red { color: var(--red); }
.note.bad { color: var(--red); font-weight: 600; margin: 6px 0; }
@media (max-width: 560px) { .fh-fc { grid-template-columns: 1fr; } .fh-fc > div + div { border-left: 0; border-top: 1px solid var(--line); } .fh-total { font-size: 18px; } }
