/* Net-worth tracker (/tools/net-worth-tracker). Extends costcalc.css + dti list styles. */
.nw-shell .cc-panel + .cc-panel { margin-top: 16px; }
.nw-shell .cc-card + .cc-card { margin-top: 16px; }
.nw-status { font-size: 13px; color: var(--up, #087a55); min-height: 18px; margin: 4px 0 0; }
.nw-actions { flex-wrap: wrap; }
.nw-card-h { font-size: 14px; margin: 0 0 10px; }
.nw-list-h { font-size: 12.5px; color: var(--muted, #586777); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .06em; }

.nw-items { list-style: none; margin: 0 0 6px; padding: 0; }
.nw-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--paper-deep, #e7edf2); font-size: 14px; flex-wrap: wrap; }
.nw-item:last-child { border-bottom: 0; }
.nw-item-name { flex: 1 1 8em; min-width: 5em; overflow-wrap: break-word; }
.nw-item-acts { display: inline-flex; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.nw-item-cat { font-style: normal; font-size: 11.5px; color: var(--muted, #586777); border: 1px solid var(--line, #c8d2dc); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.nw-item b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-empty { font-size: 13px; color: var(--muted, #586777); padding: 6px 0; }

.nw-mini { padding: 5px 10px; border: 1px solid var(--line, #c8d2dc); border-radius: 8px; background: transparent; font-size: 12px; cursor: pointer; color: inherit; white-space: nowrap; }
.nw-mini:hover { border-color: var(--signal, #c6372c); color: var(--signal, #c6372c); }
.nw-del:hover { border-color: var(--down, #c6372c); color: var(--down, #c6372c); }

.nw-io { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nw-split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 4px; }
@media (max-width: 560px) { .nw-split { grid-template-columns: minmax(0, 1fr); } .nw-donut-wrap { max-width: 220px; margin: 0 auto; } }
.nw-donut-wrap { margin: 0; }
.nw-donut-wrap svg { display: block; width: 100%; height: auto; }
.nw-legend { list-style: none; margin: 0; padding: 0; }
.nw-legend li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--paper-deep, #e7edf2); font-size: 13.5px; }
.nw-legend li:last-child { border-bottom: 0; }
.nw-legend i { flex: 0 0 auto; width: 14px; height: 10px; border-radius: 2px; align-self: center; }
.nw-legend .nw-lg-name { flex: 1 1 auto; min-width: 0; }
.nw-legend b { font-variant-numeric: tabular-nums; }
.nw-legend em { font-style: normal; color: var(--muted, #586777); font-size: 12px; font-variant-numeric: tabular-nums; }
.nw-chart { margin: 0; }
.nw-chart svg { display: block; width: 100%; height: auto; }

.nw-snaps { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.nw-snap { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--paper-deep, #e7edf2); font-size: 13px; }
.nw-snap:last-child { border-bottom: 0; }
.nw-snap b { min-width: 64px; }
.nw-snap span { flex: 1 1 auto; min-width: 0; color: var(--muted, #586777); font-size: 12.5px; }
.nw-snap em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-snap em.down { color: var(--down, #c6372c); }

[data-nw-out="net"].down { color: var(--down, #c6372c); }
input[type="file"].cc-input { padding: 8px 10px; }
