/* Contracts (contracts-ui.js). Only what app.css does not already have; colours come from the theme variables. */
.ct-lead b,.ct-sum b{color:var(--ink);font-weight:600}
.ct-tabs{margin-bottom:var(--gap);flex-wrap:wrap}
.ct-back{margin:0 0 4px;font-size:12.5px}
.ct-empty{display:flex;flex-direction:column;gap:5px;align-items:center}
.ct-empty b{color:var(--ink-2);font-size:13px}
.ct-foot{padding:2px 2px 14px;line-height:1.5;max-width:74ch}
.ct-pad{padding:11px 13px;margin:0;line-height:1.5}
.ct-pad>p{margin:0 0 6px}
.ct-sum{margin:0 0 6px;line-height:1.5}
.ct-pills{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.ct-pills:empty{display:none}
.ct-num{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;flex-shrink:0}
.ct-fig{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;white-space:nowrap;color:var(--ink)}
.ct-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:var(--gap);align-items:start}
.ct-grid>.card{margin:0}
.ct-kv{padding:6px 13px 10px}
.ct-pre,.ct-quote{white-space:pre-wrap;overflow-wrap:anywhere}
.ct-quote{border-left:2px solid var(--line-2);padding:2px 0 2px 9px;margin-top:6px;color:var(--ink-2);font-size:12.5px}
.ct-rows{list-style:none;margin:0;padding:0}
.ct-row{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:9px 13px;border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.55}
.ct-row:last-child{border-bottom:0}
.ct-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.ct-row.off{opacity:.62}
.ct-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.ct-btns{display:flex;flex-wrap:wrap;gap:8px;padding:10px 13px}
.ct-btns.ct-pad{padding:10px 13px}
.ct-pick{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0}
.ct-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ct-text{width:100%;font-family:var(--mono);font-size:12.5px;min-height:150px;resize:vertical}
.ct-prev{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ct-prow{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:10px 13px;border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.55}
.ct-prow[data-s="skip"]{background:var(--crit-soft)}
.ct-prow[data-s="same"]{opacity:.7}
.ct-ph{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.ct-pb{min-width:0;overflow-wrap:anywhere}
.ct-probs{margin:6px 0 0;padding-left:18px;color:var(--crit)}
.ct-miss h4{margin:4px 0 6px;font-size:13px}
.ct-miss .fchk{margin-top:8px}
.ct-range{align-items:flex-end}
.ct-dl{align-self:flex-end;margin-bottom:6px}
.ct-tiles{padding:0 13px 12px}
.ct-tiles .tile.ct-warn .n{color:var(--warn)}
.ct-dayhead{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:8px}
.ct-dayhead .fld{max-width:220px}
.ct-team{margin-bottom:var(--gap)}
.ct-carry{background:var(--s2);border-bottom:1px solid var(--line)}
.ct-stops{list-style:none;margin:0;padding:0}
.ct-stop{display:grid;grid-template-columns:28px 1fr auto;gap:10px;padding:9px 13px;border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.55}
.ct-stop:last-child{border-bottom:0}
.ct-stop>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.ct-ord{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:600;font-variant-numeric:tabular-nums}
.ct-blk .ct-rows{border-top:1px solid var(--line)}
@media (max-width:640px){
  .ct-prow{grid-template-columns:1fr;gap:6px}
  .ct-ph{flex-direction:row;flex-wrap:wrap;align-items:center}
  .ct-row{flex-wrap:wrap}
  .ct-acts{justify-content:flex-start}
}
@media print{.ct-tabs,.ct-dayhead button,.ct-back,.ct-acts{display:none!important}.ct-team{break-inside:avoid}}
.ct-ord:empty{visibility:hidden}
/* polish sweep: the one-line summary is a lead, not a headline; the CSV link is a button, not a full-width bar */
p.ct-sum{font-size:13.5px}
.ct-range .ct-dl{justify-self:start;align-self:end}
.ct-range{margin-bottom:10px}
