/* Credit-specific layout adapters. The supplied Deals theme remains byte-exact. */
.app-shell .deal-hero{display:block}
.sidebar .nav-tools{margin-top:10px}.sidebar .nav-tools>summary{padding:10px 8px}
.sidebar .app-version{padding:10px 8px;overflow-wrap:anywhere}
.app-shell .main,.app-shell .content,.app-shell .premium-panel,.app-shell .panel,.monitor-panel,.work-panel{min-width:0}
.app-shell .content :is(.monitor-panel,.work-panel,.work-card){background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:none;padding:18px;margin-bottom:18px}
.app-shell .monitor-workspace{color:var(--ink)}
.app-shell :is(.monitor-heading,.work-head){margin:12px 0 20px;gap:16px}
.app-shell :is(.monitor-heading h1,.work-head h1){font-size:24px;font-weight:600;letter-spacing:-.45px;line-height:1.3}
.app-shell .monitor-panel h2{font-size:15px;margin-bottom:16px;font-weight:600}
.app-shell .monitor-panel h3{font-size:13px;font-weight:600}
.app-shell .monitor-kpis{gap:18px}
.app-shell .monitor-kpis>div{border-left:2px solid var(--workspace-accent);padding-left:12px}
.app-shell .monitor-kpis strong{font-size:24px;font-weight:600;color:var(--ink)}
.app-shell .monitor-kpis span{font-size:12px;margin-bottom:6px;color:var(--muted)}
.app-shell :is(.monitor-table table,.work-card,.automation-table){font-size:13px}
.app-shell .monitor-table :is(th,td){padding:10px 12px}
.app-shell .monitor-table th{font-size:11px;background:var(--workspace-soft);color:var(--muted);font-weight:600;letter-spacing:0;text-transform:none}
.app-shell .monitor-table :is(td,th).number,.app-shell .numeric{text-align:right;font-variant-numeric:tabular-nums}
.app-shell :is(.monitor-navigation,.monitor-tabs){gap:6px;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:20px}
.app-shell :is(.monitor-navigation,.monitor-tabs) a{font-size:12px;padding:7px 9px;border-radius:5px;color:var(--muted);font-weight:500}
.app-shell :is(.monitor-navigation,.monitor-tabs) a:hover{background:var(--workspace-soft);color:var(--workspace-accent)}
.app-shell .monitor-workspace .btn{font-size:12px;min-height:32px;padding:6px 10px;font-weight:500}
.app-shell :is(.monitor-field,.automation-form p){margin-bottom:16px}
.app-shell :is(.monitor-field label,.work-field label){font-size:12px;font-weight:500;color:var(--ink)}
.app-shell :is(.monitor-field,.monitor-filters,.work-field) :is(input:not([type=checkbox]),select,textarea){font-size:13px;min-height:36px;padding:8px 10px;border-color:var(--line);border-radius:5px}
.app-shell .monitor-filters :is(input,select){width:auto;max-width:100%}
.app-shell :is(input[type=checkbox],input[type=radio]){width:auto;accent-color:#2563eb}
.app-shell .work-tabs a{border-radius:7px;padding:12px;background:#fff;font-size:13px}
.app-shell .work-tabs a.active{background:#edf3ff;border-color:#b5cdfa;color:#2563eb}
.app-shell .work-tabs strong{font-size:20px;font-weight:600}
.app-shell .work-card h3{font-size:14px}.app-shell .work-card .work-badge{font-size:11px}
.app-shell :is(.work-note,.monitor-note,.monitor-back){font-size:12px;color:var(--muted)}
.app-shell .work-card{margin-bottom:0}.app-shell .work-head p{font-size:13px}
.app-shell .monitor-alert,.app-shell .automation-state{background:#fff;border-radius:5px}
.app-shell .automation-state{border-left-color:var(--workspace-accent);background:var(--workspace-soft)}
.app-shell .debt-register-panel{--tone:#5b4fc4;--tone-soft:#f0edff;--tone-line:#dcd6f5}
.app-shell .credit-security-panel{--tone:#0f737a;--tone-soft:#e9f6f5;--tone-line:#cce7e5}
.app-shell :is(.debt-register-panel,.credit-security-panel)>.panel-head{background:var(--tone-soft);border-left-color:var(--tone)}
.app-shell .row-actions-group{display:flex;gap:10px;align-items:center;white-space:nowrap}
.app-shell .credit-metric-support{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:12px}
.app-shell .financial-drill-link{font-variant-numeric:tabular-nums}
html:not(.tabs-enhanced) .tab-panel{display:block}
.tabs-enhanced .tab-panel[hidden]{display:none}
.message.error{background:#fff1f1;border-color:#eed3d3;color:#9d2929}
.message.warning{background:#fff8e7;border-color:#eadbb8;color:#785318}
@media(max-width:650px){
 .app-shell .content :is(.monitor-panel,.work-panel,.work-card){padding:14px}
 .app-shell .monitor-kpis strong{font-size:20px}
 .app-shell .monitor-filters :is(input,select){width:100%}
 .app-shell .monitor-navigation{flex-wrap:nowrap;overflow:auto;max-width:100%;padding-bottom:12px}
 .app-shell .monitor-navigation a{white-space:nowrap}
 .app-shell .details{grid-template-columns:minmax(90px,35%) minmax(0,1fr)}
}
@media print{.sidebar,.topbar,.sidebar-backdrop,.skip-link{display:none!important}.app-shell .main{margin:0!important}.app-shell .content{padding:0!important;max-width:none}.app-shell .monitor-panel{padding:12px;box-shadow:none}.app-shell .monitor-table :is(th,td){padding:5px;font-size:9px}}
