.graph130-toolbar{padding:14px;margin-bottom:12px;position:relative;z-index:4}
.graph130-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.graph130-heading h3{margin:0;font-size:14px}
.graph130-modes{display:flex;gap:4px;padding:3px;border:1px solid #d2dbe4;border-radius:7px;background:#f5f8fb;flex-wrap:wrap}
.graph130-modes button{min-height:34px!important;font-size:12px}
.graph130-controls{display:grid;grid-template-columns:minmax(110px,150px) minmax(150px,190px) minmax(160px,230px) minmax(120px,1fr);gap:10px;align-items:end;margin-top:14px}
.graph130-controls>label,.graph130-zoneField{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0;color:#536474}
.graph130-controls select,.graph130-controls input{width:100%;min-height:36px;max-width:100%;min-width:0}
.graph130-reset{justify-self:end}
.graph130-zonePicker{position:relative;color:#17212b}
.graph130-zonePicker>summary{min-height:36px;border:1px solid #cbd5df;border-radius:5px;padding:9px 10px;cursor:pointer;background:#fff;list-style:none}
.graph130-zonePicker>summary::after{content:" ▾";float:right;color:#64748b}
.graph130-zonePanel{position:absolute;top:calc(100% + 5px);left:0;z-index:15;width:min(420px,calc(100vw - 56px));max-height:55vh;overflow:auto;background:#fff;box-shadow:0 7px 22px #24364c26;border:1px solid #becbd8;border-radius:7px;padding:10px}
.graph130-zonePanel fieldset{border:0;border-top:1px solid #e0e6ec;padding:7px 0;margin:8px 0 0}
.graph130-zonePanel legend{font-size:12px;color:#536474;padding-right:8px}
.graph130-zoneActions{display:flex;gap:8px}
.graph130-zoneGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.graph130-zoneGrid label{display:flex;align-items:center;justify-content:center;gap:4px;min-height:40px;cursor:pointer;background:#f7f9fb;border:1px solid #d5dde5;border-radius:4px}
.graph130-zoneGrid label:has(input:checked){background:#e8f2ff;border-color:#8eb1da}
.graph130-zoneGrid input{width:15px;height:15px;margin:0}
.graph130-context{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;color:#536474;font-size:12px;margin-top:10px}
.graph130-context .lnk{font:inherit;color:#345675;text-decoration:underline;border:0;background:transparent;padding:2px;cursor:pointer}
.graph130-context>span+span{border-left:1px solid #d2dbe4;padding-left:14px}
.graph130-days{font-size:12px;margin-top:10px}
.graph130-days>summary{cursor:pointer;color:#345675}
.graph130-days .days130-fields{margin-top:10px}
.money130 .mu{color:#536474}
.money130-matrix{font-size:12px}
.money130-matrix th{min-width:190px}
.money130-matrix th:first-child{width:80px;min-width:80px;max-width:80px;position:sticky;left:0;z-index:2}
.money130-matrix td{padding:6px;vertical-align:top}
.money130-matrix tfoot th,.money130-matrix tfoot td{background:#edf3f8;border-top:2px solid #9cb2c8}
.money130-cell{width:100%;min-width:190px;display:block;text-align:left;background:transparent;border:0;padding:3px;color:inherit;font:inherit;cursor:pointer}
.money130-cell:hover{background:#edf5fe}
.money130-pair{display:grid;grid-template-columns:minmax(58px,1fr) auto;gap:5px 10px;font-size:12px}
.money130-pair>span{color:#536474}
.money130-pair>b{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.money130-pair small,.money130-cell small,.money130-totals small{display:block;white-space:normal;font-size:12px;font-weight:400;max-width:210px;color:#536474}
.money130-unknown{color:#875a1d;font-size:12px}
.money130-negative{color:#a02d2a!important}
.money130-carry{margin-top:6px;color:#875a1d!important}
.money130-totalGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:#d6e0e8;border:1px solid #d6e0e8}
.money130-totalGrid>div{background:#f8fafc;padding:12px}
.money130-totalGrid span{font-size:12px;color:#536474;display:block;margin-bottom:5px}
.money130-totalGrid strong{font-size:18px;font-variant-numeric:tabular-nums;display:block}
.money130-totals{margin:14px 0}
.money130-totals h3{font-size:12px!important;margin:8px 0}
.money130-whole{border-top:1px solid #d5dfe8;padding-top:8px;margin-top:20px}
.money130-detail{padding:12px;background:#f5f8fb;margin:12px 0}
.money130-gaps{margin-top:12px;font-size:12px}
#money-error130{color:#9b332a;font-size:12px;white-space:pre-wrap;margin:10px 0}
.mobile130 .graph130-modes button[aria-pressed="true"]{background:#2c4f78;color:#fff;border-color:#2c4f78}
@media(min-width:1000px){.money130-rowTotal{position:sticky;right:0;background:#f0f5fa;min-width:210px;z-index:2}}
@media(max-width:700px){
 .graph130-toolbar{padding:12px}
 .graph130-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .graph130-zoneField{grid-column:1 / -1}
 .graph130-reset{justify-self:stretch}
 .graph130-reset button{width:100%;min-height:38px}
 .graph130-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .graph130-modes button{white-space:normal;min-height:40px!important}
 .graph130-zonePanel{position:absolute;width:100%}
 .money130-totalGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .money130-totalGrid>div:last-child:nth-child(odd){grid-column:1 / -1}
 .money130-totalGrid strong{font-size:16px}
 .graph130-context{gap:6px 10px}
}

/* W136: compact graph toolbar only; no filtering/business logic changes. */
.graph130-toolbar{
 --graph136-xs:12px;
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;
 align-items:end;gap:6px 12px;padding:8px 12px;margin-bottom:8px;
}
.graph130-toolbar .graph130-heading{grid-column:1/-1;gap:6px}
.graph130-toolbar .graph130-heading h3{font-size:var(--graph136-xs)}
.graph130-toolbar .graph130-modes{padding:2px;gap:3px}
.graph130-toolbar .graph130-modes button{min-height:30px!important;padding:5px 10px}
.graph130-toolbar .graph130-controls{
 display:flex;flex-wrap:wrap;align-items:end;gap:6px 10px;margin:0;min-width:0;
}
.graph130-toolbar .graph130-controls>label,
.graph130-toolbar .graph130-zoneField{gap:2px;font-size:var(--graph136-xs)}
.graph130-toolbar .graph130-controls>label{flex:0 1 148px}
.graph130-toolbar .graph130-controls>label:first-child{flex-basis:120px}
.graph130-toolbar .graph130-zoneField{flex:0 1 180px}
.graph130-toolbar .graph130-controls>label select,
.graph130-toolbar .graph130-controls>label input{
 min-height:32px;height:32px;padding:4px 8px;font-size:var(--graph136-xs);
}
.graph130-toolbar .graph130-zonePicker>summary{
 min-height:32px;padding:6px 9px;font-size:var(--graph136-xs);
}
.graph130-toolbar .graph130-reset button{min-height:32px;padding:5px 9px;font-size:var(--graph136-xs)}
.graph130-toolbar .graph130-days{margin:0;font-size:var(--graph136-xs)}
.graph130-toolbar .graph130-days>summary{min-height:32px;display:flex;align-items:center;gap:5px}
.graph130-toolbar .graph130-days>summary::before{content:"▸"}
.graph130-toolbar .graph130-days[open]>summary::before{content:"▾"}
.graph130-toolbar .graph130-days[open]{grid-column:1/-1}
.graph130-toolbar .graph130-days .days130-fields{margin-top:4px;gap:6px 10px}
.graph130-toolbar .graph130-context{margin:0;gap:0;align-self:end}
.graph130-toolbar .graph130-context>span{display:none}
.graph130-toolbar .graph130-context .lnk{min-height:32px;white-space:nowrap}
.graph130-toolbar .event130-range-error{grid-column:1/-1;margin:0}
.graph130-toolbar .graph130-zoneGrid input{min-height:16px;width:16px;height:16px}
.graph130-toolbar :is(button,select,input,summary):focus-visible{
 outline:2px solid #345675;outline-offset:2px;
}
@media(min-width:1101px){
 .graph130-toolbar .graph130-controls>label,
 .graph130-toolbar .graph130-controls>label:first-child,
 .graph130-toolbar .graph130-zoneField{flex-direction:row;align-items:center;gap:6px;flex:0 0 auto}
 .graph130-toolbar .graph130-controls>label select{width:120px}
 .graph130-toolbar .graph130-controls>label input[type=month]{width:158px}
 .graph130-toolbar .graph130-controls>label:has([data-testid="event-kind-filter130"]) select{width:190px}
 .graph130-toolbar .graph130-controls>label:has([data-testid="event-status-filter130"]) select{width:160px}
 .graph130-toolbar .graph130-zonePicker{width:174px}
}
@media(min-width:701px) and (max-width:1100px){
 .graph130-toolbar{grid-template-columns:minmax(0,1fr) auto}
 .graph130-toolbar .graph130-controls{grid-column:1/-1}
}
@media(max-width:700px){
 .graph130-toolbar{grid-template-columns:minmax(0,1fr) auto;padding:8px;gap:6px 8px}
 .graph130-toolbar .graph130-heading{gap:6px}
 .graph130-toolbar .graph130-modes{gap:3px}
 .graph130-toolbar .graph130-modes button{min-height:44px!important;padding:6px}
 .graph130-toolbar .graph130-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
 .graph130-toolbar .graph130-zoneField{grid-column:auto}
 .graph130-toolbar .graph130-controls>label select,
 .graph130-toolbar .graph130-controls>label input,
 .graph130-toolbar .graph130-zonePicker>summary,
 .graph130-toolbar .graph130-reset button{min-height:44px;height:44px}
 .graph130-toolbar .graph130-reset button{white-space:normal}
 .graph130-toolbar .graph130-days>summary,
 .graph130-toolbar .graph130-context .lnk{min-height:44px}
 .graph130-toolbar .graph130-days[open]{grid-column:1/-1}
 .graph130-toolbar .graph130-zonePanel{width:min(320px,calc(100vw - 48px))}
 .graph130-toolbar .graph130-zoneGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .graph130-toolbar .graph130-zoneGrid label{min-height:44px}
 .graph130-toolbar .days130-fields{display:flex;flex-wrap:wrap}
 .graph130-toolbar .days130-fields label{min-width:0;flex:1 1 140px}
 .graph130-toolbar .days130-fields input{max-width:100%;min-height:44px}
 .graph130-toolbar .days130-fields button{min-height:44px}
}
