/* Technocore Worker — result & shareable receipt
   The result is the strongest state: large repository name, unambiguous check rows,
   Download receipt as the primary action. */

.receipt { position: relative; }
.receipt-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 2px solid rgba(92, 208, 230, .5); border-bottom: 1px solid var(--line);
}
.receipt-mark { color: var(--accent); font: 800 .64rem/1 var(--mono); letter-spacing: .2em; }
.receipt-id { color: var(--fg-muted); font: 700 .72rem/1 var(--mono); letter-spacing: .09em; }

.receipt .eyebrow { display: block; margin-top: 16px; }
.receipt-target { margin-top: 9px; }
.receipt-target strong {
  display: block; font-size: clamp(1.45rem, 4vw, 1.95rem); font-weight: 650;
  letter-spacing: -.03em; line-height: 1.12; color: var(--fg); overflow-wrap: anywhere;
}
.receipt-target code { display: block; margin-top: 10px; color: var(--fg-muted); font-size: .8rem; overflow-wrap: anywhere; }

.receipt-checks {
  margin-top: 18px; display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rc {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; background: var(--bg-raise);
}
.rc span { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-muted); font-size: .83rem; font-weight: 600; }
.rc span i {
  flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .64rem; font-weight: 800; background: var(--line-2); color: transparent;
}
.rc span i:not(:empty) { background: rgba(95, 211, 157, .16); color: var(--ok); }
.rc strong { font: 750 .76rem/1 var(--mono); letter-spacing: .07em; color: var(--fg-muted); }
.rc strong.confirmed { color: var(--ok); }
.rc strong.secondary { color: var(--warn); }
.rc strong.neutral { color: var(--fg-faint); }

.receipt-through {
  display: flex; align-items: baseline; gap: 8px; margin-top: 14px;
  padding-top: 13px; border-top: 1px solid var(--line); font-size: .8rem;
}
.receipt-through span { font-weight: 600; color: var(--fg-muted); }
.receipt-through time { color: var(--fg-faint); font: .76rem var(--mono); }

.receipt-actions { margin-top: 16px; display: grid; gap: 12px; }
.receipt-actions .btn-primary { width: 100%; }
.receipt-minor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.receipt-minor .switch { margin-left: auto; }

.switch { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-muted); font-size: .74rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch i {
  position: relative; flex: none; width: 30px; height: 17px; border-radius: 9px;
  background: var(--line-2); transition: background .16s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--fg-muted); transition: transform .16s, background .16s;
}
.switch input:checked + i { background: rgba(92, 208, 230, .5); }
.switch input:checked + i::after { transform: translateX(13px); background: #eafcff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }

.provenance { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.prov-grid { margin-top: 12px; display: grid; gap: 15px 24px; }
@media (min-width: 520px) { .prov-grid { grid-template-columns: 1fr 1fr; } }
.prov-grid > div { min-width: 0; }
.prov-grid span {
  display: block; color: var(--fg-faint); font: 700 .6rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
}
.prov-grid code { display: block; margin-top: 6px; color: var(--fg-muted); font-size: .76rem; overflow-wrap: anywhere; }
.copy-value { border: 0; background: none; color: var(--accent); padding: 5px 0 0; cursor: pointer; font-size: .7rem; }
.copy-value:hover { text-decoration: underline; }

.receipt-scope { margin-top: 15px; }

@media (max-width: 560px) {
  .receipt-target strong { font-size: 1.55rem; }
  .receipt-minor .switch { margin-left: 0; flex: 1 1 100%; }
}
