:root {
    font-family: Arial, "Liberation Sans", system-ui, sans-serif;
    color: #202d3b;
    background: #f6f7f8;
    line-height: 1.5;
    font-size: 14px;
    --accent: #be4a1b;
    --line: #dde2e6;
    --muted: #697684;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245c8c; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; background: #23374a; color: white; border: 1px solid #23374a; border-radius: 6px; padding: 10px 16px; }
button:hover { background: #344f68; }
button:disabled { opacity: .5; cursor: wait; }
button.quiet { background: white; color: #425568; border-color: var(--line); padding: 7px 12px; }
input, select { min-width: 0; width: 100%; border: 1px solid #ccd4db; background: white; color: #203347; border-radius: 6px; padding: 11px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid #c56636; outline-offset: 3px; }
header { background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 21px 4%; gap: 28px; }
.brand { color: #24394a; font-size: 23px; font-weight: 750; display: flex; align-items: center; gap: 9px; white-space: nowrap; letter-spacing: -.6px; }
.brand svg { color: var(--accent); }
nav { display: flex; gap: 25px; flex: 1; justify-content: center; }
nav a { color: #657282; font-size: 13px; }
nav a[aria-current] { color: var(--accent); font-weight: 700; }
.connection { color: #267154; font-size: 12px; white-space: nowrap; background: #eef7f2; border-radius: 20px; padding: 5px 11px; }
.connection:before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.connection.offline { color: #98541e; background: #fff2e5; }
main { max-width: 1280px; margin: auto; padding: 0 32px; }
.search-area { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 60px; padding: 46px 0 34px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .18em; font-weight: 700; }
h1 { font-size: 43px; letter-spacing: -1.7px; line-height: 1.1; margin: 14px 0; font-weight: 600; }
p { color: var(--muted); }
.search-area p { font-size: 13px; }
label { display: block; font-size: 12px; color: #536170; }
.search-box { display: flex; background: white; border: 1px solid #bcc7d0; border-radius: 7px; padding: 5px; gap: 6px; margin-top: 10px; box-shadow: 0 3px 8px #24394a08; }
.search-box input { border: 0; padding: 12px; }
.search-box button { background: var(--accent); border-color: var(--accent); white-space: nowrap; }
small { color: var(--muted); font-size: 11px; }
.search-area small { display: block; margin-top: 9px; }
#sync-banner { border: 1px solid #d8e4e0; background: #eff5f2; border-radius: 5px; padding: 10px 15px; font-size: 12px; color: #49635a; overflow-wrap: anywhere; }
#sync-banner.warning, .warning { background: #fff4e5; border: 1px solid #e6c99f; color: #885827; border-radius: 5px; padding: 13px; }
#error:empty { display: none; }
#error { overflow-wrap: anywhere; padding: 12px 15px; background: #fbece8; color: #9a3828; border-radius: 5px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 25px 0 20px; color: var(--muted); font-size: 12px; gap: 14px; }
.toolbar>div:last-child { display: flex; gap: 15px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 25px; }
.stats article { padding: 25px; border-right: 1px solid var(--line); min-width: 0; }
.stats article:last-child { border: 0; }
.stats span, .stats small { display: block; color: var(--muted); font-size: 12px; }
.stats strong { display: block; font-size: 30px; letter-spacing: -1px; font-weight: 500; margin: 7px 0; overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; margin: 0; }
.card-head>a { font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 6px; }
.card .table-wrap { border: 0; border-radius: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: var(--muted); font-weight: 400; background: #f8fafb; font-size: 11px; white-space: nowrap; }
th, td { padding: 14px 13px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.hash { font-family: ui-monospace, "Liberation Mono", monospace; font-size: 11px; white-space: nowrap; }
.hash.full { white-space: normal; overflow-wrap: anywhere; }
.parties { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.badge { display: inline-block; font-size: 10px; border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.badge.success { color: #277253; background: #e8f5ed; }
.badge.failure { color: #a14e2e; background: #fbede5; }
.badge.pending { color: #87631a; background: #fff4ce; }
.scope-note { border-left: 3px solid #bfcad4; padding: 16px 20px; margin: 30px 0; font-size: 13px; }
.scope-note p { margin-bottom: 0; font-size: 12px; }
.section-title { margin: 5px 0 22px; }
.section-title h2 { font-size: 25px; margin-bottom: 10px; }
.section-title p { overflow-wrap: anywhere; font-size: 12px; }
.filters { display: flex; gap: 14px; align-items: end; margin-bottom: 22px; }
.filters label { flex: 1; }
.filters label:last-of-type { flex: 2; }
.filters input, .filters select { margin-top: 7px; }
.pagination { display: flex; justify-content: end; gap: 20px; align-items: center; font-size: 12px; padding: 20px 3px; }
dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 0; font-size: 13px; }
dt, dd { border-top: 1px solid #edf0f2; padding: 13px 0; margin: 0; overflow-wrap: anywhere; }
dt { color: var(--muted); }
dd { color: #2c4053; }
dd .hash { font-size: 12px; }
.raw { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 17px 22px; margin: 18px 0; }
summary { cursor: pointer; font-size: 12px; color: #526373; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; max-height: 400px; overflow-y: auto; font-size: 12px; background: #f7f9fa; padding: 14px; border-radius: 4px; }
.simulation { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 15px; }
.simulation input { margin-top: 7px; }
.simulation button { justify-self: start; }
.simulation pre { grid-column: 1/-1; margin: 0; }
.simulation pre:empty { display: none; }
.muted { color: var(--muted); font-size: 12px; }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); }
footer { margin-top: 50px; padding: 30px 0 45px; border-top: 1px solid var(--line); }
footer p, footer summary { font-size: 11px; }
footer .brand.small { font-size: 16px; margin-bottom: 20px; }
footer .brand span { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: normal; margin-left: 8px; }
#chain-id { overflow-wrap: anywhere; }
@media(max-width: 1050px) {
    header { flex-wrap: wrap; }
    nav { order: 3; flex-basis: 100%; justify-content: start; overflow-x: auto; gap: 23px; }
    .overview-grid { grid-template-columns: 1fr; }
    .search-area { gap: 25px; }
    .stats article { padding: 20px; }
}
@media(max-width: 650px) {
    header { padding: 20px; gap: 20px; }
    main { padding: 0 18px; }
    .search-area { grid-template-columns: 1fr; padding: 30px 0 24px; gap: 12px; }
    h1 { font-size: 37px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats article:nth-child(2) { border-right: 0; }
    .stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats strong { font-size: 26px; }
    .stats article { padding: 17px; }
    .card { padding: 17px; }
    .filters { flex-wrap: wrap; }
    .filters label:last-of-type { flex-basis: 100%; }
    .filters button { width: 100%; }
    dl { grid-template-columns: 1fr; }
    dt { padding-bottom: 4px; }
    dd { border-top: 0; padding-top: 0; }
    .simulation { grid-template-columns: 1fr; }
    .brand { font-size: 21px; }
    footer .brand { flex-wrap: wrap; white-space: normal; }
    footer .brand span { margin: 0; flex-basis: 100%; }
}
