.page.wide{max-width:1440px}textarea{font:inherit;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);resize:vertical;padding:10px 12px}textarea:focus{border-color:var(--sage);box-shadow:0 0 0 3px var(--focus);outline:none}.spacer{flex:1}.mono{font-family:ui-monospace,Consolas,monospace;font-size:.85rem}.saved{color:var(--success);font-weight:500}.error.inline{padding:4px 10px}.actions.end{justify-content:flex-end}.wide-note{grid-column:1/-1}.page-head.mrp-head{flex-flow:wrap;justify-content:space-between;align-items:flex-end;gap:12px}.mrp-head-tools{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.inline-field{flex-direction:row;align-items:center;gap:8px;font-weight:400}.pill{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:6px 12px}.pill strong{color:var(--text)}.back-link{align-items:center;gap:4px;display:inline-flex}.stat-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);color:var(--text);align-items:baseline;gap:6px;padding:10px 16px;font-weight:400;display:inline-flex}.stat strong{font-size:1.15rem;font-weight:600}button.stat.link:hover{background:var(--surface-2);border-color:var(--sage-grey)}button.stat.link.on{background:var(--primary-soft);border-color:var(--sage)}.stat-actions{flex-wrap:wrap;gap:8px;margin-left:auto;display:flex}a.button.ghost-link{background:var(--surface);color:var(--text);border-color:var(--border-strong)}a.button.ghost-link:hover{background:var(--surface-2);border-color:var(--sage-grey)}.filters{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 20px;display:flex}.search-field{flex-direction:row;flex:240px;align-items:center;max-width:360px;position:relative}.search-field svg{color:var(--muted);pointer-events:none;position:absolute;left:11px}.search-field input{padding-left:36px}.filter-select{flex-direction:row;align-items:center;gap:6px;font-weight:400}.filter-select select{padding:7px 28px 7px 10px;font-size:.875rem}label.check.small{gap:6px;font-size:.85rem}.inset{margin:12px 20px 0}.bulk-bar{background:var(--primary-soft);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 20px;display:flex}.bulk-bar button{padding:6px 12px;font-size:.875rem}.bulk-bar button:last-child{margin-left:auto}.mrp-table th,.mrp-table td{padding:9px 10px}.mrp-table th:first-child,.mrp-table td:first-child{padding-left:18px}.mrp-table th.sel,.mrp-table td.sel{width:36px;padding-right:0}.mrp-table .num{text-align:right;white-space:nowrap}.mrp-table th.group{line-height:1.2}.mrp-table th .sub{letter-spacing:0;text-transform:none;font-size:.68rem;font-weight:500;display:block}.mrp-table th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.mrp-table th.sortable:hover{color:var(--text)}.mrp-table tr.clickable{cursor:pointer}.mrp-table tr.inactive td{opacity:.55}.freeze .mrp-table tr.inactive td{opacity:1;color:color-mix(in srgb, var(--text) 55%, var(--surface))}.freeze .mrp-table tr.inactive td>*{opacity:.55}.freeze .mrp-table tr.inactive .item-name{color:var(--text)}.mrp-table .code-col{text-align:center;white-space:nowrap;font-size:.85rem}.mrp-table th abbr{cursor:help;text-decoration:none}.mrp-table td.pair{font-variant-numeric:tabular-nums}.item-cell{min-width:200px;max-width:270px}.item-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;display:block;overflow:hidden}.item-meta{color:var(--muted);flex-wrap:wrap;gap:4px 10px;font-size:.78rem;display:flex}.tag{border:1px solid var(--border-strong);color:var(--muted);border-radius:999px;padding:0 8px;font-size:.72rem;display:inline-block}.tag.off{border-color:var(--warn);color:var(--warn)}.chips{gap:3px;display:inline-flex}.chip{background:var(--surface-2);min-width:24px;height:22px;color:var(--muted);border:1px solid var(--border);border-radius:6px;place-items:center;padding:0 5px;font-size:.75rem;font-weight:600;display:inline-grid}.chip.abc-A{background:var(--forest);border-color:var(--forest);color:var(--mint)}.chip.abc-B{background:var(--sage);border-color:var(--sage);color:#fff}.chip.abc-C{background:var(--primary-soft);border-color:var(--mint);color:var(--primary-hover)}.chip.xyz-X{color:var(--success);border-color:var(--success);background:0 0}.chip.xyz-Y{color:var(--warn);border-color:var(--warn);background:0 0}.chip.xyz-Z{color:var(--danger);border-color:var(--danger);background:0 0}.chip.ven{background:0 0}.chip.faint{opacity:.55}:where(:root[data-theme=dark]) .chip.abc-A{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}:where(:root[data-theme=dark]) .chip.abc-C{color:var(--text)}.sparkline path{fill:none;stroke:var(--sage);stroke-width:1.6px;stroke-linejoin:round;stroke-linecap:round}.sparkline circle{fill:var(--primary)}.spark-empty{background:var(--border);vertical-align:middle;width:64px;height:1px;display:inline-block}.diff{white-space:nowrap;font-size:.8rem;font-weight:500}.diff.zero{color:var(--muted)}.diff.up{color:var(--warn)}.diff.down{color:var(--primary)}.diff.big{border-radius:999px;padding:1px 7px}.diff.up.big{background:var(--warn-soft)}.diff.down.big{background:var(--primary-soft)}.pager{border-top:1px solid var(--border);justify-content:center;align-items:center;gap:12px;padding:12px;display:flex}.pager button{padding:6px 10px}.modal.small-modal{text-align:left;align-items:stretch;width:100%;max-width:440px}.modal.item-modal{width:100%;max-width:1120px;max-height:calc(var(--screen-h) * .92);text-align:left;align-items:stretch;gap:0;padding:0;overflow:hidden}.item-head{border-bottom:1px solid var(--border);align-items:flex-start;gap:12px;padding:18px 24px 14px;display:flex}.item-head-main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.item-head h2{font-size:1.25rem}.item-head-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.item-body{flex-direction:column;gap:18px;padding:20px 24px;display:flex;overflow-y:auto}.item-body>*{flex-shrink:0}.item-top[hidden]{display:none}.fact-strip{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;display:grid}.fact{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:2px;padding:10px 14px;display:flex}.fact-value{font-size:.9rem}.fact-value strong{margin-right:4px;font-weight:600}.item-top{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:18px;display:grid}.item-chart,.item-calc{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-2);flex-direction:column;gap:12px;padding:16px;display:flex}.item-chart h3{font-size:.9rem}.calc-compare{grid-template-columns:1fr 1fr;gap:10px;display:grid}.calc-box{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);flex-direction:column;gap:8px;padding:12px;display:flex}.calc-box.predict{border-color:var(--mint);background:var(--primary-softer)}.calc-pair{grid-template-columns:1fr 1fr;gap:8px;display:grid}.calc-pair>div{flex-direction:column;gap:2px;min-width:0;display:flex}.calc-pair strong{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:600}.calc-pair input{padding:6px 8px;font-size:1rem;font-weight:600}button.full{width:100%}.calc-lines{font-variant-numeric:tabular-nums;flex-direction:column;gap:4px;font-size:.85rem;display:flex}.item-tabs{margin:0;padding:0}.modal .item-tabs .tab{min-width:0;margin-top:0;padding:12px 12px 10px}.tab-panel{min-height:160px}.field-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px 18px;display:grid}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field.wide{grid-column:span 2}.field-label{color:var(--muted);font-size:.8rem;font-weight:500}.field .value{overflow-wrap:anywhere;padding:4px 0;font-weight:400}.field select{width:100%}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);align-self:flex-start;gap:2px;padding:3px;display:inline-flex}.segmented button{color:var(--muted);background:0 0;border:none;border-radius:8px;padding:6px 14px;font-size:.875rem}.segmented button:hover{color:var(--text);background:0 0}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #2630261f}.history-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.history-list li{border-bottom:1px solid var(--border);flex-direction:column;gap:2px;padding:10px 0;font-size:.9rem;display:flex}.history-list li:last-child{border-bottom:none}.item-foot{border-top:1px solid var(--border);background:var(--surface);align-items:center;gap:10px;padding:14px 24px;display:flex}@media (width<=900px){.item-top{grid-template-columns:1fr}.modal.item-modal{max-height:var(--screen-h);border-radius:0}.modal-backdrop:has(.item-modal){padding:0}}@media (width<=560px){.field.wide{grid-column:auto}.item-foot{flex-wrap:wrap}}.usage-chart svg{width:100%;height:auto;display:block}.chart-grid{stroke:var(--border);stroke-width:1px}.chart-label{fill:var(--muted);font-family:inherit;font-size:11px}.chart-window{fill:var(--primary-soft);opacity:.7}.chart-value{fill:var(--text);font-variant-numeric:tabular-nums;font-family:inherit;font-size:11.5px}.chart-value.in{font-weight:600}.chart-value.none{fill:var(--muted)}.chart-value.up{fill:var(--danger);font-weight:700}.chart-value.down{fill:var(--info);font-weight:700}.chart-value.on{font-weight:700;text-decoration:underline}.legend-jump .up{color:var(--danger)}.legend-jump .down{color:var(--info)}.chart-line{fill:none;stroke-linejoin:round;stroke-linecap:round}.chart-line.usage{stroke:var(--sage);stroke-width:2px}.chart-line.rate{stroke:var(--forest);stroke-width:2px;stroke-dasharray:5 4}:where(:root[data-theme=dark]) .chart-line.rate{stroke:var(--text)}.chart-dot{fill:var(--surface);stroke:var(--sage);stroke-width:2px}.chart-dot.on{fill:var(--sage)}.chart-hover{stroke:var(--sage-grey);stroke-dasharray:2 3}.chart-foot{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:.78rem;display:flex}.legend:before{content:"";vertical-align:middle;border-radius:2px;width:16px;height:3px;margin-right:6px;display:inline-block}.legend.usage:before{background:var(--sage)}.legend.rate:before{background:repeating-linear-gradient(90deg, var(--forest) 0 5px, transparent 5px 8px)}.legend.window:before{background:var(--primary-soft);width:12px;height:10px}.chart-tip{color:var(--text);margin-left:auto}.import-grid{flex-direction:column;gap:16px;max-width:980px;display:flex}.import-grid .card,.settings-grid .card{flex-direction:column;gap:14px;display:flex}.step{font-size:1rem}.sub-title{margin-top:4px;font-size:.9rem}.kind-options{grid-template-columns:1fr 1fr;gap:10px;display:grid}@media (width<=640px){.kind-options{grid-template-columns:1fr}}.kind-option{border:1px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;flex-direction:row;align-items:flex-start;gap:10px;padding:14px;font-weight:400}.kind-option>span{flex-direction:column;gap:4px;display:flex}.kind-option.on{border-color:var(--sage);background:var(--primary-softer)}.kind-option input{width:auto;accent-color:var(--primary);margin-top:4px}.file-drop{border:2px dashed var(--border-strong);border-radius:var(--radius-lg);color:var(--muted);cursor:pointer;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:22px;font-weight:500}.file-drop:hover{border-color:var(--sage);color:var(--text);background:var(--primary-softer)}.file-drop input{display:none}.month-chips{flex-wrap:wrap;gap:6px;display:flex}.month-chip{border:1px solid var(--border);cursor:pointer;color:var(--muted);border-radius:999px;flex-direction:row;align-items:center;gap:6px;padding:4px 10px;font-size:.82rem;font-weight:400}.month-chip.on{background:var(--primary-soft);border-color:var(--mint);color:var(--text)}.month-chip input{width:14px;height:14px}.option-list{flex-direction:column;gap:8px;display:flex}.mapping-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.preview-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;display:grid}.preview-stats>div{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);flex-direction:column;gap:2px;padding:12px 14px;display:flex}.preview-stats strong{font-size:1.2rem}.progress{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);place-items:center;height:34px;display:grid;position:relative;overflow:hidden}.progress-bar{background:var(--primary-soft);transition:width .2s;position:absolute;inset:0 auto 0 0}.progress span{position:relative}.import-done{text-align:center;flex-direction:column;align-items:center;gap:10px;max-width:560px;display:flex}.import-done .highlight-icon{background:var(--primary-soft);color:var(--primary)}.settings-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.settings-grid .span-2{grid-column:1/-1}@media (width<=860px){.settings-grid{grid-template-columns:1fr}}.weight-bars{align-items:flex-end;gap:8px;height:64px;padding-top:4px;display:flex}.weight-bars span{flex-direction:column;align-items:center;gap:2px;display:flex}.weight-bars i{background:var(--sage);border-radius:4px 4px 0 0;width:22px}.weight-bars small{color:var(--muted);font-size:.7rem}.matrix th,.matrix td{padding:10px 12px}.matrix tbody th{background:0 0}.days-pair{align-items:center;gap:6px;display:inline-flex}.days-pair input{text-align:center;width:64px;padding:6px 8px}.inline-field-row{flex-direction:row;align-items:center;gap:10px}.inline-field-row select{width:auto}.settings-actions{align-items:center}.tag-rules{border-top:1px solid var(--border);flex-direction:column;gap:8px;margin-top:18px;padding-top:14px;display:flex}.tag-rule{border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px}.tag-rule-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tag-rule-swatch{border-radius:2px;width:4px;height:18px}.tag-rule .matrix th,.tag-rule .matrix td{padding:6px 10px}.attr-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.attr-list li{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:8px 0;display:flex}.attr-list li>span:first-child{flex:1}.attr-form{flex-wrap:wrap;gap:8px;display:flex}.attr-form input{flex:220px;width:auto}.status-notice{flex-direction:column;gap:6px;display:flex}.promo-box{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.promo-head{justify-content:space-between;align-items:center;display:flex}.promo-head .link-btn{align-items:center;gap:3px;display:inline-flex}.promo-active{flex-direction:column;gap:2px;display:flex}.promo-eff strong{color:var(--success)}.promo-list{flex-direction:column;gap:2px;margin:0;padding:0;font-size:.82rem;list-style:none;display:flex}.promo-list li{border-top:1px dashed var(--border);align-items:center;gap:10px;padding:3px 0;display:flex}.promo-list li>span:first-child{flex:1}.promo-list li.on>span:first-child{font-weight:600}.promo-form{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding-top:8px;display:flex}.promo-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.promo-actions{justify-content:flex-end;gap:8px;display:flex}.item-modal .promo-box button{min-width:0;margin-top:0}.tag.fixed{border-color:var(--info);color:var(--info)}.fixed-note{align-items:center;gap:6px;margin:0;display:flex}.rel-chips{flex-wrap:wrap;gap:6px;display:flex}.rel-chip{background:var(--info-soft);color:var(--info);border-radius:999px;align-items:center;gap:5px;padding:1px 10px;font-size:.76rem;font-weight:500;display:inline-flex}.rel-chip.next{background:var(--surface-2);color:var(--muted)}.flip{transform:scaleX(-1)}.rel-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.rel-line{flex-direction:column;gap:3px;font-size:.875rem;display:flex}.rel-problem{color:var(--warn);align-items:center;gap:5px;margin-right:8px;font-size:.8rem;font-weight:500;display:inline-flex}.rel-actions{justify-content:flex-end;gap:8px;display:flex}.rel-editor{flex-direction:column;gap:10px;display:flex}.rel-picked{align-items:center;gap:10px;font-weight:400;display:flex}.rel-preview{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);flex-direction:column;gap:4px;padding:10px 12px;display:flex}.rel-preview>div{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.item-modal .rel-panel button{min-width:0;margin-top:0}.tag.rel{border-color:var(--info);color:var(--info)}.tag.by-tag{border-color:var(--sage);color:var(--text)}.xyz-change-line{color:var(--warn)}.tag.xyz-change{border-color:var(--warn);color:var(--warn);white-space:nowrap}.rel-page{flex-direction:column;gap:16px;display:flex}.rel-sugg-hint{margin:6px 0 0;padding:0 20px}.ok-text{color:var(--success);align-items:center;gap:4px;font-size:.85rem;display:inline-flex}.import-review{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;gap:12px;padding:14px 16px;display:flex}.import-review h3{font-size:.95rem}.review-list ul{flex-direction:column;gap:2px;max-height:280px;margin:6px 0 0;padding:0;list-style:none;display:flex;overflow-y:auto}.review-list li{justify-content:space-between;gap:10px;font-size:.85rem;display:flex}.review-list p{margin:2px 0 0 20px}.review-head{color:var(--text);background:0 0;border:none;align-items:center;gap:6px;padding:0;font-weight:400;display:flex}.review-head:hover{background:0 0}.mrp-table td.est-cell{white-space:nowrap}.est-cell .rate-trend{margin-left:6px}.sap-page{gap:16px;display:grid}.sap-page .card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;display:flex}.sap-page .card-head h2{margin:0}.sap-page .quick-tabs{margin-bottom:6px}.sap-summary{flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0;display:flex}.sap-summary button{margin-left:auto}.sap-problems ul{margin:6px 0 0;padding-left:18px}.sap-problems li{margin:2px 0}.sap-follow-head{padding:12px 20px 0}.sap-check{margin:8px 0;font-size:.88rem}.sap-more{margin:10px 12px}.sap-history-actions{flex-wrap:wrap;gap:6px;display:inline-flex}.sap-page .history-list li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;display:flex}.sap-news{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.sap-news-link{margin-left:auto;font-weight:600}.dc-cell{min-width:220px}.dc-issue{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.dc-issue+.dc-issue{margin-top:4px}.dc-issue .tag{white-space:nowrap}.dc-issue button.link-btn{font-size:.85em;font-weight:500}
