.cost-card-inner {max-width:760px;margin-inline:auto;}
.brew-page .cost-card {max-width:none;background:#f7f8f4;border:1px solid var(--border);padding:22px;}
.cost-card-toolbar {display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.cost-card-toolbar h2 {margin:0;}
.brew-page .cost-card-toolbar label {margin:0;font-size:12px;font-weight:400;}
.brew-page .cost-card-toolbar select {margin:4px 0 0;min-height:36px;width:auto;max-width:100%;}
.cost-card-top {display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:16px;margin-bottom:14px;}
.cost-card-top p {margin:0 0 8px;}
.cost-card-amount {font-size:clamp(30px,5vw,46px);font-weight:750;color:#4c7055;line-height:1.15;overflow-wrap:anywhere;}
.cost-card-top .cost-card-status {margin:8px 0 0;color:#716a61;font-size:13px;}
.cost-card-ring {width:130px;max-width:100%;height:auto;}
.cost-ring-track,.cost-ring-segment {fill:none;stroke-width:15;}
.cost-ring-track {stroke:#e4e8e1;}
.cost-raw {--cost-tone:#64806b;}.cost-packaging {--cost-tone:#b99a57;}.cost-extra {--cost-tone:#87a8b8;}
.cost-ring-segment {stroke:var(--cost-tone);}
.cost-dot {width:12px;height:12px;flex:none;background:var(--cost-tone);border-radius:50%;}
.brew-page .cost-card-breakdown>:is(button,a) {display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:14px 0;margin:0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;}
.brew-page .cost-card-breakdown>:is(button,a):hover {background:#edf2e9;}
.cost-card-breakdown strong {text-align:right;white-space:nowrap;}
.cost-card-breakdown>:is(button,a):focus-visible {outline:3px solid #7194ab;outline-offset:2px;}
.cost-card-price {border-top:1px solid var(--border);padding-top:12px;margin-top:16px;}
.cost-card-price>p:first-child {display:flex;justify-content:space-between;gap:12px;}
.cost-card-price p {margin:10px 0;}
.cost-card-price [data-cost-contribution] {margin-right:5px;}
.cost-card-price[data-negative=true] [data-cost-contribution] {color:#792e35;}
.cost-price-bar {height:12px;background:#dcebd6;border-radius:10px;overflow:hidden;}
.cost-price-bar>span {display:block;height:100%;background:#64806b;}
.cost-card [hidden] {display:none!important;}
.brew-dialog.cost-detail-dialog {width:min(520px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 32px);margin:auto;border:1px solid var(--border);border-radius:8px;}
.cost-detail-amount {font-size:24px;font-weight:700;color:#4c7055;margin:0 0 10px;}
.cost-detail-dialog ul {padding:0;list-style:none;}
.cost-detail-dialog li {display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);}
.cost-detail-dialog li>strong {white-space:nowrap;}
@media(max-width:600px){.brew-page .cost-card {padding:16px;}.cost-card-toolbar {gap:12px;margin-bottom:16px;}.cost-card-toolbar label,.brew-page .cost-card-toolbar select {width:100%;}.cost-card-top {grid-template-columns:minmax(0,1fr) 92px;gap:10px;}.cost-card-ring {width:92px;}.cost-card-amount {font-size:30px;}.brew-page .cost-card-breakdown>:is(button,a) {gap:8px;font-size:14px;padding:12px 0;}.cost-card-price>p:first-child {font-size:14px;}}

.brew-page .cost-card-breakdown>a {text-decoration:none;}
.brew-page .cost-card-breakdown>a>span:nth-child(2) {text-decoration:underline;text-underline-offset:3px;}
.summary-columns {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;gap:0;}
.summary-detail-column {min-width:0;container-type:inline-size;}
.summary-columns .cost-card {min-width:0;}
.late-cost-attribution {display:block;color:#716a61;font-size:12px;margin-top:4px;}
@container(max-width:520px){
 .summary-detail-column .brew-table {min-width:0;}
 .summary-detail-column .brew-table thead {display:none;}
 .summary-detail-column .brew-table tbody {display:block;}
 .summary-detail-column .brew-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 0;border-bottom:1px solid var(--border);}
 .summary-detail-column .brew-table td {display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;}
 .summary-detail-column .brew-table td::before {content:attr(data-summary-label);display:block;font-size:12px;color:#716a61;margin-bottom:3px;}
}
@media(max-width:1099px){.summary-columns {grid-template-columns:minmax(0,1fr);}}
.summary-expense {flex-wrap:wrap;}
.summary-expense>.late-cost-correction {flex-basis:100%;}
