/* Раздел «Траты» (приставка sp-) */
:root{--sp-ok:#1f7a4d;--sp-wait:#b26a00;--sp-bar:#c9cdf4}
:root[data-theme=dark]{--sp-ok:#6fcf97;--sp-wait:#f0b450;--sp-bar:#3b4170}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--sp-ok:#6fcf97;--sp-wait:#f0b450;--sp-bar:#3b4170}}
.sp-nav{display:flex;align-items:center;gap:6px;flex:none}
.sp-ib{width:var(--h-m);height:var(--h-m);border-radius:50%;background:var(--card);color:var(--ink);display:flex;align-items:center;justify-content:center}
.sp-ib:disabled{opacity:.35}
.sp-nav .mini{display:flex;align-items:center;gap:4px}
.sp-nav .mini svg{width:16px;height:16px}
.sp-tot{display:flex;flex-direction:column;gap:12px}
.sp-big{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sp-big b{font-size:32px;line-height:38px;font-weight:700}
.sp-big span{font-size:var(--fs-s);color:var(--mute)}
.sp-curs{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.sp-curs div{background:var(--bg);border-radius:var(--r-m);padding:10px;min-width:0}
.sp-curs small{display:block;font-size:var(--fs-xs);color:var(--mute)}
.sp-curs b{display:block;font-size:var(--fs-m);font-weight:700;margin:2px 0;overflow-wrap:anywhere}
.sp-note{margin:0;font-size:var(--fs-s);line-height:18px;color:var(--ink2,var(--mute))}
.sp-h{margin:0 0 12px;font-size:17px;font-weight:700}
.sp-days{display:flex;align-items:flex-end;gap:2px;height:96px}
.sp-bar{flex:1;min-width:2px;border-radius:3px;background:var(--sp-bar)}
.sp-bar.zero{background:var(--line)}
.sp-bar.now{background:var(--accent)}
.sp-axis{display:flex;justify-content:space-between;font-size:var(--fs-xs);color:var(--mute);margin:4px 0 8px}
.sp-cat{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.sp-cat-t{display:flex;justify-content:space-between;gap:8px;font-size:var(--fs-b)}
.sp-cat small{font-size:var(--fs-xs);color:var(--mute);font-weight:400}
.sp-cat small.sp-warn{color:var(--sp-wait)}
.sp-track{height:8px;background:var(--soft);border-radius:4px;overflow:hidden}
.sp-track span{display:block;height:8px;border-radius:4px;background:var(--accent)}
.sp-track span.fast{background:var(--sp-wait)}
.sp-track span.over{background:var(--red)}
.sp-list{padding-top:4px;padding-bottom:4px}
.sp-row{width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border-bottom:1px solid var(--soft);padding:6px 0;color:var(--ink)}
.sp-row:last-child{border-bottom:none}
.sp-row>span{display:flex;flex-direction:column;min-width:0}
.sp-row-t{font-size:var(--fs-b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-row small{font-size:var(--fs-xs);color:var(--mute)}
.sp-row b{flex:none;font-size:var(--fs-b);font-weight:700}
.sp-more{width:100%;min-height:var(--h-m);color:var(--accent-ink);font-weight:var(--wm)}
.sp-ntn{display:flex;align-items:center;gap:10px;margin:14px 4px 0;font-size:var(--fs-s)}
.sp-ntn>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.sp-ntn small{font-size:var(--fs-xs);color:var(--mute)}
.sp-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--line)}
.sp-dot.ok{background:var(--sp-ok)}.sp-dot.wait{background:var(--sp-wait)}.sp-dot.bad{background:var(--red)}
.sp-foot{margin:12px 4px 0;font-size:var(--fs-xs);line-height:16px;color:var(--mute)}
.sp-pv{margin-top:10px;background:var(--bg);border-radius:var(--r-l);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.sp-pv-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sp-pv-top b{font-size:26px;line-height:32px;font-weight:700}
.sp-pv-top span,.sp-pv small{font-size:var(--fs-xs);line-height:16px;color:var(--mute)}
.sp-pv-eq{font-size:var(--fs-b);color:var(--ink)}
.sp-pv .sp-seg{margin-top:2px;background:var(--soft)}
.sp-seg button{height:auto;min-height:40px;padding:4px 2px;line-height:1.2}
.sp-how{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:var(--fs-b);line-height:21px}
#pvx:not(:empty)+.hint{display:none}
@media (max-height:740px){.sp-pv{padding:10px 12px;gap:6px}.sp-pv-top b{font-size:22px;line-height:28px}}
.sp-head{flex-wrap:nowrap}.sp-head>div:first-child{flex:1 1 auto;min-width:0}
