/* the header's tools, the approver cards, the proof path, the timeline filter, the shortcut help,
   empty and loading states, and the share button */
.grow { flex: 1; }
.hbtn { display: none; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); color: var(--fg); cursor: pointer; font: 600 var(--t-md) var(--font); }
.has-js .hbtn { display: inline-flex; }
.hbtn[hidden] { display: none !important; }
.hbtn:hover { border-color: var(--accent); }
.hbtn .ic { font-size: 17px; }

.acards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--s3); }
.acard { display: flex; gap: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.acard p { margin: 2px 0; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; background: var(--card-2); color: var(--muted); border: 2px dashed var(--idle); }
.a-approved .avatar { background: var(--good-bg); color: var(--good); border: 2px solid var(--good); }
.a-denied .avatar { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.abody { min-width: 0; }
.aname b { font: 700 var(--t-md) var(--mono); }
.astate { font-size: var(--t-sm); color: var(--muted); margin-left: var(--s1); }
.averify { font-weight: 600; font-size: var(--t-sm); }
.averify .ic { margin-right: 2px; }
.aflag { color: var(--warn); font-weight: 600; }
.atimes { margin: 4px 0 2px; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.atimes div { display: flex; flex-wrap: wrap; column-gap: var(--s2); }
.atimes dt { color: var(--muted); min-width: 4.6em; }
.atimes dd { margin: 0; white-space: nowrap; }
.atimesnote { margin: 0 0 var(--s2); }
.aflag .ic { margin-right: 2px; }

.merklewrap { padding: var(--s4); }
svg.merkle { display: block; margin: 0 auto; max-width: 100%; height: auto; font-family: var(--font); }
.mk .box { fill: var(--card-2); stroke: var(--line); stroke-width: 1.5; }
.mk.leaf .box { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 2.2; }
.mk.node .box { fill: var(--card); stroke: var(--idle); }
.mk.sib .box { stroke-dasharray: 4 3; }
.mk.root .box { fill: var(--good-bg); stroke: var(--good); stroke-width: 3; }
.mkcap { font-size: 12.5px; fill: var(--muted); text-anchor: middle; }
.mkhash { font: 700 15px var(--mono); fill: var(--fg); text-anchor: middle; }
.mk.root .mkcap, .mk.root .mkhash { fill: var(--good); }
.mksub { font-size: 12.5px; fill: var(--muted); }
.mk.root .nicon { color: var(--good); }
svg.merkle .edge.taken { animation: none; }

.tfilter { display: none; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); font-size: var(--t-sm); color: var(--muted); }
.has-js .tfilter { display: flex; }
.tfilter input { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 5px var(--s2); width: 280px; max-width: 60vw; }
.ev[hidden] { display: none; }
.ev.cur { box-shadow: inset 0 0 0 2px var(--accent); }
.empty { text-align: center; padding: var(--s6) var(--s4); border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.empty .ic { font-size: 40px; color: var(--idle); }
.empty p { margin: var(--s1) 0; }
.etitle { font-size: var(--t-lg); color: var(--fg); font-weight: 650; }
table.runlist tbody tr.cur { background: var(--accent-bg); }
/* The row the keyboard is on is marked by a glyph as well as the tint. */
table.runlist tbody tr.cur td:first-child::before { content: "\25B6\00a0"; content: "\25B6\00a0" / ""; color: var(--accent); }

.helpback { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 50; }
.help { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.help h2 { margin: 0 0 var(--s3); }
.help dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0; font-size: var(--t-md); }
.help dt { white-space: nowrap; }
.help dd { margin: 0; color: var(--muted); }
kbd { font: 600 var(--t-sm) var(--mono); background: var(--card-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-sm); padding: 1px 7px; }

body.loading::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: loadbar 1s linear infinite; z-index: 60; }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { body.loading::before { animation: none; background: var(--accent); opacity: .6; } }

.verdict .share { display: none; margin-left: auto; align-self: flex-start; flex: none; align-items: center; gap: var(--s2); font: 600 var(--t-sm) var(--font); padding: 6px var(--s3); border-radius: var(--r-sm); border: 1px solid var(--vc); background: var(--card); color: var(--fg); cursor: pointer; }
.has-js .verdict .share { display: inline-flex; }
.verdict .share:hover { background: var(--card-2); }
.verdict .share[aria-busy="true"] { opacity: .6; cursor: progress; }
@media (max-width: 720px) { .verdict { flex-wrap: wrap; } .verdict .share { margin-left: 0; } }

/* The verdict banner's link and a linked stat. */
.statlink { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.statlink:hover .lbl { color: var(--accent); text-decoration: underline; }
.vlink { margin: var(--s1) 0 0; font-weight: 600; }

/* approver identity (certificate-bound approvers): only a final tier is drawn in the good style;
   provisional is amber with a dashed edge and a hatched ground, a waiting, held or stripped identity is never green */
.gident { border: 1px solid var(--line); border-left-width: 5px; border-radius: var(--r-md); background: var(--card); padding: var(--s2) var(--s4); margin: 0 0 var(--s3); }
.gident p { margin: 2px 0; }
.id-audited { border-color: var(--good); }
.id-final { border-color: var(--accent); }
.id-prov { border-color: var(--warn); border-style: dashed; background: repeating-linear-gradient(135deg, var(--warn-bg) 0 8px, transparent 8px 16px); }
.id-bad { border-color: var(--bad); background: var(--bad-bg); }
.id-wait { border-color: var(--idle); border-style: dashed; }
.aident { margin-top: var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.aident p { margin: 2px 0; }
.idbadge { display: inline-block; font-weight: 800; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.id-audited .idbadge, .idaudit { color: var(--good); }
.id-final .idbadge { color: var(--accent); }
.id-prov .idbadge { color: var(--warn); border-style: dashed; }
.id-bad .idbadge, .iddisputed { color: var(--bad); }
.iddisputed { font-weight: 800; }
.idfacts { margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.idfacts div { display: flex; flex-wrap: wrap; column-gap: var(--s2); }
.idfacts dt { color: var(--muted); min-width: 7.5em; }
.idfacts dd { margin: 0; overflow-wrap: anywhere; }
.a-idrecorded .avatar { background: var(--accent-bg); color: var(--accent); border: 2px solid var(--accent); }
.a-recorded .avatar { background: var(--card-2); color: var(--muted); border: 2px dashed var(--warn); }
.a-idcounted .avatar { background: var(--warn-bg); color: var(--warn); border: 2px dashed var(--warn); }
.a-id-bad .avatar, .a-idcounted.a-id-bad .avatar { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.abind { font-style: italic; }
