/* Requested additions are compact on mobile. Desktop reflows at 960px. */
.v030-active #previewBell .v304-blue-badge{left:-5px;right:auto;top:-5px;background:#0871cd;border:1px solid white}
.v030-active #previewBell .v304-red-badge{left:auto;right:-5px;border:1px solid white}
.v304-priority-symbol{color:#cf2439;font-weight:900;display:inline-block}
.v271-cal-icon{position:relative}.v271-cal-icon .v304-priority-symbol{position:absolute;left:-4px;top:-3px;font-size:10px;z-index:2;background:white;border-radius:3px}
.v030-active .v304-priority-toggle{position:absolute;right:10px;top:10px;width:28px;height:28px;border:1px solid #b7c6d3;border-radius:50%;background:white;color:#65758a;font-size:18px;font-weight:800;cursor:pointer;z-index:1}
.v030-active .v304-priority-toggle.is-priority{background:#d9283e;border-color:#d9283e;color:white}
.v030-active #billRows .company{padding-right:30px}
.v304-action-title{color:#c82339;font-weight:700}
.v304-progress{display:block;width:100%;padding:12px 14px;margin:0 0 10px;text-align:left;background:#fff;border:1px solid #d8e7f3;border-radius:12px;color:#15283f;cursor:pointer;font:inherit}
.v304-progress-title{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;flex-wrap:wrap}.v304-progress-title strong{font-size:14px}.v304-progress-title b{margin-left:5px;color:#0871cd}
.v304-progress-currency{display:block;margin-top:8px;font-size:11px;line-height:1.4}.v304-progress-currency>span:first-child{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.v304-progress-track{display:block;background:#dfecf5;height:6px;border-radius:8px;margin-top:4px;overflow:hidden}.v304-progress-track i{height:100%;display:block;background:#19a767;border-radius:8px}.v304-progress small{display:block;font-size:11px;margin-top:5px;color:#65758a}
#v304CreditCollapse{display:block;margin:4px 0 -3px auto;padding:3px 0;border:0;background:none;color:#d6e9fc;font:inherit;font-size:11px;cursor:pointer}
.v304-collapsed .preview-credit-metrics,.v304-collapsed .preview-use-caption,.v304-collapsed #v304CreditCollapse{display:none!important}.v304-collapsed .preview-target-marker{bottom:-4px;top:-4px}.v304-collapsed{cursor:pointer}.v304-collapsed .preview-utilization{margin:12px 0 5px}
.v304-alert-group+section{margin-top:20px}.v304-alert-group h3{font-size:16px}.v030-active .v271-privacy{padding:12px}.v030-active .v271-privacy p{font-size:12px;margin-bottom:0}
@media(min-width:960px){
 :root{--preview-width:100%;--preview-u:.68px;--v30-radius:13px;--v30-gap:14px}
 html{background:#f5fafe}.v030-active,.v030-active.preview-home-active,.v030-active:not(.preview-home-active){max-width:none;padding-bottom:100px;font-size:16px}
 .v030-active .shell{max-width:none;margin:0}
 .v030-active .topbar{height:200px;background-size:100% 100%,cover;background-position:center top,center 64%;background-image:linear-gradient(90deg,#58b5f6b8,#9bd6ff36),url('/preview/canadian-header.webp')}
 .v030-active .topbar:after{height:40px}
 .v030-active .preview-header-ui{position:relative;margin:auto;width:min(100% - 64px,1320px);height:100%;padding:0}
 .v030-active .preview-brand{top:28px;left:0;width:210px}
 .v030-active .v30-release{top:97px;left:3px;font-size:13px}
 .v030-active .preview-sync,.v030-active #accountButton.preview-sync{top:32px;left:auto;right:116px;max-width:360px;font-size:13px;padding:11px 16px}
 .v030-active .preview-bell{top:30px;right:0;width:42px;height:42px;padding:10px}
 .v030-active .v30-sign-out{top:30px;right:57px}
 .v030-active .preview-bell span{font-size:11px;width:19px;height:19px}
 .v030-active .page,.v030-active.preview-home-active .page{max-width:1384px;width:100%;padding:28px 32px 30px;margin:0 auto}
 .v030-active .bottom-nav{position:fixed;top:auto;bottom:max(12px,var(--v30-safe-bottom));left:50%;right:auto;transform:translateX(-50%);width:min(100% - 64px,1320px);max-width:1320px;height:54px;min-height:54px;padding:5px 8px;display:flex;justify-content:flex-start;gap:5px;border:1px solid #d9e9f2;border-radius:13px;box-shadow:0 4px 16px #25486612;background:#fffffff2;z-index:8}
 .v030-active .bottom-nav button{flex:0 1 150px;display:flex;flex-direction:row;justify-content:center;gap:9px;padding:8px 14px;font-size:14px;min-height:42px;border-radius:9px}.v030-active .bottom-nav button svg{width:22px;height:22px}.v030-active .bottom-nav button span{font-size:14px}.v030-active .bottom-nav button.active{background:#e6f3fe;color:#086dc8}
 .v030-active .preview-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:22px;align-items:start}
 .v030-active .preview-intro{margin:0;padding:0}.v030-active .preview-intro h1{font-size:30px;margin-bottom:5px}.v030-active .preview-intro .canadian-line{font-size:16px}.v030-active .preview-intro #todayText{font-size:14px}
 .v030-active .preview-actions.actions{align-self:center;justify-self:end;max-width:530px;margin:0;gap:12px}.v030-active .preview-actions .btn{height:46px;font-size:15px}.v030-active .preview-actions #importBtn{font-size:14px}
 .v030-active .preview-credit{grid-column:1/-1;margin:0;padding:18px 24px;border-radius:16px;display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.8fr);column-gap:36px}
 .v030-active .preview-credit-head{height:auto;margin:0;align-items:flex-start;justify-content:center;flex-direction:column;gap:14px;grid-row:1/3}.v030-active .preview-credit-title{font-size:22px}.v030-active .preview-credit #targetInfoBtn{font-size:12px;width:auto;height:32px;padding:0 12px;margin:0}
 .v030-active .preview-credit-metrics{grid-template-columns:repeat(3,minmax(0,1fr));min-height:70px}.v030-active .preview-credit-metric,.v030-active .preview-credit-metric+article,.v030-active .preview-credit-metric:last-child{padding:0 18px}.v030-active .preview-credit-metric .metric-label{font-size:13px;white-space:normal}.v030-active .preview-credit-metric strong{font-size:25px;white-space:normal}.v030-active .preview-credit-metric small{font-size:14px;white-space:normal}
 .v030-active .preview-utilization{margin:14px 0 0}.v030-active .preview-use-caption{font-size:13px}.v030-active #v304CreditCollapse{grid-column:2;font-size:12px;margin-top:6px}
 .v030-active .v304-collapsed{display:grid;grid-template-columns:minmax(270px,1fr) minmax(0,2fr);align-items:center;padding:16px 24px}.v030-active .v304-collapsed .preview-credit-head{grid-row:auto;flex-direction:row;justify-content:space-between;align-items:center;gap:14px}.v030-active .v304-collapsed .preview-utilization{margin:0}
 .v030-active .preview-urgent{margin:0;padding:8px 16px;border:1px solid #e5edf3}.v030-active .preview-urgent h2{font-size:18px}.v030-active .preview-urgent>header{height:42px}.v030-active .preview-alert-row{min-height:70px}.v030-active .preview-alert-copy strong{font-size:14px}.v030-active .preview-alert-copy small{font-size:12px}.v030-active .preview-overdue-pill{font-size:10px}
 .v030-active .preview-snapshot>header{margin-bottom:13px}.v030-active .preview-snapshot h2{font-size:20px}.v030-active .preview-snapshot-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v030-active .preview-snapshot-tile{min-height:120px;padding:14px;display:block;position:relative}.v030-active .preview-tile-icon{width:30px;height:30px;margin-bottom:8px}.v030-active .preview-tile-copy .label{font-size:12px;white-space:normal}.v030-active .preview-tile-copy .value{font-size:22px}.v030-active .preview-tile-copy small{font-size:11px}.v030-active .preview-tile-chevron{position:absolute;right:10px;top:18px}
 .v030-active .view-head{padding:0;align-items:center;margin-bottom:24px}.v030-active .view-head h1{font-size:30px}.v030-active .view-head p{font-size:15px}.v030-active .view-tools{width:auto;margin-left:auto}
 .v030-active #billsPanel .toolbar{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start}.v030-active .tabs{max-width:500px}.v030-active .search-sort{padding-top:4px}.v030-active .v304-progress{padding:15px 20px}.v030-active .v304-progress-title{font-size:14px}.v030-active .v304-progress-title strong{font-size:17px}.v030-active .v304-progress-currency{font-size:13px}.v030-active .v27-total{font-size:14px;padding:16px 20px}.v030-active .v27-total small{font-size:12px}.v030-active .v27-total strong{font-size:25px}
 .v030-active #billsPanel table{display:table;border-spacing:0 10px;border-collapse:separate;table-layout:fixed}.v030-active #billRows{display:table-row-group}.v030-active #billRows tr{display:table-row;overflow:visible}.v030-active #billsPanel thead{display:table-header-group}.v030-active #billsPanel th{font-size:12px;text-align:left;padding:8px 14px}.v030-active #billsPanel th:first-child{width:28%}.v030-active #billsPanel th:nth-child(2){width:20%}.v030-active #billsPanel th:nth-child(3){width:17%}.v030-active #billsPanel th:nth-child(5){width:8%}.v030-active #billsPanel th:nth-child(6){width:15%}
 .v030-active #billRows td,.v030-active #billRows td:nth-child(4),.v030-active #billRows td:nth-child(5),.v030-active #billRows td:nth-child(6){display:table-cell;padding:17px 14px;vertical-align:middle;background:white;border-top:1px solid #e5edf3;border-bottom:1px solid #e5edf3}.v030-active #billRows td:first-child{position:relative;border-radius:12px 0 0 12px;border-left:1px solid #e5edf3;padding-right:36px}.v030-active #billRows td:last-child{border-radius:0 12px 12px 0;border-right:1px solid #e5edf3}.v030-active #billRows td:nth-child(5):before{content:none}.v030-active #billRows .company{font-size:16px;padding:0}.v030-active #billRows .money{font-size:21px}.v030-active #billRows .mobile-row-actions,.v030-active #billRows .mobile-status{display:none}.v030-active #billRows .row-actions{display:flex;flex-direction:column;gap:7px}.v030-active #billRows .row-actions .btn{font-size:12px;padding:8px;min-height:34px}.v030-active .v304-priority-toggle{width:25px;height:25px;right:7px;top:12px}
 .v030-active .calendar-card{padding:10px 18px 18px}.v030-active .calendar-grid{gap:8px}.v030-active .cal-day{min-height:105px;padding:10px}.v030-active .cal-number{font-size:16px}.v030-active .v271-cal-icons{right:10px;bottom:8px;grid-template-rows:repeat(4,17px);gap:2px}.v030-active .v271-cal-icon{width:25px;height:17px}.v030-active .v271-cal-icon .v25-logo{width:16px;height:16px}.v030-active .v271-cal-icon .v304-priority-symbol{font-size:13px}
 .v030-active .history-card{gap:14px}.v030-active .history-month{padding:20px}.v030-active .history-row{padding:18px 22px}.v030-active .history-row strong{font-size:16px}.v030-active .history-row small{font-size:13px}
 .v030-active .v30-snapshot-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.v030-active .v30-category-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.v030-active .v30-timeline-row{padding:16px 22px}.v030-active .v30-timeline-copy strong{font-size:17px}.v030-active .v30-timeline-copy small{font-size:14px}
 .v030-active .more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.v030-active .v271-more-items{gap:12px}.v030-active .more-card{padding:20px}.v030-active .more-card h2{font-size:18px}.v030-active .more-card p{font-size:14px}.v030-active .v271-privacy{padding:14px 20px}.v030-active .v271-privacy p{font-size:12px}
 .v030-active .modalback{padding:32px}.v030-active .modal{width:min(100%,820px);max-width:820px;max-height:calc(100dvh - 64px);border-radius:18px}.v030-active .modalhead{padding:20px 26px}.v030-active .modalbody{padding:24px 26px;font-size:15px;line-height:1.5}.v030-active .modal h2{font-size:24px}.v030-active .modal .btn{font-size:14px}.v030-active .modal .field{min-width:0}.v030-active .modal textarea{min-height:120px}
}
@media(min-width:960px) and (max-width:1150px){.v030-active .preview-home{grid-template-columns:1fr 1.2fr}.v030-active .preview-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v030-active .preview-overdue-pill{max-width:80px;white-space:normal}.v030-active #billsPanel th:first-child{width:26%}.v030-active #billRows td{padding-left:10px;padding-right:10px}}

/* v0.30.5 shares the Snapshot progress language and expands desktop charts. */
.v304-progress{background:var(--v30-gradient);color:#fff;border:0}
.v304-progress-title b,.v304-progress small{color:#d1e3f1}
.v304-progress-track{background:#86adc6;height:8px}.v304-progress-track i{background:#50d894}
.v304-progress-percent{display:flex;justify-content:space-between;gap:8px;margin-top:7px;color:white}
.v305-up-to-date{display:inline-block;color:#08643d;background:#dff8eb;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:650;margin:7px 0}
.preview-alert-icon.is-clear{background:#0aa565;color:#fff}
.preview-use-track{position:relative;min-height:26px!important;overflow:visible}
.v305-use-label{position:absolute;inset:3px 4px 3px auto;width:126px;background:white;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#092d51;font-size:12px;font-weight:750;z-index:2;pointer-events:none}
.v305-use-label:before{content:none}
.v305-use-label{text-shadow:0 0 3px white}
.preview-use-fill{border-radius:999px}.preview-target-marker{z-index:1}
.v030-active #v30SnapshotMonth{font-size:18px;min-height:30px}.v30-snapshot-head h1{font-size:26px;margin:0 0 4px}
.v030-active .v30-sign-out{color:#bc2139;background:#fff1f3;border-color:#d77d8a}
@media(min-width:960px){
 .v030-active .bottom-nav,.v030-active.preview-home-active .bottom-nav{height:54px;min-height:54px;max-height:54px;padding:5px 8px;box-sizing:border-box}
 .v030-active .bottom-nav{justify-content:center}
 .v030-active #detailModal .modal,.v030-active #v30OccurrenceModal .modal,.v030-active #v25SnapshotModal .modal{width:min(100%,1060px);max-width:1060px}
 .v030-active .detail-layout{grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:32px;align-items:start}
 .v030-active .detail-layout .pie{width:min(380px,100%)}
 .v030-active .detail-legend{max-height:420px;overflow:auto;padding-right:8px}
 .v030-active .pie-total{font-size:19px}.v030-active .pie-total small{font-size:12px}
}

/* Missing-limit explanations must occupy normal flow, including enlarged text. */
#previewCredit .preview-credit-metrics>div{min-width:0;overflow-wrap:anywhere}
#previewCredit .metric-value{height:auto;min-height:1.4em;white-space:normal;overflow-wrap:anywhere}
#previewCredit .v305-credit-coverage{font-size:.8rem;line-height:1.45;margin:.6rem 0 0;overflow-wrap:anywhere}
#previewCredit .v305-use-label{width:auto;max-width:65%;white-space:normal;line-height:1.3;font-size:.75rem;display:flex;align-items:center;justify-content:center}
#previewCredit .preview-credit-head{height:auto;min-width:0;flex-wrap:wrap;gap:.4rem}
#previewCredit #targetInfoBtn{height:auto;max-width:100%;white-space:normal;line-height:1.35}
#previewCredit #targetInfoBtn span{white-space:normal;overflow-wrap:anywhere}
#previewCredit .preview-credit-metric{min-width:0}
#previewCredit .preview-credit-metric small,#previewCredit .preview-credit-metric strong{height:auto;white-space:normal;overflow-wrap:anywhere}
#previewCredit .preview-credit-metric .metric-label{white-space:normal;overflow-wrap:anywhere;height:auto;line-height:1.35}
#previewCredit #targetInfoBtn{flex:0 1 auto;width:auto;max-width:100%;margin-right:0;padding:.3rem .6rem}
#previewCredit .preview-credit-title{min-width:0;max-width:100%;flex-wrap:wrap}
#previewCredit .preview-credit-title strong{overflow-wrap:anywhere}

/* Let whole amounts determine column width; wrap metrics, never currency digits. */
#previewCredit .preview-credit-metrics{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem}
#previewCredit .preview-credit-metric,#previewCredit .preview-credit-metric+article,#previewCredit .preview-credit-metric:last-child{flex:1 1 12rem;min-width:min-content;padding:.5rem 0}
#previewCredit .preview-credit-metric+article:before{display:none}
#previewCredit .preview-credit-metric .metric-value,#previewCredit .preview-credit-metric strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}
#previewCredit #targetBalance{overflow-wrap:normal;word-break:normal}
