/* Tally explorer. Tokens, buttons, cards and tables come from /assets/site.css. */
[hidden] { display: none !important; }
.ex section { padding: 0; }
.ex { padding-top: 24px; padding-bottom: 24px; }
.ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin: 10px 0 18px; }
.ex-head h1 { font-size: 34px; margin-bottom: 6px; }
.ex-head p { margin: 0; max-width: 36em; }
.access { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.keyfield { display: flex; gap: 8px; }
.keyfield input { width: 220px; }
.ex input[type=search], .ex input[type=password], .ex input[type=text], .ex input[type=date], .ex select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.ex input::placeholder { color: var(--muted); opacity: .8; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0; }
.xtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.xtabs button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; color: var(--muted); padding: 11px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.xtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { font: inherit; font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card-lg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.cohead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.cohead h2 { font-size: 22px; margin: 0; }
.cohead span { font-size: 14px; color: var(--muted); }
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .tiles4 { grid-template-columns: repeat(2, 1fr); } }
.tile4 { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile4 .k { font-size: 13px; color: var(--muted); }
.tile4 .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile4 .f { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.pane { display: grid; gap: 10px; position: sticky; top: 78px; }
@media (max-width: 900px) { .pane { position: static; } }
.list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; display: grid; gap: 4px; }
.list button { width: 100%; text-align: left; font: inherit; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.list button:hover { background: var(--accent-soft); }
.list button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.list .g { font-size: 12px; color: var(--muted); display: block; }
.list .b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.controls label { display: inline-flex; gap: 8px; align-items: center; }
.eq { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.eq code { font-size: 12.5px; }
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t .d { white-space: nowrap; }
table.t tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
table.t tr.sub td { color: var(--muted); font-size: 13px; background: var(--bg); }
.bad { color: var(--bad); font-weight: 600; }
.pill { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 10px 0 16px; font-size: 14px; }
.facts div span { display: block; font-size: 12px; color: var(--muted); }
.pg { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .pg { grid-template-columns: 1fr; } }
.pg label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.pg select, .pg input { width: 100%; }
.pg .btn { margin-top: 14px; }
.urlbar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; word-break: break-all; display: flex; gap: 8px; }
.urlbar .m { font-weight: 800; font-size: 12px; color: var(--accent); }
.status { font-size: 12px; font-weight: 700; color: var(--code-dim); }
.time { font-size: 12px; color: var(--code-dim); margin-left: 8px; }
.small-print { font-size: 13px; margin-top: 30px; }
