/* Past weigh-ins: tappable rows and private full-size progress-photo viewer. */
#app .cb-route-progress .weight-history-open{
  display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;gap:11px!important;
  width:100%!important;height:auto!important;min-height:84px!important;
  text-align:left!important;cursor:pointer!important;
  margin:0!important;padding:10px 0!important;border:0!important;
  border-bottom:1px solid #29313b!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:#f1f3f5!important;-webkit-text-fill-color:#f1f3f5!important;
}
#app .cb-route-progress .weight-history-open:last-child{border-bottom:0!important}
#app .cb-route-progress .weight-history-open:focus-visible{outline:2px solid #ff6339!important;outline-offset:2px!important}
#app .cb-route-progress .weight-history-open .weight-history-copy{display:grid!important;gap:4px!important}
#app .cb-route-progress .weight-history-open .weight-history-hint{font-size:11px!important;color:#ff9b70!important;-webkit-text-fill-color:#ff9b70!important;font-weight:650!important}
dialog.cb-weigh-detail{
  width:min(94vw,540px);max-height:min(92dvh,850px);padding:18px;
  border:1px solid #37414d;border-radius:20px;background:#10161e;color:#f5f6f8;
  box-shadow:0 25px 70px #000a;overflow-y:auto;
}
dialog.cb-weigh-detail::backdrop{background:#000b;backdrop-filter:blur(5px)}
.cb-weigh-detail-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:16px}
.cb-weigh-detail-kicker{font-size:10px;letter-spacing:.12em;font-weight:800;color:#ff8859}
.cb-weigh-detail-head h2{font-size:22px;color:#fff;margin:5px 0 4px}
.cb-weigh-detail-head strong{font-size:15px;color:#d6dce3}
.cb-weigh-detail-close{
  flex:0 0 38px!important;width:38px!important;height:38px!important;padding:0!important;
  border-radius:50%!important;border:1px solid #46515f!important;background:#242e39!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:27px!important;font-weight:400!important;
}
.cb-weigh-detail-photo{min-height:190px;max-height:59dvh;border:1px solid #333f4c;border-radius:15px;
  background:#090d12;overflow:hidden;display:grid;place-items:center}
.cb-weigh-detail-photo img{display:block;max-height:59dvh;max-width:100%;width:auto;height:auto;object-fit:contain}
.cb-weigh-detail-photo img[hidden],.cb-weigh-detail-empty[hidden]{display:none!important}
.cb-weigh-detail-empty{text-align:center;color:#a7b0bb;font-size:13px;padding:35px 20px;line-height:1.5}
.cb-weigh-detail-status{margin:13px 0;min-height:17px;color:#aeb9c5;font-size:12px;line-height:1.45}
.cb-weigh-detail-status.is-error{color:#ffa098}
.cb-weigh-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.cb-weigh-detail-actions button,.cb-weigh-detail-save{
  background:#202a34!important;color:#f7f8fa!important;-webkit-text-fill-color:#f7f8fa!important;
  border:1px solid #465361!important;border-radius:12px!important;padding:12px 8px!important;
  font-size:13px!important;font-weight:750!important;min-height:45px;
}
.cb-weigh-detail-actions button:disabled{opacity:.45}
.cb-weigh-detail-save{
  width:100%;margin-top:10px;background:#ff6339!important;border-color:#ff6339!important;
  color:#080b0f!important;-webkit-text-fill-color:#080b0f!important;font-weight:850!important;
}
.cb-weigh-detail-save[hidden]{display:none!important}