/* Scoped chart presentation. One main chart at a time; exact values remain readable on mobile. */
.db-tool-charts{margin:24px 0;min-width:0}.db-chart-card{margin:14px 0;padding:24px;border:1px solid #d7e7dc;border-radius:18px;background:linear-gradient(145deg,#fff 45%,#f3faf5);color:#294936;min-width:0;overflow-wrap:anywhere}.db-chart-card .db-chart-eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;color:#4e8266;margin:0 0 8px}.db-chart-card h3{font-size:21px;line-height:1.5;letter-spacing:-.035em;margin:0 0 16px}.db-chart-metric{margin:14px 0 22px}.db-chart-metric>span{display:block;font-size:14px;color:#607963}.db-chart-metric>strong{display:block;font-size:29px;line-height:1.6;color:#185d43;font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere}.db-chart-legend{display:flex;gap:10px 20px;flex-wrap:wrap;margin:18px 0;font-size:13px;line-height:1.6}.db-chart-legend>span{display:inline-flex;align-items:center;gap:7px}.db-chart-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;flex-shrink:0}.db-chart-card .db-chart-bar-list{list-style:none;padding:0;margin:22px 0 16px;max-height:430px;overflow:auto;overscroll-behavior:contain}.db-chart-card .db-chart-bar-list li{margin:0 0 20px;padding:0 4px 0 0;line-height:1.6}.db-chart-bar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 9px;font-size:15px}.db-chart-bar-heading small{font-size:13px;color:#657c6b}.db-chart-bar-values{display:flex;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;font-size:14px;line-height:1.6;margin:8px 0 6px}.db-chart-bar-values strong{font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.db-chart-bar-values>strong:last-child{margin-left:auto}.db-chart-diverge{position:relative;height:13px;background:#edf3ee;border-radius:5px;margin-bottom:14px}.db-chart-diverge>span{position:absolute;height:13px;border-radius:4px}.db-chart-diverge>i{position:absolute;top:-3px;height:19px;width:1px;background:#8da697}.db-chart-stack{display:flex;width:100%;height:18px;background:#edf3ee;border-radius:5px;overflow:hidden}.db-chart-stack>span{height:100%;display:block;flex-shrink:0}.db-chart-scale{display:flex;justify-content:space-between;gap:15px;font-size:13px;color:#68806c;line-height:1.6}.db-chart-scale>span:last-child{text-align:right}.db-chart-line svg{display:block;width:100%;height:auto;overflow:visible}.db-chart-axis{font-size:13px!important;color:#6b816e!important;line-height:1.6!important}.db-chart-picker{display:block;font-size:14px;font-weight:600;margin:14px 0;color:#466850}.db-chart-picker select{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:11px 12px;margin-top:8px;border:1px solid #c8ddce;border-radius:11px;background:#fff;color:#254b35;font:inherit;font-size:16px;max-width:100%}.db-chart-selection{margin:12px 0;padding:13px 15px;border-radius:11px;background:#eaf5ee;color:#2b6544;font-size:14px;line-height:1.8}.db-chart-card .db-chart-note{margin:20px 0 0;border-top:1px solid #dfeae2;padding-top:15px;font-size:14px;line-height:1.8;color:#607562}.db-chart-data{margin-top:12px}.db-chart-data>summary{min-height:44px;display:list-item;cursor:pointer;line-height:1.7;font-size:14px;color:#326847;padding:10px 0}.db-chart-table-wrap{overflow-x:auto}.db-chart-table-wrap table{width:100%;border-collapse:collapse;line-height:1.7;font-size:13px}.db-chart-table-wrap caption{text-align:left;margin:8px 0}.db-chart-table-wrap th,.db-chart-table-wrap td{padding:10px 8px;border-bottom:1px solid #e0e9e2;text-align:right;white-space:normal;overflow-wrap:anywhere;min-width:75px}.db-chart-table-wrap th:first-child{text-align:left}.db-chart-actions{margin:16px 0 0;display:flex;gap:10px;flex-wrap:wrap}.db-chart-actions .db-chart-share,.db-chart-dialog .db-chart-share{min-height:48px;padding:12px 17px;background:#fee500;color:#302b19;border:1px solid #ecdc53;border-radius:11px;font:inherit;font-size:15px;font-weight:700;cursor:pointer}.db-chart-dialog{box-sizing:border-box;width:min(660px,calc(100% - 24px));max-height:90vh;max-height:90dvh;overflow:auto;border:1px solid #d4e6d9;border-radius:18px;padding:24px;background:#fff;color:#254632;box-shadow:0 18px 70px #16352633}.db-chart-dialog::backdrop{background:#132b2580}.db-chart-dialog h2{font-size:22px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}.db-chart-dialog .db-chart-dialog-note{font-size:14px;line-height:1.8;color:#607365;margin:12px 0}.db-chart-dialog #chart-share-image{display:block;width:100%;height:auto;border-radius:12px;border:1px solid #e2ece5;margin:18px 0;box-sizing:border-box}.db-chart-dialog [hidden],.db-chart-card [hidden]{display:none!important}.db-chart-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font:inherit;font-size:14px;background:#f3f7f4;border-radius:10px;padding:14px}.db-chart-dialog details>summary{cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;font-size:14px;line-height:1.7}.db-chart-status{line-height:1.8;font-size:14px;color:#286342}.db-chart-status.error{color:#a14326}.db-chart-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.db-chart-dialog-actions button{min-height:48px;padding:12px 15px;border:1px solid #cbded1;border-radius:10px;background:#f3f8f4;color:#31543c;font:inherit;font-size:15px;font-weight:600;cursor:pointer}.db-chart-dialog-actions #chart-share-prepare{flex:1 1 180px;background:#1b6c4e;color:white;border-color:#1b6c4e}.db-chart-dialog-actions #chart-share-send{flex:1 1 180px}.db-chart-dialog-actions button:disabled{opacity:.5;cursor:default}.db-chart-dialog textarea{width:100%;box-sizing:border-box;min-height:150px;margin-top:16px;padding:12px;font:inherit;font-size:15px;border:1px solid #cbdfd1;border-radius:10px}.db-chart-actions button:focus-visible,.db-chart-picker select:focus-visible,.db-chart-dialog button:focus-visible,.db-chart-data summary:focus-visible{outline:3px solid #27866a;outline-offset:3px}.shared-chart-wrap{max-width:800px;margin:auto}.shared-chart-wrap h1{font-size:28px;line-height:1.5;letter-spacing:-.035em}.shared-chart-note{font-size:15px;line-height:1.8;color:#5e7364}.shared-chart-actions a{display:inline-flex;align-items:center;min-height:48px;color:#1b6c4e;font-weight:600;line-height:1.6}
@media(max-width:540px){.db-chart-card{padding:20px 16px}.db-chart-card h3{font-size:20px}.db-chart-metric>strong{font-size:26px}.db-chart-dialog{padding:20px 16px}.db-chart-dialog-actions{gap:8px}.db-chart-dialog-actions button{flex:1 1 110px}.db-chart-actions .db-chart-share{width:100%;margin:0}.db-chart-bar-heading{font-size:14px}.db-chart-scale{font-size:12px}.shared-chart-wrap h1{font-size:24px}}

.db-chart-bar-list:focus-visible{outline:3px solid #27866a;outline-offset:3px;border-radius:6px}

/* 5.3.14: summarize first; keep the richer banner/metric in exported images. */
.db-share-origin,.db-share-origin-host,.db-repeated-metric{display:none!important}
.db-tool-charts{margin:18px 0}.db-tool-charts .db-chart-card{padding:20px;margin:10px 0 14px}.db-tool-charts .db-chart-card h3{font-size:19px;margin-bottom:12px}.db-tool-charts .db-chart-eyebrow{display:none}.db-tool-charts .db-chart-legend{margin:12px 0}.db-tool-charts .db-chart-bar-list{margin:14px 0 10px}.db-tool-charts .db-chart-bar-list li{margin-bottom:12px}.db-tool-charts .db-chart-note{margin-top:14px;padding-top:12px}
.db-result-share{width:100%;box-sizing:border-box;border:1px solid #dfd477;border-radius:12px;background:#fffef2;color:#294936;overflow:hidden}.db-result-share>summary{box-sizing:border-box;min-height:48px;padding:12px 16px;background:#fee500;cursor:pointer;font-size:16px;font-weight:700;line-height:1.5;color:#302b19}.db-share-options{display:flex;flex-wrap:wrap;gap:10px;padding:14px 14px 0}.db-result-share .db-share-options button{box-sizing:border-box;flex:1 1 180px;min-height:48px;margin:0;padding:12px;border:1px solid #bcd6c6;border-radius:10px;background:#fff;color:#23573e;font:inherit;font-size:15px;font-weight:600;cursor:pointer;white-space:normal}.db-result-share .db-share-options .db-chart-share{background:#fff5a9;border-color:#dfd477;color:#302b19}.db-result-share>p{margin:10px 14px 14px;font-size:14px;line-height:1.7;color:#5c6b5f}.db-result-share summary:focus-visible,.db-result-share button:focus-visible{outline:3px solid #27866a;outline-offset:-3px}
@media(max-width:540px){.db-tool-charts .db-chart-card{padding:18px 14px}.db-share-options{gap:8px}.db-result-share .db-share-options button{flex-basis:100%}}

@media(min-width:981px) and (min-height:800px){body.db-chart-layout[data-calc=loan] .ui-input-column,body.db-chart-layout[data-calc=saving] .ui-input-column{position:sticky;top:24px;align-self:start}}
