/* TgWitness live showcase: chart components on top of the site's guide.css tokens. */

/* topbar status */
.top-nav { gap: 10px 18px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border: 1px solid var(--success-border);
  border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.live-pill i, .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 1.8s ease-in-out infinite; }
.live-pill.stale { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }
.live-pill.stale i { animation: none; }
.utc { color: var(--text); font: 600 14px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* hero */
.live-badge { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.hero-figure { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 22px; margin: 30px 0 4px; }
.hf-value { color: var(--text); font-size: clamp(52px, 8vw, 84px); font-weight: 780; line-height: .95; letter-spacing: -.045em; }
.hf-label { max-width: 520px; padding-bottom: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.hf-label b { color: var(--text); }
.since { display: block; margin-top: 4px; color: var(--text-2); font: 600 12.5px/1.4 var(--mono); }
.hero .pipeline { margin-top: 34px; }
.banner { margin: 18px 0 0; padding: 13px 18px; border: 1px solid var(--warning-border); border-radius: 14px; background: var(--warning-soft); color: var(--text); font-size: 14.5px; }

/* kpi tiles */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { position: relative; padding: 16px 18px 15px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: card-in .6s var(--ease) backwards; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi:nth-child(2) { animation-delay: .06s; } .kpi:nth-child(3) { animation-delay: .12s; } .kpi:nth-child(4) { animation-delay: .18s; }
.kpi:nth-child(5) { animation-delay: .24s; } .kpi:nth-child(6) { animation-delay: .3s; }
.kpi-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label .i { width: 16px; height: 16px; }
.kpi-value { margin-top: 6px; color: var(--text); font-size: 30px; font-weight: 760; line-height: 1.1; letter-spacing: -.03em; }
.kpi-sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.kpi-key { position: absolute; top: 0; left: 18px; right: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--border-strong); }
.kpi.k-accent .kpi-key { background: var(--accent); } .kpi.k-danger .kpi-key { background: var(--danger); }
.kpi.k-violet .kpi-key { background: var(--violet); } .kpi.k-teal .kpi-key { background: var(--teal); } .kpi.k-success .kpi-key { background: var(--success); }

/* section chrome */
.note { max-width: 860px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.empty { color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .sep { width: 1px; height: 16px; background: var(--border); }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--surface-3); }
.sw.held2 { background: var(--success); } .sw.held1 { background: var(--warning); } .sw.held0 { background: var(--danger); }
.sw.none { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.sw.paused { background: repeating-linear-gradient(135deg, var(--border-strong) 0 2px, transparent 2px 4px); }
.sw.present { background: var(--accent); } .sw.gone { background: var(--danger); } .sw.start { width: 2px; height: 14px; background: var(--text); }

/* live stream */
.stream { margin: 18px 0 0; padding: 0; list-style: none; }
.ev { display: grid; grid-template-columns: 64px 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0;
  padding: 12px 14px; border-bottom: 1px solid var(--border); border-radius: 12px; }
.ev.fresh { animation: ev-in .6s var(--ease), ev-flash 2.4s ease-out; }
@keyframes ev-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes ev-flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.ev .t { color: var(--muted); font: 500 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px 4px 8px; border: 1px solid; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.tag .i { width: 14px; height: 14px; }
.ev.message .tag { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-text); }
.ev.edit .tag { border-color: var(--violet-border); background: var(--violet-soft); color: var(--violet); }
.ev.delete .tag { border-color: var(--danger-border); background: var(--danger-soft); color: var(--danger); }
.ev .body { min-width: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.ev .who { margin-right: 8px; color: var(--accent-text); font-weight: 650; }
.ev .txt { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mask { display: inline-block; height: .78em; margin: 0 2px; vertical-align: -.02em; border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--border-strong) 0 3px, var(--surface-3) 3px 6px); }
.shape { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.w { display: inline-block; height: 10px; border-radius: 4px; background: var(--border-strong); }
.w.was { position: relative; background: var(--danger); opacity: .7; }
.w.was::after { content: ""; position: absolute; left: -3px; right: -3px; top: 4.5px; height: 1.5px; background: var(--text); }
.w.now { background: var(--violet); }
.ev.delete .w { background: repeating-linear-gradient(135deg, var(--danger) 0 3px, transparent 3px 6px); opacity: .8; }
.arrow { margin: 0 3px; color: var(--muted); font-size: 13px; }
.words { margin-left: 8px; color: var(--muted); font-size: 12.5px; }
.ev .side { display: flex; align-items: center; gap: 8px; }
.chatref { color: var(--muted); font-size: 13px; white-space: nowrap; }
.seen { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--success-soft);
  color: var(--success); font: 700 12px/1.2 var(--mono); }
.seen .i { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .ev { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .ev .body { grid-column: 1 / -1; } .ev .side { grid-column: 1 / -1; }
}

/* lanes */
.lanes { display: grid; gap: 10px; margin: 18px 0 0; }
.lane { display: grid; grid-template-columns: 180px max-content minmax(0, 1fr) 54px; gap: 16px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.lane .name { min-width: 0; color: var(--text); font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .members { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.roles { display: flex; gap: 6px; min-width: 84px; }
.dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.dot.collector { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: dot-ring 2.4s ease-out infinite; }
.dot.checker { background: var(--success); }
.dot.resting { background: transparent; box-shadow: inset 0 0 0 2px var(--warning); }
@keyframes dot-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.strip { display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); gap: 2px; height: 18px; }
.strip i { border-radius: 2px; background: var(--surface-3); transition: background .4s; animation: cell-in .5s var(--ease) backwards; }
.strip i.st { background: repeating-linear-gradient(135deg, var(--border-strong) 0 2px, transparent 2px 4px); }
.strip i.h2 { background: var(--success); } .strip i.h1 { background: var(--warning); } .strip i.h0 { background: var(--danger); }
.strip i:hover { filter: brightness(1.15); outline: 2px solid var(--text); outline-offset: 0; }
@keyframes cell-in { from { opacity: 0; transform: scaleY(.3); } }
.lane .pct { color: var(--text); font-size: 14px; font-weight: 700; text-align: right; }
@media (max-width: 860px) {
  .strip { gap: 1px; }
  .lane { grid-template-columns: minmax(0, 1fr) auto auto; }
  .lane .strip { grid-column: 1 / -1; grid-row: 2; }
}

/* 30-day columns */
.sum { margin: 18px 0 14px; color: var(--text); font-size: 17px; font-weight: 650; }
.chart { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 240px auto; column-gap: 10px; }
.y-axis { position: relative; }
.y-axis span { position: absolute; right: 0; transform: translateY(50%); color: var(--muted); font: 500 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.plot { position: relative; }
.grid i { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); }
.cols { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; }
.col { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; height: 100%; padding: 0 1px; cursor: default; }
.col .seg { width: min(70%, 24px); min-height: 0; transform-origin: bottom; animation: grow .9s var(--ease) backwards; }
.col .present { background: var(--accent); }
.col .gone { background: var(--danger); border-radius: 4px 4px 0 0; }
.col .seg:last-child { border-radius: 4px 4px 0 0; }
.col:hover .seg { filter: brightness(1.12); }
.col.pre .present { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.col.start::before { content: ""; position: absolute; top: -6px; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--text); opacity: .75; }
.col.start::after { content: "live from here"; position: absolute; top: -8px; right: calc(50% + 6px); padding: 2px 8px;
  border-radius: 999px; background: var(--text); color: var(--surface); font-size: 11px; font-weight: 700; white-space: nowrap; }
@keyframes grow { from { transform: scaleY(0); } }
.x-axis { grid-column: 2; position: relative; height: 22px; margin-top: 8px; }
.x-axis span { position: absolute; transform: translateX(-50%); color: var(--muted); font: 500 11.5px/1 var(--mono); white-space: nowrap; }
.table-view { margin-top: 14px; }
.table-view summary { color: var(--accent-text); font-size: 14px; font-weight: 650; cursor: pointer; }
.table-view table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: right; }
.table-view th:first-child, .table-view td:first-child { text-align: left; }

/* heatmaps */
.heat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
@media (max-width: 900px) { .heat-pair { grid-template-columns: 1fr; } }
.heat-pair h3 { margin: 0 0 12px; font-size: 16px; }
.heatmap { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hm-h, .hm-d { color: var(--muted); font: 500 10.5px/1 var(--mono); text-align: center; }
.hm-d { text-align: left; }
.heatmap .c { aspect-ratio: 1; border-radius: 4px; --i: 0; background: color-mix(in srgb, var(--accent) calc(var(--i) * 100%), var(--surface-3));
  animation: cell-fade .6s var(--ease) backwards; transition: background .6s; }
.heatmap.hot .c { background: color-mix(in srgb, var(--danger) calc(var(--i) * 100%), var(--surface-3)); }
.heatmap .c:hover { outline: 2px solid var(--text); outline-offset: 1px; }
@keyframes cell-fade { from { opacity: 0; transform: scale(.6); } }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.ramp { display: inline-block; width: 140px; height: 10px; border-radius: 4px; }
.ramp.accent { background: linear-gradient(90deg, var(--surface-3), var(--accent)); }
.ramp.danger { background: linear-gradient(90deg, var(--surface-3), var(--danger)); }

/* day cards */
.day-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 1000px) { .day-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .day-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day { padding: 13px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.day.start { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 24px -14px rgb(37 99 235 / .6); }
.day .d { color: var(--text); font-size: 14px; font-weight: 700; }
.day .flag { display: inline-block; margin: 4px 0 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 650; }
.day.start .flag { background: var(--accent); color: #fff; }
.day.live .flag { background: var(--success-soft); color: var(--success); }
.day .row { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.day .row i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.day .row b { margin-left: auto; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

/* stops */
.stops { margin: 16px 0 0; padding: 0; list-style: none; }
.stops li { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text); }
.stops .when { color: var(--muted); font: 500 13px/1.6 var(--mono); }

/* chart series: messages, deletions, edits; each set checked for lightness, chroma, CVD and contrast on its surface */
:root { --c-msg: #2563eb; --c-del: #b42318; --c-edit: #6d3fc0; }
[data-theme="dark"] { --c-msg: #4b84f2; --c-del: #e8645a; --c-edit: #9b7af0; }
.sw.f-msg { background: var(--c-msg); } .sw.f-del { background: var(--c-del); } .sw.f-edit { background: var(--c-edit); }

/* measured work */
.kpis.work-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
@media (max-width: 1000px) { .kpis.work-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow-chart { grid-template-rows: 200px auto; }
.flow .col { padding: 0 1px; }
.flow .col .seg { width: min(80%, 14px); border-radius: 0; animation-duration: .7s; }
.flow .col .seg.top { border-radius: 3px 3px 0 0; }
.flow .f-msg { background: var(--c-msg); } .flow .f-del { background: var(--c-del); } .flow .f-edit { background: var(--c-edit); }
.dists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
@media (max-width: 1000px) { .dists { grid-template-columns: 1fr; } }
.dist { padding: 16px 18px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.dist h3 { margin: 0 0 4px; font-size: 15.5px; }
.dist-lead { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.dist-lead b { color: var(--text); }
.hbars.c-msg { --bar: var(--c-msg); } .hbars.c-seen { --bar: var(--teal); } .hbars.c-del { --bar: var(--c-del); }
.hbar { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; cursor: default; }
.hb-label { color: var(--text-2); font: 500 12.5px/1.2 var(--mono); white-space: nowrap; }
.hb-track { position: relative; height: 12px; border-radius: 4px; background: var(--surface-3); }
.hb-track i { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; background: var(--bar);
  transform-origin: left; transition: width .7s var(--ease); animation: grow-x .9s var(--ease) backwards; }
.hbar:hover .hb-track i { filter: brightness(1.12); }
.hb-val { min-width: 84px; color: var(--text); font: 650 12.5px/1.2 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hb-val small { color: var(--muted); font-size: inherit; font-weight: 500; }
@keyframes grow-x { from { transform: scaleX(0); } }

/* volume by group */
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .gcards { grid-template-columns: 1fr; } }
.gcard { padding: 16px 18px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: card-in .6s var(--ease) backwards; }
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.g-name { color: var(--text); font-size: 15px; font-weight: 700; }
.g-members { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.g-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.g-big b { color: var(--text); font-size: 28px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.g-big span { color: var(--muted); font-size: 13px; }
.gcard.quiet { background: var(--surface-2); }
.gcard.quiet .g-big b { color: var(--muted); }
.g-quiet { margin: 10px 0 0; padding: 9px 12px; border: 1px dashed var(--border-strong); border-radius: 11px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.gcard.quiet .g-spark { display: none; }
.g-spark { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 56px; margin: 12px 0 4px; }
.g-spark .sc { position: relative; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; cursor: default; }
.g-spark .sc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); }
.g-spark i { display: block; flex: none; border-radius: 2px 2px 0 0; transform-origin: bottom; animation: grow .9s var(--ease) backwards; }
.g-spark .p { background: var(--accent); } .g-spark .m { background: var(--danger); }
.g-spark .sc.pre .p { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.g-spark .sc.start::before { content: ""; position: absolute; top: -5px; bottom: 0; left: 50%; z-index: 1; width: 2px; margin-left: -1px; background: var(--text); opacity: .7; }
.g-spark .sc:hover i { filter: brightness(1.12); }
.g-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 12px 0 0; }
.g-stats div { min-width: 0; }
.g-stats dt { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.g-stats dd { margin: 2px 0 0; color: var(--text); font: 650 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; }

/* scroll a group */
.feed-tabs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
@media (max-width: 760px) { .feed-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ftab { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.ftab:hover { transform: translateY(-1px); border-color: var(--accent-border); }
.ftab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ftab b { font-size: 17px; font-weight: 760; line-height: 1; }
.ftab .n { color: var(--muted); font: 600 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.ftab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ftab[aria-selected="true"] .n { color: var(--accent-text); }
.feed-head { margin: 18px 0 10px; color: var(--text); font-size: 15px; font-weight: 700; }
.feed-head span { color: var(--muted); font-weight: 500; }
.feed-box { max-height: 640px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); scrollbar-width: thin; }
.feed-box .stream { margin: 0; padding: 0 8px 6px; }
.feed-box .chatref { display: none; }
.feed-box .empty { margin: 0; padding: 18px; }
.fsep { position: sticky; top: 0; z-index: 1; margin: 0 -8px; padding: 9px 16px 7px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: .04em; }
.fgap { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 7px 14px; border-radius: 10px;
  background: repeating-linear-gradient(135deg, var(--danger-soft) 0 6px, transparent 6px 12px); color: var(--danger); font-size: 12.5px; font-weight: 650; }
.fgap .i { flex: none; width: 15px; height: 15px; }

/* integrity */
.proof { display: flex; align-items: center; gap: 11px; margin: 16px 0 0; padding: 11px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.45; }
#feed-proof { margin: 0 0 12px; }
.proof-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.proof-icon .i { width: 15px; height: 15px; }
.proof.ok { border-color: var(--success-border); background: var(--success-soft); color: var(--text); }
.proof.ok .proof-icon { background: var(--success); color: #fff; animation: stamp-in .55s var(--ease); }
.proof.bad { border-color: var(--danger-border); background: var(--danger-soft); color: var(--text); }
.proof.bad .proof-icon { background: var(--danger); color: #fff; }
.proof.na { border-color: var(--warning-border); background: var(--warning-soft); color: var(--text); }
.proof.na .proof-icon { background: var(--warning); color: #fff; }
@keyframes stamp-in { 0% { transform: scale(0) rotate(-25deg); } 70% { transform: scale(1.2); } 100% { transform: none; } }
.heads { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 860px) { .heads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); cursor: default; animation: card-in .6s var(--ease) backwards; }
.head b { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--violet-soft); color: var(--violet); font-size: 15px; }
.head .hn { color: var(--text); font-size: 13px; font-weight: 650; }
.head code { overflow: hidden; color: var(--muted); font: 500 11.5px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.head.tick { animation: head-tick 1.2s var(--ease); }
@keyframes head-tick { 0% { border-color: var(--violet); box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 50%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.hash { color: var(--muted); font: 500 11.5px/1 var(--mono); white-space: nowrap; cursor: default; }
.hash:hover { color: var(--violet); }
#chain .note code { color: var(--text-2); font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; }

/* tooltip */
.chart-tip { position: fixed; z-index: 80; display: grid; gap: 2px; max-width: 260px; padding: 8px 11px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); pointer-events: none; }
.chart-tip strong { color: var(--text); font-size: 14px; }
.chart-tip span { color: var(--muted); font-size: 12.5px; }
