/* ── Marketplace credibility / proof layer ── */
.ng-marketplace-proof{
  margin:18px 0 28px;
  padding:22px 24px 18px;
  border:1px solid var(--line);
  background:var(--paper);
}
.ng-proof-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin-bottom:18px;
}
.ng-proof-head h3{
  margin:4px 0 5px;
  font-family:var(--display);
  font-size:clamp(25px,3vw,38px);
  line-height:1;
  font-weight:400;
  letter-spacing:-.02em;
}
.ng-proof-head p{
  margin:0;
  max-width:620px;
  color:var(--muted);
  font-size:13px;
}
.ng-proof-live{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.13em;
  color:var(--muted);
}
.ng-proof-live i{
  width:7px;
  height:7px;
  display:block;
  border-radius:50%;
  background:#22c55e;
}
.ng-proof-challenge-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:14px 18px;
  background:rgba(217, 119, 6, 0.08);
  border:1px solid rgba(217, 119, 6, 0.3);
}
.ng-proof-challenge-tag{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.08em;
  font-weight:600;
  color:#f59e0b;
  white-space:nowrap;
}
.ng-proof-challenge-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ng-proof-challenge-body strong{
  font-size:14px;
  color:var(--ink);
  font-family:var(--sans);
  font-weight:600;
}
.ng-proof-challenge-body span{
  font-size:12px;
  color:var(--muted);
  font-family:var(--mono);
}
.ng-proof-challenge-btn{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.05em;
  color:var(--ink);
  text-decoration:none;
  padding:7px 14px;
  border:1px solid var(--line);
  background:var(--paper);
  white-space:nowrap;
  transition:border-color .15s ease, background .15s ease;
}
.ng-proof-challenge-btn:hover{
  border-color:var(--ink);
  background:var(--paper-hover, var(--paper));
}
.ng-proof-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin-inline:-1px;
  background:var(--line);
  border:1px solid var(--line);
}
.ng-proof-metric{
  min-height:104px;
  padding:18px 20px;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.ng-proof-metric strong{
  font-family:var(--display);
  font-size:42px;
  line-height:1;
  font-weight:400;
  letter-spacing:-.02em;
}
.ng-proof-metric span{
  margin-top:7px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.ng-proof-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding-top:14px;
}
.ng-proof-foot span{
  color:var(--muted);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.07em;
}
.ng-proof-foot a,
.ng-history-head>a{
  color:var(--ink);
  font-family:var(--mono);
  font-size:11px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
}
.ng-proof-foot a:hover,
.ng-history-head>a:hover{border-color:var(--ink)}
.ng-proof-loading{
  color:var(--muted);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ng-proof-degraded{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:13px;
}
.ng-proof-degraded strong{
  color:var(--ink);
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.08em;
}
.ng-marketplace-history{
  margin:22px 0 8px;
  padding-top:4px;
}
.ng-history-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:16px;
}
.ng-history-head h3{
  margin:4px 0 5px;
  font-family:var(--display);
  font-size:clamp(28px,3.5vw,44px);
  line-height:1;
  font-weight:400;
  letter-spacing:-.02em;
}
.ng-history-head p{
  margin:0;
  max-width:600px;
  color:var(--muted);
  font-size:13px;
}
.ng-history-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.ng-history-card{
  padding:20px 22px 18px;
  background:var(--paper);
  min-height:172px;
  display:flex;
  flex-direction:column;
}
.ng-history-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.ng-history-status,
.ng-history-code{
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ng-history-status{color:var(--accent);font-weight:600}
.ng-history-code{color:var(--muted)}
.ng-history-card h4{
  margin:18px 0 12px;
  font-family:var(--display);
  font-weight:400;
  font-size:24px;
  line-height:1.1;
}
.ng-history-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  color:var(--muted);
  font-size:12px;
}
.ng-history-meta b{color:var(--ink);font-weight:600}
.ng-history-link{
  margin-top:auto;
  padding-top:18px;
  align-self:flex-start;
  color:var(--ink);
  font-family:var(--mono);
  font-size:11px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
}
.ng-history-link:hover{border-color:var(--ink)}

/* Demo/example activity is not marketplace evidence. */
.example-activity{display:none !important}

@media (max-width:700px){
  .ng-marketplace-proof{padding:18px 16px 15px}
  .ng-proof-head{display:block}
  .ng-proof-live{margin-top:12px}
  .ng-proof-challenge-callout{flex-direction:column;align-items:flex-start;gap:12px}
  .ng-proof-metrics{grid-template-columns:1fr}
  .ng-proof-metric{min-height:82px}
  .ng-proof-metric strong{font-size:34px}
  .ng-proof-foot{display:block}
  .ng-proof-foot a{display:inline-block;margin-top:9px}
  .ng-history-head{display:block}
  .ng-history-head>a{display:inline-block;margin-top:10px}
  .ng-history-grid{grid-template-columns:1fr}
}
/* ── Review status shown to the doer: real state, real deadline, the reason in the reviewer's own words ── */
.review-box{margin:14px 0;padding:16px 18px;border:1px solid var(--line);background:var(--paper)}
.review-box h4{margin:0 0 6px;font-family:var(--mono);font-size:11px;letter-spacing:.13em;font-weight:500;color:var(--muted)}
.review-box .rv-deadline{font-family:var(--mono);font-size:13px;color:var(--ink);margin:4px 0 8px}
.review-box p{margin:6px 0;font-size:14px}
.review-box .rv-step{margin:10px 0;padding-left:12px;border-left:2px solid var(--line)}
.review-box .rv-step b{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.13em;font-weight:500;color:var(--muted)}
.review-box.rv-late{border-color:var(--accent)}
.review-box textarea{width:100%;min-height:70px;margin:8px 0;background:transparent;color:var(--ink);border:1px solid var(--line);padding:8px;font:inherit}
.review-box ul{margin:6px 0;padding-left:18px;font-size:13px;color:var(--muted)}

/* ── Facts on the task page: each line is backed by the ledger or the live policy ── */
.trust-facts{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px}
.trust-facts li{font-size:13px;color:var(--muted);padding-left:12px;border-left:2px solid var(--line)}
.trust-facts li b{display:inline-block;margin-right:6px;font-family:var(--mono);font-size:10px;letter-spacing:.13em;font-weight:500;color:var(--ink)}
