/* Preserve the incumbent dark blue B14-4 operating surface. */
.p3-costs{min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
.p3-costs label{display:grid;gap:6px;font-size:12px;color:var(--ui-muted);min-width:0}
.p3-costs p{max-width:75ch;line-height:1.6;overflow-wrap:anywhere}
.p3-costs .button,.p3-costs input,.p3-costs select{min-height:36px}
.p3-costs input{color-scheme:light;caret-color:var(--ui-accent);min-width:0}
.p3-costs .button:hover:not(:disabled){background:var(--ui-selected);border-color:var(--ui-accent)}
.p3-costs .button:active:not(:disabled){background:var(--ui-panel)}
.p3-costs .button:disabled{cursor:not-allowed}
.p3-costs a{color:var(--ui-accent);text-underline-offset:3px}
.p3-costs :focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.p3-costs ::selection{background:var(--ui-panel);color:var(--ui-text)}
.p3-cost-filters,.p3-cost-actions,.p3-cost-import-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.p3-cost-facts{display:flex;flex-wrap:wrap;gap:12px 28px;margin:14px 0}
.p3-cost-facts>div{display:grid;gap:6px}
.p3-cost-facts dt{font-size:12px;color:var(--ui-muted)}
.p3-cost-facts dd{margin:0;font-size:17px;font-weight:600;color:var(--ui-text)}
.p3-cost-scroll{max-width:100%;margin:10px 0 18px;scrollbar-color:var(--ui-border-strong) var(--ui-subtle)}
.p3-cost-table{min-width:650px;line-height:1.5}
.p3-cost-table caption{text-align:left;color:var(--ui-text);font-size:13px;font-weight:600;padding:9px 0}
.p3-cost-table td,.p3-cost-table th{vertical-align:top;overflow-wrap:anywhere}
.p3-cost-table td small{display:block;max-width:230px;color:var(--ui-muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere;margin-top:5px}
.p3-cost-table td a{display:block;margin-top:8px}
.p3-cost-rates .p3-cost-table{min-width:1480px}
.p3-cost-rates input{width:125px}
.p3-cost-rates input[type=number]{width:105px}
.p3-cost-detail .p3-cost-table{min-width:1120px}
.p3-cost-detail td:first-child{min-width:180px}
.p3-costs details{padding:16px 0;border-bottom:1px solid var(--ui-line)}
.p3-costs summary{cursor:pointer;line-height:1.5}
.p3-costs details ul{max-width:75ch;padding-left:22px;line-height:1.7}
.p3-cost-method small{display:block;overflow-wrap:anywhere;color:var(--ui-muted);line-height:1.6}
.p3-costs .notice,.p3-costs .b144-notice{margin:12px 0;overflow-wrap:anywhere}
.p3-costs .b144-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.p3-cost-columns{color:var(--ui-muted);font-size:12px}
@media(max-width:700px){
  .p3-cost-filters,.p3-cost-import-controls{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
  .p3-costs .button,.p3-costs input,.p3-costs select{min-height:44px}
  .p3-cost-filters input,.p3-cost-filters select,.p3-cost-import-controls input,.p3-cost-import-controls select{width:100%;max-width:100%;font-size:16px}
  .p3-cost-actions>.button{flex:1 1 140px}
  .p3-costs .b144-toolbar>span{font-size:12px}
}
