main{padding-bottom:1rem}.card{margin-bottom:var(--pf-gap)}
.history-controls{justify-content:flex-start;gap:.6rem}.history-controls label{font-size:.875rem;color:var(--muted)}label input{max-width:100%}
#matrix,#blocks,#comparison{border:1px solid var(--line);border-radius:7px;min-height:2.6rem}
.table-wrap table{font-size:.93rem;min-width:0;table-layout:fixed}
.table-wrap :is(th,td){text-align:left;padding:.55rem;white-space:normal;overflow-wrap:anywhere}
.table-wrap td:first-child button{font:inherit;text-align:left}.table-wrap td[data-kind="block"]{color:var(--mint)}.table-wrap td[data-kind="absent"]{color:var(--gold)}
section[hidden]{display:none!important}.card button{vertical-align:middle}
#validator-inspection{overflow-wrap:anywhere}
@media(max-width:500px){.history-controls label{width:calc(50% - .6rem)}.history-controls label input{width:100%}}
#tracks{margin-top:.8rem;border:1px solid var(--line);border-radius:7px;background:#0a161e}
.history-navigation{display:flex;gap:1.35rem;margin-top:1rem}.history-navigation a{color:var(--pf-info);text-underline-offset:.3em}.history-navigation [aria-current]{color:var(--mint)}
#visual-tracks,#visual-heatmap{border:1px solid var(--line);border-radius:8px}
.timeline-history{display:block;max-inline-size:100%;block-size:auto}
.timeline-history .selected-band{fill:#142e37}.timeline-history .series-name{fill:#d3eee4;font:600 12px system-ui}.timeline-history .series-data{fill:#b4cdd3;font:12px system-ui}
.timeline-history .gap-bar{fill:#263341;stroke:#647988;stroke-dasharray:3 3}.timeline-history .basis-bar{fill:#26434d}.timeline-history .mint-bar{fill:#9eead6}.timeline-history .sky-bar{fill:#86bdcf}.timeline-history .negative-bar{fill:#e7a46b}
#visual-heatmap th[scope=row]{text-align:left;background:#101d28}
#visual-heatmap .heat-cell{width:min(100%,2.75rem);padding:0;min-height:2.5rem;text-align:center;color:#e6f6f1;font:700 1.04rem ui-monospace,monospace}
#visual-heatmap .heat-block{background:#4cb9a436}#visual-heatmap .heat-nil{background:#d7a65930}#visual-heatmap .heat-absent{background:#e06c7138}
#visual-heatmap .heat-unavailable{background:#1c2731;border-style:dashed}#visual-heatmap .heat-outside{background:#252835;color:#b2afc8}
#visual-heatmap [aria-pressed=true]{border-color:#9eead6;color:#9eead6}
#visual-inspector{overflow-wrap:anywhere}#visual-utc-start,#visual-utc-end{max-width:100%}
@media(max-width:500px){.history-navigation{gap:.8rem;flex-wrap:wrap}.history-controls #visual-height-fields label,.history-controls #visual-time-fields label{display:block;width:auto}}
.history-hit{fill:transparent;stroke:transparent;cursor:crosshair}
.history-hit.cursor-height,.history-hit:focus{stroke:#a3efde;stroke-width:2;stroke-dasharray:4 4;outline:none}
#visual-heatmap .cursor-height{box-shadow:inset 0 -2px 0 #9eead6}
#visual-cursor{min-block-size:3em;font-variant-numeric:tabular-nums}
.timeline-history .history-trend{fill:none;stroke:#82d9c7;stroke-width:2;pointer-events:none}



/* Information never scrolls inside a card. Each responsive row retains its
   table semantics and adds visible column labels when rearranged. */
.table-wrap{overflow:visible;max-block-size:none}
.table-wrap th{position:static}
.table-wrap:empty{display:none}
.table-wrap button{max-inline-size:100%;overflow-wrap:anywhere;white-space:normal}
.history-data-table, .history-heat-table{font-variant-numeric:tabular-nums}
.history-cell-label{display:none}
.history-cell-value{min-inline-size:0}
#visual-tracks{display:grid;align-items:start;gap:.65rem}
#visual-tracks:empty{display:none}
#visual-heatmap thead th:first-child,#visual-heatmap tbody th{inline-size:35%}
#visual-heatmap td,#visual-heatmap th:not(:first-child){text-align:center}
#visual-heatmap .history-validator-label,#matrix .history-validator-label{
  display:grid;gap:.22em;inline-size:100%;padding:.48em .56em;text-align:start;
  font-family:system-ui,sans-serif;line-height:1.25
}
.history-moniker{color:var(--text);overflow-wrap:anywhere;font-weight:650;min-block-size:1.25em}
.history-address{font:500 .83em/1.35 ui-monospace,monospace;color:var(--muted);overflow-wrap:anywhere}
.history-metric-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.7rem;padding:.75rem;
  font-variant-numeric:tabular-nums
}
.history-metric-card{min-inline-size:0;border:1px solid var(--line);padding:.75rem;border-radius:7px;background:#101d28}
.history-metric-card h3{margin:0 0 .5rem;color:var(--mint);overflow-wrap:anywhere}
.history-metric-card dl{display:grid;gap:.6rem;margin:0}
.history-metric-card dt{font-size:var(--pf-meta);color:var(--muted)}
.history-metric-card dd{margin:0;color:var(--text);overflow-wrap:anywhere}
.history-metric-card meter{display:block;width:100%;height:.7rem;margin-top:.2rem;accent-color:#9eead6}
.history-controls label, #historical-heatmap label{min-inline-size:0;max-inline-size:100%}
.history-controls :is(input,select,button), #historical-heatmap :is(input,select,button){
  min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere
}
#visual-height-fields[hidden],#visual-time-fields[hidden]{display:none}
#visual-height-fields,#visual-time-fields{
  display:flex;flex-wrap:wrap;gap:.5rem;min-inline-size:0;
}
#visual-height-fields label,#visual-time-fields label{width:auto;min-inline-size:0}
#visual-height-fields input,#visual-time-fields input{max-inline-size:min(100%,16rem)}
#history-preview.edition-preview{max-block-size:none;overflow:visible}
#history-preview .pf-paper-table{max-inline-size:100%;overflow:visible}
#history-preview .pf-paper-table table{table-layout:fixed;inline-size:100%;min-inline-size:0}
#history-preview .pf-paper-table :is(th,td){overflow-wrap:anywhere;white-space:normal}
#identity{min-block-size:1.5em;font-variant-numeric:tabular-nums}

@media(max-width:1000px){
  .history-data-table,.history-data-table tbody,.history-data-table td{display:block}
  .history-data-table thead{
    position:absolute;inline-size:1px;block-size:1px;
    clip-path:inset(50%);white-space:nowrap;overflow:hidden
  }
  .history-data-table tbody tr{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.3rem .85rem;padding:.5rem .7rem;border-bottom:1px solid var(--line)
  }
  .history-data-table tbody tr:last-child{border-block-end:0}
  .table-wrap .history-data-table td{
    min-inline-size:0;border:0;padding:.27rem .13rem;
    font:var(--pf-meta)/1.45 system-ui,sans-serif;overflow-wrap:anywhere
  }
  .history-data-table td:first-child{grid-column:1/-1;font-weight:650}
  .history-data-table .history-cell-label{
    display:block;color:var(--muted);font-size:.79rem;line-height:1.22;margin-block-end:.22rem
  }
  #matrix .history-data-table tr{grid-template-columns:repeat(3,minmax(0,1fr))}
  #matrix .history-data-table td:not(:first-child){text-align:center}
}
@media(max-width:815px){
  .history-heat-table,.history-heat-table :is(thead,tbody){display:block}
  .history-heat-table tr{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6.1rem),1fr));
    gap:.32rem .5rem;padding:.45rem .55rem;border-block-end:1px solid var(--line)
  }
  #visual-heatmap .history-heat-table tr > :is(th,td){border:0;padding:.16rem;min-inline-size:0}
  #visual-heatmap .history-heat-table tr > th:first-child{grid-column:1/-1;inline-size:100%;text-align:start}
  #visual-heatmap thead tr:first-child{background:#101d28}
  #visual-heatmap thead th button{inline-size:100%;min-block-size:2.75rem}
  #visual-heatmap .heat-table-short{display:table}
  #visual-heatmap .heat-table-short thead{display:table-header-group}
  #visual-heatmap .heat-table-short tbody{display:table-row-group}
  #visual-heatmap .heat-table-short tr{display:table-row}
  #visual-heatmap .heat-table-short tr > :is(th,td){display:table-cell;padding:.35rem .24rem;border-block-end:1px solid var(--line)}
  #visual-heatmap .heat-table-short tr > th:first-child{inline-size:52%}
  #visual-heatmap .heat-table-short thead th button{padding-inline:.16rem}
  #visual-heatmap .heat-table-short .history-cell-label{display:none}
  #visual-heatmap .heat-table-short .heat-cell{min-inline-size:0}
  #visual-heatmap .history-cell-label{
    display:block;color:var(--muted);font-size:.77rem;line-height:1.2;margin-block-end:.2rem
  }
  #visual-heatmap .heat-cell{min-inline-size:2.75rem;min-block-size:2.75rem}
  #visual-heatmap .cursor-height{box-shadow:inset 0 -2px 0 #9eead6}
  #identity{min-block-size:4.5em}
}
@media(max-width:480px){
  #visual-cursor{min-block-size:4.5em}
  #history-preview .pf-paper-document{padding-inline:clamp(8px,3vw,17px)}
  #history-preview .pf-paper-table :is(th,td){padding-inline:.2rem}
}

@media(max-width:352px){
  #visual-heatmap .heat-table-short tr > th:first-child{inline-size:42%}
  #visual-heatmap .heat-table-short tbody th .history-validator-label{padding-inline:.35em}
}

@media(max-width:660px){
  #history-preview .history-preview-table,#history-preview .history-preview-table tbody{display:block}
  #history-preview .history-preview-table caption{display:block;text-align:start}
  #history-preview .history-preview-table thead{
    position:absolute;inline-size:1px;block-size:1px;clip-path:inset(50%);white-space:nowrap
  }
  #history-preview .history-preview-table tr{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.23rem .5rem;
    border-block-end:1px solid var(--paper-rule,#547177);padding-block:.32rem
  }
  #history-preview .history-preview-table tbody td{
    display:block;min-inline-size:0;padding:.2rem .24rem;border:0;overflow-wrap:anywhere
  }
  #history-preview .history-preview-table .history-cell-label{
    display:block;font-size:.79rem;color:var(--paper-soft,#a6c6c9);font-weight:600
  }
}

.history-report-types {display:grid;gap:.75rem;margin-top:.75rem}
.history-report-types fieldset {min-inline-size:0;border:1px solid var(--line);border-radius:.45rem;padding:.55rem .8rem .8rem}
.history-report-types legend {font-weight:700;padding-inline:.25rem}
.history-report-types p {margin:.1rem 0 .55rem}
.history-report-types fieldset>label {display:inline-flex;align-items:center;gap:.4rem;margin-top:.6rem}
@media (min-width:850px) {
  .history-report-types {grid-template-columns:repeat(3,minmax(0,1fr))}
}
