/* The shared request composer and the room scroll together in short Mac windows. */
#cost-tracking-view { min-height:0; overflow:auto; }
#cost-tracking-root { flex:1 0 auto; min-width:0; }
#cost-tracking-root .cost-tracking-app {
  --cost-rule:#d5dcd2; --cost-card:#fffffb; --cost-ink:#19392f; --cost-muted:#52675b; --cost-green:#165242;
  display:grid; gap:14px; min-width:0; padding:8px clamp(2px,2vw,14px) 20px;
  color:var(--cost-ink); font:15px/1.5 var(--wc-sans,-apple-system),sans-serif; font-variant-numeric:tabular-nums;
}
.cost-tracking-app [hidden] { display:none !important; }
.cost-tracking-app :is(section,article,form,details,label,[data-token-summary],[data-cost-archive]) { min-width:0; }
.cost-tracking-app :is(h1,h2,h3,h4,p) { margin:0; }
.cost-tracking-app :is(h1,h2) { color:inherit; font-family:var(--wc-serif,Georgia),serif; font-weight:400; line-height:1.13; letter-spacing:-.03em; }
.cost-tracking-app h1 { font-size:clamp(30px,5vw,46px); }
.cost-tracking-app h2 { font-size:clamp(22px,3vw,28px); }
.cost-tracking-app h3 { font:650 16px/1.35 var(--wc-sans,-apple-system),sans-serif; }
.cost-tracking-app .cost-header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cost-header p,.cost-tracking-app .cost-disclaimer,.cost-tracking-app small,.cost-tracking-app .cost-empty { color:var(--cost-muted); }
.cost-tracking-app .cost-disclaimer,.cost-tracking-app small { font-size:13px; font-weight:400; }
.cost-tracking-app button,.cost-tracking-app input:not([type=checkbox]),.cost-tracking-app select,.cost-tracking-app textarea {
  box-sizing:border-box; width:auto; min-width:0; min-height:40px; margin:0; padding:8px 13px;
  border:1px solid #aebcb1; border-radius:7px; color:var(--cost-ink); background:var(--cost-card);
  font:inherit; line-height:1.3; box-shadow:none;
}
.cost-tracking-app button { max-width:100%; cursor:pointer; font-weight:600; }
.cost-tracking-app button:hover,.cost-tracking-app summary:hover { background:#edf1e9; }
.cost-tracking-app button:disabled { opacity:.55; cursor:default; }
.cost-tracking-app button.cost-primary { background:var(--cost-green); color:white; border-color:var(--cost-green); }
.cost-tracking-app button.cost-danger { color:#883c31; }
.cost-tracking-app :focus-visible { outline:3px solid #a15a24; outline-offset:2px; }
.cost-tabs { display:flex; column-gap:clamp(12px,3vw,24px); flex-wrap:wrap; border-bottom:1px solid #bbc8bc; }
.cost-tabs button { border:0; border-radius:0; border-bottom:3px solid transparent; background:transparent; color:var(--cost-muted); padding:7px 0; }
.cost-tabs button[aria-pressed=true] { border-bottom-color:var(--cost-green); color:var(--cost-green); }
.cost-tracking-app [data-cost-panel],.cost-reports { display:grid; gap:12px; align-content:start; }
.cost-tracking-app [data-invoice-current]:empty,.cost-tracking-app .cost-status:empty { display:none; }
.cost-tracking-app .cost-status { font-size:13px; color:var(--cost-muted); overflow-wrap:anywhere; }
.cost-tracking-app :is(.cost-actions,.cost-fields,.cost-line,.cost-buttons,.cost-entry) { display:flex; gap:8px 12px; align-items:center; flex-wrap:wrap; }
.cost-tracking-app :is(.cost-actions,.cost-fields) { align-items:flex-end; }
.cost-line,.cost-entry { justify-content:space-between; }
.cost-tracking-app label { display:grid; gap:5px; width:auto; margin:0; color:inherit; font-size:13px; font-weight:600; }
.cost-tracking-app label :is(input:not([type=checkbox]),select,textarea) { width:100%; height:40px; max-width:100%; padding:7px 10px; font-size:15px; font-weight:400; }
.cost-tracking-app label textarea { height:74px; resize:vertical; }
.cost-actions label,.cost-fields label { flex:0 1 198px; max-width:100%; }
.cost-fields label.wide { flex-basis:405px; }
.cost-fields label.iban { flex-basis:345px; }
.cost-fields label.amount { flex-basis:112px; }
.cost-fields label.currency { flex-basis:89px; }
.cost-fields label.percent { flex-basis:145px; }
.cost-tracking-app .cost-check { display:flex; align-items:center; gap:6px; min-height:40px; }
.cost-tracking-app input[type=checkbox] { width:17px; height:17px; margin:0; accent-color:var(--cost-green); }
.cost-tracking-app form { display:grid; gap:13px; margin-top:14px; }
.cost-tracking-app [data-cost-manual-form] { border-top:1px solid var(--cost-rule); padding-top:14px; }
.cost-hero { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 25px; padding:20px 23px; border-radius:14px; background:#183f34; color:#fffef8; }
.cost-hero + .cost-hero { margin-top:7px; }
.cost-tracking-app .cost-hero h2 { font:600 14px/1.4 var(--wc-sans,-apple-system),sans-serif; color:#e3ebe2; letter-spacing:0; }
.cost-hero strong { display:block; font:400 clamp(29px,5vw,44px)/1.15 var(--wc-serif,Georgia),serif; margin:4px 0; overflow-wrap:anywhere; }
.cost-tracking-app .cost-hero small { color:#d0dfd4; }
.cost-split { flex:1 1 142px; max-width:230px; }
.cost-split meter { width:100%; height:9px; display:block; margin-bottom:6px; border:0; appearance:none; border-radius:10px; background:#dab48e; }
.cost-split meter::-webkit-meter-bar { border:0; background:#dab48e; height:7px; }
.cost-split meter::-webkit-meter-optimum-value { background:#a8c8b3; }
.cost-split meter::-moz-meter-bar { background:#a8c8b3; }
.cost-split div { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.cost-split b { display:block; font-size:15px; }
.cost-card,.cost-interim { padding:16px 18px; border-radius:11px; background:var(--cost-card); border:1px solid var(--cost-rule); }
.cost-interim,.cost-card :is(details,p,.cost-table-wrap),.cost-interim .cost-buttons { margin-top:8px; }
.cost-entry { padding:10px 0; margin-top:8px; border-top:1px solid var(--cost-rule); }
.cost-entry small,.cost-entry span { display:block; }
.cost-entry>div { min-width:0; overflow-wrap:anywhere; }
.cost-tracking-app details { border-top:1px solid var(--cost-rule); }
.cost-tracking-app summary { padding:9px 0; font-weight:600; color:var(--cost-green); cursor:pointer; overflow-wrap:anywhere; }
.cost-totals { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.cost-totals article { padding:10px; background:#eff3ea; border-radius:6px; }
.cost-totals strong { font-size:20px; }
.cost-token-endpoint { margin:14px 0; }
.cost-token-endpoint h4 { margin:12px 0 4px; }
.cost-tracking-app pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.cost-table-wrap { max-width:100%; min-width:0; overflow:auto; margin:8px 0 12px; }
.cost-table { border-collapse:collapse; width:100%; font-size:13px; }
.cost-table :is(th,td) { text-align:right; padding:8px 10px; border-bottom:1px solid var(--cost-rule); white-space:nowrap; }
.cost-table :is(th,td):first-child { text-align:left; }
.cost-table thead { background:#eff3ea; }
.cost-table th small { display:block; }
.cost-partial-note { color:#784524; }
@media(min-width:800px) { .cost-reports { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) {
  .cost-card,.cost-interim,.cost-hero { padding:14px; }
  .cost-split { flex-basis:100%; max-width:none; }
  .cost-tracking-app .cost-actions label { flex:1 1 142px; max-width:192px; }
  .cost-fields label:not(.amount,.currency,.percent) { flex-basis:100%; }
}
@media(pointer:coarse) {
  .cost-tracking-app :is(button,summary,input:not([type=checkbox]),select) { min-height:44px; }
  .cost-tracking-app label :is(input:not([type=checkbox]),select,textarea) { font-size:16px; }
}
