:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Shrikhand", cursive;
    --font-heading: "Inria Serif", Georgia, serif;
    --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

    --cherry-soda: #a55c55;
    --cherry-dark: #964d48;
    --cherry-on-cherry: #c36c65;
    --cherry-bright: #cc9e9a;
    --cherry-brighter: #e3bebb;
    --soda-bright: #ffd92f;
    --almost-white: #f8f3f3;
    --espresso: #483434;
    --chip-border: rgb(204 158 154 / 0.6);

    --r-sm: 8px;
    --r-md: 12px;
    --r-card: 16px;
    --r-lg: 24px;
    --r-menu: 6px;

    --surface: 249 247 245;
    --header: 248 243 243;
    --raised: 255 255 255;
    --sunken: 251 251 251;
    --subtle: 237 230 230;
    --hover: 248 243 243;
    --menu-selected: 246 231 153;
    --line: 237 230 230;
    --line-control: 215 205 203;
    --line-strong: 185 172 171;
    --fg: 72 52 52;
    --fg-muted: 107 92 91;
    --fg-subtle: 142 126 125;
    --fg-disabled: 185 172 171;
    --focus: 165 92 85;
    --tint: 229 213 212;
    --trend-up: 8 149 65;
    --trend-down: 167 54 57;
    --hero-from: 165 92 85;
    --hero-to: 150 77 72;
    --footer: 150 77 72;
    --st-executed: 230 248 236; --st-executed-fg: 72 52 52; --st-executed-dot: 10 186 81;
    --st-failed: 250 236 236; --st-failed-fg: 167 54 57; --st-failed-dot: 206 68 70;
    --st-rollbacked: 245 219 219; --st-rollbacked-fg: 167 54 57; --st-rollbacked-dot: 167 54 57;
    --st-delivered: 240 234 235; --st-delivered-fg: 72 52 52; --st-delivered-dot: 72 52 52;
    --st-attested: 229 213 212; --st-attested-fg: 72 52 52; --st-attested-dot: 165 92 85;
    --st-pending: 248 243 243; --st-pending-fg: 107 92 91; --st-pending-border: 215 205 203;
    --st-fallback: 237 230 230; --st-fallback-fg: 107 92 91; --st-fallback-dot: 185 172 171;
    --hash-hl-bg: 246 231 153;
    --hash-hl-fg: 72 52 52;
    --icon-disc: transparent;
    --icon-ring: transparent;
    --shadow-card: 0 1px 2px rgba(72, 52, 52, 0.06), 0 4px 16px rgba(72, 52, 52, 0.08);
    --shadow-overlay: 0 1px 3px rgba(72, 52, 52, 0.1), 0 4px 12px rgba(72, 52, 52, 0.08);
    --picker-track: 237 230 230;
    --picker-track-border: 237 230 230;
    --picker-thumb: 255 255 255;
    --picker-thumb-shadow: 0 1px 2px rgb(72 52 52 / 0.12);
    --picker-icon: 107 92 91;
    --picker-icon-active: 72 52 52;
    color-scheme: light;
}

@media screen {
    .dark {
        --surface: 22 15 15;
        --header: 26 18 18;
        --raised: 30 21 21;
        --sunken: 24 17 17;
        --subtle: 39 28 28;
        --hover: 41 29 29;
        --menu-selected: 125 80 76;
        --line: 66 47 47;
        --line-control: 66 47 47;
        --line-strong: 142 126 125;
        --fg: 248 243 243;
        --fg-muted: 185 172 171;
        --fg-subtle: 142 126 125;
        --fg-disabled: 105 88 87;
        --focus: 204 158 154;
        --tint: 82 48 46;
        --trend-up: 109 214 150;
        --trend-down: 216 105 108;
        --hero-from: 47 29 28;
        --hero-to: 36 24 23;
        --footer: 36 24 23;
        --st-executed: 23 56 33; --st-executed-fg: 206 240 220; --st-executed-dot: 109 214 150;
        --st-failed: 81 33 34; --st-failed-fg: 245 219 219; --st-failed-dot: 216 105 108;
        --st-rollbacked: 105 39 40; --st-rollbacked-fg: 245 219 219; --st-rollbacked-dot: 216 105 108;
        --st-delivered: 53 38 38; --st-delivered-fg: 237 230 230; --st-delivered-dot: 185 172 171;
        --st-attested: 71 40 38; --st-attested-fg: 227 190 187; --st-attested-dot: 204 158 154;
        --st-pending: 26 18 18; --st-pending-fg: 185 172 171; --st-pending-border: 66 47 47;
        --st-fallback: 53 38 38; --st-fallback-fg: 185 172 171; --st-fallback-dot: 185 172 171;
        --hash-hl-bg: 82 48 46;
        --hash-hl-fg: 248 243 243;
        --icon-disc: #ede6e6;
        --icon-ring: rgb(255 255 255 / 0.15);
        --chip-border: rgb(227 190 187 / 0.8);
        --shadow-card: 0 0 0 1px rgb(var(--line)), inset 0 1px 0 rgb(255 255 255 / 0.04);
        --shadow-overlay: 0 0 0 1px rgb(var(--line)), 0 12px 32px rgb(0 0 0 / 0.45);
        --picker-track: 22 15 15;
        --picker-track-border: 66 47 47;
        --picker-thumb: 72 52 52;
        --picker-thumb-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
        --picker-icon: 185 172 171;
        --picker-icon-active: 248 243 243;
        color-scheme: dark;
    }
}

/* Base */

*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid rgb(var(--line));
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: rgb(var(--fg));
    background: rgb(var(--surface));
}

h1, h2, h3, p { font-size: inherit; font-weight: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; background: transparent; line-height: inherit; }
button, select, summary { cursor: pointer; }
input::placeholder { color: #b9acab; opacity: 1; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid rgb(var(--focus));
    outline-offset: 2px;
}
.hero :focus-visible, footer :focus-visible { outline-color: var(--soda-bright); }

a, button, select, input, [role="button"] {
    transition-property: color, background-color, border-color, box-shadow, opacity;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.shrink { min-width: 0; }
.noshrink { flex-shrink: 0; }
.muted { color: rgb(var(--fg-muted)); }
.fg { color: rgb(var(--fg)); }
.trend-up { color: rgb(var(--trend-up)); }
.trend-down { color: rgb(var(--trend-down)); }
.tx-hash, [data-hash] { font-family: var(--font-mono); }
.hash-hl {
    background: rgb(var(--hash-hl-bg));
    color: rgb(var(--hash-hl-fg));
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgb(var(--hash-hl-bg));
}

/* Layout */

.gutter { padding-inline: 1rem; }
main { margin-bottom: 0.5rem; }
.main-inner { min-height: 34rem; }
.overlap { position: relative; margin-top: -2.5rem; }

@media (min-width: 1280px) {
    .gutter { padding-inline: 6rem; }
    main { margin-bottom: 3rem; }
}
@media (min-width: 1536px) {
    .gutter { padding-inline: 12rem; }
    .main-inner { min-height: 46rem; }
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-block: 1rem;
    background: rgb(var(--header));
    border-bottom-width: 1px;
}
.logo-link { display: block; border-radius: var(--r-sm); }
.logo {
    width: 9rem;
    min-width: 0;
    height: 32px;
    object-fit: contain;
    object-position: left;
}
.logo-light { display: inline; }
.logo-dark, .dark .logo-light { display: none; }
.dark .logo-dark { display: inline; }

.header-tools { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.apps-menu { position: relative; }
.apps-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    margin: -0.625rem;
    border-radius: var(--r-sm);
    transition: background-color 150ms;
    &:hover { background: rgb(var(--subtle)); }
}
.popover {
    position: absolute;
    right: 0;
    z-index: 20;
    min-width: 8rem;
    margin-top: 0.5rem;
    padding-block: 0.25rem;
    border-radius: var(--r-sm);
    background: rgb(var(--raised));
    color: rgb(var(--fg));
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: var(--shadow-overlay);
    a { display: block; padding: 0.5rem 1rem; }
    a:hover { background: rgb(var(--hover)); }
}

@media (min-width: 768px) {
    .site-header { align-items: stretch; gap: 0; }
    .logo { width: 16rem; min-width: 16rem; object-fit: fill; }
    .apps-menu > summary { padding: 0; margin: 0; }
}
@media (min-width: 1280px) {
    .theme-slot { margin-right: 0.25rem; }
}

/* Ticker */

.ticker-wrap { display: none; }
.ticker {
    display: inline-flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, black 128px, black calc(100% - 128px), transparent 100%);
}
.ticker-list {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: infinite-scroll 25s linear infinite;
    li { margin-inline: 1rem; }
}
.ticker:hover .ticker-list, .ticker:focus-within .ticker-list { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (min-width: 1280px) {
    .ticker-wrap {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding-inline: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}
@media (min-width: 1920px) {
    .ticker { max-width: 72rem; }
}

/* Theme picker */

html.theme-switching *:not(.tp-thumb), html.theme-switching *::before, html.theme-switching *::after {
    transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out, box-shadow 200ms ease-out, outline-color 200ms ease-out !important;
}
.tp-root {
    --seg: 28px;
    --gap: 0px;
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    gap: var(--gap);
    padding: 2px;
    width: calc(3 * var(--seg) + 2 * var(--gap) + 4px);
    border-radius: 9999px;
    background: rgb(var(--picker-track));
    box-shadow: inset 0 0 0 1px rgb(var(--picker-track-border));
}
.tp-thumb {
    --i: 2;
    --s: 1;
    position: absolute;
    top: 2px;
    left: 2px;
    width: var(--seg);
    height: var(--seg);
    border-radius: 9999px;
    background: rgb(var(--picker-thumb));
    box-shadow: var(--picker-thumb-shadow);
    transform: translateX(calc(var(--i) * (var(--seg) + var(--gap)))) scale(var(--s));
    transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
html[data-theme-pref="light"] .tp-thumb { --i: 0; }
html[data-theme-pref="dark"] .tp-thumb { --i: 1; }
.tp-root:has(.tp-seg:active) .tp-thumb { --s: 0.94; transition-duration: 100ms; }
.tp-seg {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--seg);
    height: var(--seg);
    border-radius: 9999px;
    color: rgb(var(--picker-icon));
    &:hover { color: rgb(var(--picker-icon-active)); }
}
html[data-theme-pref="light"] .tp-seg[data-value="light"],
html[data-theme-pref="dark"] .tp-seg[data-value="dark"],
html[data-theme-pref="system"] .tp-seg[data-value="system"],
html:not([data-theme-pref]) .tp-seg[data-value="system"] {
    color: rgb(var(--picker-icon-active));
}
.tp-icon { width: 16px; height: 16px; }
@media (max-width: 767px) {
    .tp-root { --seg: 36px; --gap: 2px; }
    .tp-icon { width: 18px; height: 18px; }
    .tp-seg::before { content: ""; position: absolute; inset: -4px 0; }
}

/* Network icons */

.net-icon {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    overflow: hidden;
    background: var(--icon-disc);
    img { display: block; width: 100%; height: 100%; }
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 0 1px var(--icon-ring);
        pointer-events: none;
    }
}
.net-icon-16 { width: 1rem; height: 1rem; margin-right: 0.5rem; }
.net-icon-20 { width: 1.25rem; height: 1.25rem; }
.net-icon-nodisc { background: transparent; }

/* Hero */

.hero {
    margin-inline: -1rem;
    padding: 0 1rem 3.5rem;
    background-color: rgb(var(--hero-from));
    background-image: linear-gradient(180deg, rgb(var(--hero-from)) 0%, rgb(var(--hero-to)) 100%);
}
.hero-tight { padding-bottom: 3rem; }
.hero-top { width: 100%; padding-block: 0.5rem; }
.hero-total { display: none; margin-top: 1rem; }
.hero-total > div { padding-inline: 1rem; text-align: right; }
.title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 0 0.5rem;
}
.headline {
    padding-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #fff;
}
.headline-lead { padding-bottom: 0.75rem; }
.headline-accent { font-family: var(--font-display); font-style: italic; color: var(--soda-bright); }
.eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cherry-brighter);
}
.hero-total .eyebrow { margin-bottom: 0.25rem; }
.total-big {
    font-size: 3rem;
    line-height: 1;
    color: var(--soda-bright);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .hero-tight { padding-bottom: 3.5rem; }
    .hero-total { display: flex; flex-direction: row-reverse; align-items: flex-end; }
}
@media (min-width: 1280px) {
    .hero { margin-inline: -6rem; padding-inline: 6rem; }
    .hero-top { display: flex; align-items: flex-end; justify-content: space-between; padding-block: 1.5rem; }
    .hero-main { flex-basis: 66.666667%; }
    .hero-total { flex-basis: 33.333333%; margin-top: 0; }
    .title-row { padding: 2.5rem 0 1.25rem; }
    .headline { font-size: 3rem; line-height: 1; }
    .total-big { font-size: 3.75rem; }
}
@media (min-width: 1536px) {
    .hero { margin-inline: -12rem; padding-inline: 12rem; }
}

/* Search */

.search { position: relative; width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.search-icon {
    position: absolute;
    inset-block: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    pointer-events: none;
    color: rgb(var(--fg-muted));
    svg { width: 1.5rem; height: 1.5rem; }
}
.search input {
    display: block;
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background: rgb(var(--sunken));
    color: rgb(var(--fg));
    border: 1px solid rgb(var(--line-strong));
    border-radius: var(--r-md);
    outline: 2px solid transparent;
    outline-offset: 2px;
    &::placeholder { color: rgb(var(--fg-muted)); }
    &:focus-visible { border-color: transparent; box-shadow: 0 0 0 2px var(--soda-bright); }
}
@media (min-width: 1280px) {
    .search input { padding-left: 3rem; font-size: 1.125rem; line-height: 1.75rem; }
}

/* Filters */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--chip-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #fff;
    transition: color 150ms, background-color 150ms, border-color 150ms;
    &:hover { background: var(--cherry-dark); border-color: var(--cherry-brighter); }
    &.is-active { background: #fff; border-color: #fff; color: var(--cherry-dark); font-weight: 500; }
    &.is-active:hover { background: var(--almost-white); }
    &:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--soda-bright); }
    svg { width: 1rem; height: 1rem; margin-left: 0.25rem; }
}
.chip-lg {
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    svg { margin-left: 0; flex-shrink: 0; }
}
.filters-compact .chip { height: 2.25rem; padding-block: 0; }

.mobile-filters { padding-top: 0.5rem; }
.mobile-filters > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
}
.mobile-total { display: flex; align-items: baseline; gap: 0.375rem; }
.mobile-total-num {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--soda-bright);
    font-variant-numeric: tabular-nums;
}
.filter-panel-in { padding-top: 0.75rem; animation: filter-panel-in 150ms ease-out; }
@keyframes filter-panel-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    border-radius: var(--r-menu);
}
.filters-bar { display: none; padding: 0.25rem; }
@media (min-width: 768px) {
    .mobile-filters { display: none; }
    .filters-bar { display: flex; flex-wrap: nowrap; justify-content: flex-end; }
}

.menu { position: relative; }
.menu-panel {
    position: absolute;
    z-index: 30;
    min-width: 8rem;
    margin-top: 0.5rem;
    border-radius: var(--r-menu);
    background: rgb(var(--raised));
    color: rgb(var(--fg));
    box-shadow: var(--shadow-overlay);
    &.is-wide { min-width: 12rem; }
}
.filters-bar .menu-panel { right: 0; }
.filters-compact .menu-panel { left: 0; }
.menu-search {
    padding: 0.5rem;
    input {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
        background: rgb(var(--raised));
        color: rgb(var(--fg));
        border: 1px solid rgb(var(--line-strong));
        border-radius: var(--r-menu);
        outline: 2px solid transparent;
        &:focus { box-shadow: 0 0 0 2px rgb(var(--focus)); }
    }
}
.menu-list {
    max-height: 20rem;
    overflow-y: auto;
    padding-block: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    &:hover, &.is-current { background: rgb(var(--hover)); }
    &.is-selected { background: rgb(var(--menu-selected)); }
}
.menu-check {
    display: none;
    box-sizing: content-box;
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    padding-left: 0.5rem;
    flex-shrink: 0;
}
.dark .menu-check { display: block; }

.reset-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #fff;
    text-underline-offset: 2px;
    &:hover { text-decoration: underline; }
    &:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--soda-bright); }
}
.filters-compact .reset-link { height: 2.25rem; padding-block: 0; }

/* Status pills and badges */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 6rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 300ms, background-color 300ms, border-color 300ms;
}
.pill-dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    transition: background-color 300ms;
}
.pill-executed { background: rgb(var(--st-executed)); color: rgb(var(--st-executed-fg)); .pill-dot { background: rgb(var(--st-executed-dot)); } }
.pill-failed { background: rgb(var(--st-failed)); color: rgb(var(--st-failed-fg)); .pill-dot { background: rgb(var(--st-failed-dot)); } }
.pill-rollbacked { background: rgb(var(--st-rollbacked)); color: rgb(var(--st-rollbacked-fg)); .pill-dot { background: rgb(var(--st-rollbacked-dot)); } }
.pill-delivered { background: rgb(var(--st-delivered)); color: rgb(var(--st-delivered-fg)); .pill-dot { background: rgb(var(--st-delivered-dot)); } }
.pill-attested { background: rgb(var(--st-attested)); color: rgb(var(--st-attested-fg)); .pill-dot { background: rgb(var(--st-attested-dot)); } }
.pill-fallback { background: rgb(var(--st-fallback)); color: rgb(var(--st-fallback-fg)); .pill-dot { background: rgb(var(--st-fallback-dot)); } }
.pill-pending {
    background: rgb(var(--st-pending));
    color: rgb(var(--st-pending-fg));
    border-color: rgb(var(--st-pending-border));
    .pill-dot { background: transparent; border: 1px solid rgb(var(--fg-subtle)); }
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    white-space: nowrap;
    background: rgb(var(--subtle));
    color: rgb(var(--fg-muted));
}

/* Routes and hashes */

.chain { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.chain-name { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-leg { display: flex; align-items: center; gap: 0.5rem; }
.leg-stack { display: flex; flex-direction: column; gap: 0.125rem; }
.leg-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-transform: capitalize;
    color: rgb(var(--fg));
}
.leg-hash, .rollback { font-size: 0.75rem; line-height: 1rem; color: rgb(var(--fg-muted)); }
.rollback { display: flex; align-items: center; gap: 0.25rem; }
.leg-none { font-size: 0.875rem; line-height: 1.25rem; color: rgb(var(--fg-muted)); }
.arrow { line-height: 1; text-align: center; color: rgb(var(--fg-muted)); }
.route {
    display: grid;
    grid-template-columns: minmax(6.5rem, 9rem) minmax(1rem, 1fr) minmax(6.5rem, 1fr);
    align-items: center;
    column-gap: 0.5rem;
    min-width: 0;
}
@media (min-width: 1280px) {
    .route { grid-template-columns: 10.5rem minmax(2rem, 1fr) minmax(10.5rem, 1fr); column-gap: 0.75rem; }
}
.hash-text { display: inline-block; &:hover { text-decoration: underline; } }
.hash-actions { display: flex; align-items: center; gap: 0.25rem; }
.hash-link { display: inline-block; &:hover { text-decoration: underline; } }
@media (max-width: 767px) {
    .hash-actions, .hash-link { min-width: 0; }
    .hash-link { word-break: break-all; }
}

/* Message list */

.msg-list { padding-block: 0.5rem; }
.msg-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.msg-card {
    display: block;
    min-width: 0;
    padding: 1rem;
    background: rgb(var(--raised));
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    &:hover, &:active { background: rgb(var(--hover)); }
}
.msg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ago { font-size: 0.75rem; line-height: 1rem; color: rgb(var(--fg-muted)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg-card-route {
    display: grid;
    grid-template-columns: 8rem minmax(1.5rem, 1fr) minmax(8rem, 1fr);
    align-items: center;
    column-gap: 0.5rem;
    min-width: 0;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    .arrow { line-height: inherit; }
}
.msg-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(var(--fg-muted));
}

.msg-table-wrap { display: none; }
.msg-table { display: table; width: 100%; min-height: 8rem; border-collapse: collapse; background: rgb(var(--raised)); }
.msg-thead { display: table-header-group; }
.msg-tbody { display: table-row-group; }
.msg-tr {
    display: table-row;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.025em;
    color: rgb(var(--fg-muted));
    background: rgb(var(--header));
    border-bottom-width: 1px;
}
.msg-th { display: table-cell; padding: 0.75rem; }
.msg-row {
    display: table-row;
    height: 52px;
    background: rgb(var(--raised));
    border-bottom-width: 1px;
    &:hover { background: rgb(var(--hover)); }
}
.msg-td { display: table-cell; vertical-align: middle; padding: 0.5rem 0.75rem; }
.msg-th.end, .msg-td.end { text-align: right; }
.msg-td-status {
    position: relative;
    &::before {
        content: "";
        position: absolute;
        left: 0;
        inset-block: 0;
        width: 3px;
        background: var(--cherry-soda);
        opacity: 0;
        transition: opacity 150ms ease-out;
    }
}
.msg-row:hover .msg-td-status::before { opacity: 1; }

@media (min-width: 768px) {
    .msg-frame { position: relative; overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
    .msg-cards { display: none; }
    .msg-table-wrap { display: block; }
}
@media (min-width: 1280px) {
    .msg-th, .msg-td { padding-inline: 1rem; }
}

.row-enter { animation: fade-in 560ms cubic-bezier(0.33, 1, 0.68, 1) backwards, row-tint 1200ms ease-in-out backwards; }
.card-enter { animation: fade-in 560ms cubic-bezier(0.33, 1, 0.68, 1) backwards; }
.card-enter > a { animation: row-tint 1200ms ease-in-out backwards; }
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes row-tint {
    from { background-color: rgb(var(--tint)); }
    to { background-color: rgb(var(--raised)); }
}

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
    background: rgb(var(--raised));
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}
.empty-title { font-weight: 500; color: rgb(var(--fg)); }
.empty-text { font-size: 0.875rem; line-height: 1.25rem; color: rgb(var(--fg-muted)); }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    margin-top: 0.25rem;
    padding-inline: 1.25rem;
    border-radius: 9999px;
    background: var(--cherry-soda);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    &:hover, &:active { background: var(--cherry-dark); }
}

/* Pagination */

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1rem 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(var(--fg));
}
.pager-nav { display: flex; align-items: center; gap: 0.375rem; }
.pager-label { padding-inline: 0.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(var(--line-control));
    border-radius: var(--r-sm);
    background: rgb(var(--raised));
    color: rgb(var(--fg));
    &:hover { background: rgb(var(--hover)); }
    &:active { background: rgb(var(--subtle)); }
    &.is-disabled {
        border-color: rgb(var(--line));
        background: rgb(var(--header));
        color: rgb(var(--fg-disabled));
        cursor: not-allowed;
    }
}
.page-size {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgb(var(--fg-muted));
    label { display: flex; align-items: center; gap: 0.25rem; }
    select {
        height: 2.5rem;
        min-width: 4.5rem;
        padding-inline: 0.5rem;
        border: 1px solid transparent;
        border-radius: var(--r-sm);
        color: rgb(var(--fg));
        &:hover { background: rgb(var(--hover)); border-color: rgb(var(--line-control)); }
    }
    button {
        height: 2.5rem;
        padding-inline: 0.75rem;
        border: 1px solid rgb(var(--line-control));
        border-radius: var(--r-sm);
        color: rgb(var(--fg));
    }
}

/* Copy button */

.copy { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-sm);
    color: rgb(var(--fg-muted));
    transition: transform 100ms ease-out, color 150ms ease-out, background-color 150ms ease-out;
    &:hover { background: rgb(var(--hover)); color: rgb(var(--fg)); }
    &:active { transform: scale(0.95); background: rgb(var(--subtle)); }
    &:focus-visible { outline-offset: 1px; }
}
@media (max-width: 767px) {
    .copy-btn { width: 2.75rem; height: 2.75rem; }
}
.copy-tip {
    position: absolute;
    right: 0;
    bottom: 100%;
    z-index: 10;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--r-sm);
    background: var(--espresso);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease-out;
    &.is-shown { opacity: 1; }
}
.icon-pop { animation: icon-pop 160ms var(--ease-out) backwards; }
@keyframes icon-pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Message detail */

.detail { display: flex; flex-direction: column; padding-block: 0.5rem; }
.detail-card {
    overflow: hidden;
    background: rgb(var(--raised));
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}
.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom-width: 1px;
    h2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
}
.dgroup {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    color: rgb(var(--fg-muted));
    background: rgb(var(--header));
    border-bottom-width: 1px;
}
.drow {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-bottom-width: 1px;
    &:last-child { border-bottom-width: 0; }
    dt { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: rgb(var(--fg-muted)); }
    dd { min-width: 0; overflow-wrap: anywhere; }
}
.dsub { font-size: 0.875rem; line-height: 1.25rem; color: rgb(var(--fg-muted)); }
.intent { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; }
.intent-link {
    min-width: 0;
    word-break: break-all;
    text-underline-offset: 2px;
    &:hover { text-decoration: underline; }
}
@media (min-width: 768px) {
    .detail-head, .dgroup { padding-inline: 1.5rem; }
    .drow {
        grid-template-columns: 11rem minmax(0, 1fr);
        gap: 1.5rem;
        padding-inline: 1.5rem;
        dt { padding-top: 0.125rem; }
    }
}
@media (min-width: 1280px) {
    .drow { grid-template-columns: 14rem minmax(0, 1fr); }
}

.siblings { margin-top: 2rem; }
.section-title { padding: 0 0.25rem 0.75rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.siblings-empty {
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(var(--fg-muted));
    background: rgb(var(--raised));
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
    .siblings-empty { padding-inline: 1.5rem; }
}
.siblings-status {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(var(--fg-muted));
    font-variant-numeric: tabular-nums;
}
.back-row {
    display: flex;
    flex-direction: row-reverse;
    padding-block: 1rem;
    a { padding-right: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; text-underline-offset: 2px; }
    a:hover { text-decoration: underline; }
}

.notfound { padding-block: 6rem; text-align: center; }
.notfound-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(var(--fg-muted));
    a { text-decoration: underline; text-underline-offset: 2px; }
    a:hover { color: rgb(var(--fg)); }
}

/* API banner and footer */

.api-banner { margin-bottom: 2.5rem; }
.api-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 64rem;
    margin-inline: auto;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: rgb(var(--subtle));
    transition: transform 200ms ease-out;
    &:hover { transform: translateY(-0.125rem); }
}
.api-text { display: flex; flex: 1; flex-direction: column; gap: 0.25rem; min-width: 0; }
.api-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    img { width: 1.5rem; height: 1.5rem; flex-shrink: 0; object-fit: contain; }
    h2 { font-size: 18px; line-height: 1.2; font-weight: 700; color: rgb(var(--fg)); }
}
.api-text p { font-size: 14px; line-height: 1.4; color: rgb(var(--fg-muted)); text-wrap: pretty; }
.api-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    height: 2.75rem;
    padding-inline: 1.5rem;
    border-radius: 9999px;
    background: var(--cherry-soda);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 150ms;
    svg { width: 1rem; height: 1rem; transition: transform 200ms; }
}
.api-card:hover .api-cta { background: var(--cherry-dark); }
.api-card:hover .api-cta svg { transform: translateX(0.125rem); }
@media (min-width: 640px) {
    .api-card { flex-direction: row; align-items: center; gap: 2rem; padding-inline: 2.5rem; }
    .api-head { flex-direction: row; align-items: center; gap: 0.5rem; }
    .api-cta { width: auto; height: 2.5rem; }
}
@media (min-width: 1280px) {
    .api-banner { margin-bottom: 3.5rem; }
}

.site-footer {
    background: rgb(var(--footer));
    color: #fff;
    > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1.5rem;
        padding-block: 1.25rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}
.gh-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: -0.5rem;
    border-radius: var(--r-sm);
    &:hover { background: var(--cherry-soda); }
    &:active { background: var(--cherry-on-cherry); }
}

/* Motion and print */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ticker-list { animation: none !important; transform: none !important; }
    .filter-panel-in, .card-enter { animation: none !important; }
    .row-enter, .card-enter > a { animation: row-tint 1200ms linear backwards !important; }
    .api-card:hover, .api-card:hover .api-cta svg { transform: none; }
}

@media print {
    .tp-root { display: none; }
    .dark .logo-light { display: inline; }
    .dark .logo-dark { display: none; }
}
