/* /Pages/Alert.razor.rz.scp.css */
/* ============================================================================
   Public /a/{kind}/{id}/{sig} shell. The page is opened with one tap from a
   Telegram alert, so a 390px phone column is the design target and EmptyLayout
   provides no chrome around it.
   EventDetail owns its own layout - the ::deep rules only lift the two controls
   that are too small for a thumb and the numbers that carry the alert.
   ========================================================================= */
.al-page[b-6p6rrrww1k] {
    display: grid;
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Out of flow, so the grid stays a single column of content */
.al-sr[b-6p6rrrww1k] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Names the table the record comes from - EventDetail itself never says which */
.al-bar[b-6p6rrrww1k] {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.al-kind[b-6p6rrrww1k] {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.al-state[b-6p6rrrww1k] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.al-gone[b-6p6rrrww1k] {
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Both controls are text-sized in EventDetail, which is a mouse target, not a thumb one */
.al-page[b-6p6rrrww1k]  .ed-link,
.al-page[b-6p6rrrww1k]  .ed-raw > summary {
    min-height: 44px;
}

.al-page[b-6p6rrrww1k]  .ed-raw > summary {
    display: flex;
    align-items: center;
}

/* Price and volume are why the alert gets opened - they have to read at arm's length */
.al-page[b-6p6rrrww1k]  .ed-metric-k {
    font-size: 0.75rem;
}

.al-page[b-6p6rrrww1k]  .ed-metric-v {
    font-size: 1.125rem;
}
/* /Pages/Bankruptcies.razor.rz.scp.css */
/* Cells rendered by this page. The <td> itself belongs to EventBrowser's scope,
   so the clipping has to live on a wrapper written here. */

/* Rows are 36px - long text clips, it never wraps. */
.cell-text[b-j51xvwfo02] {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cell-ticker[b-j51xvwfo02] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
/* /Pages/Delistings.razor.rz.scp.css */
/* Cells rendered by this page. The <td> itself belongs to EventBrowser's scope,
   so the clipping has to live on a wrapper written here. */

/* Rows are 36px - long text clips, it never wraps. */
.cell-text[b-s77jvik4bv] {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cell-ticker[b-s77jvik4bv] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
/* /Pages/DelistingsDetail.razor.rz.scp.css */
/* ============================================================================
   Standalone /delisting/{id} shell. EmptyLayout provides no chrome, so this
   only centres the column and the loading / error / not-found states.
   EventDetail carries its own internal layout - nothing here reaches into it.
   ========================================================================= */
.dd-page[b-ybqkohvt4d] {
    display: grid;
    grid-template-columns: minmax(0, 1000px);
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Out of flow, so the grid stays a single column of content */
.dd-sr[b-ybqkohvt4d] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dd-state[b-ybqkohvt4d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 100vh;
    padding: 1.5rem;
    text-align: center;
}
/* /Pages/Filings.razor.rz.scp.css */
/* Filings - component-local layout only.
   Tokens and the shared primitives (.btn, .badge, .badge-ticker, .spinner,
   .data-table, .num, .stat-label, .stat-value, .tabular, focus rings) live in
   wwwroot/css/site.css. */

.filings[b-9w9ckynd5e] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-primary);
}

/* ----------------------------------------------------------------- header */
.filings-header[b-9w9ckynd5e] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

/* h1 defaults are page-sized - this one is a toolbar title. */
.filings-title[b-9w9ckynd5e] {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.filings-subtitle[b-9w9ckynd5e] {
    margin-top: 0.125rem;
    font-size: 0.875rem;
}

.filings-stats[b-9w9ckynd5e] {
    display: flex;
    gap: 0.5rem;
}

/* Counters, not routes: no hover affordance, so not a .stat-card. */
.filings-stat[b-9w9ckynd5e] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 6.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
}

.filings-stat .stat-label[b-9w9ckynd5e] {
    margin-bottom: 0;
}

.filings-stat .stat-value[b-9w9ckynd5e] {
    font-size: 1.25rem;
}

/* ------------------------------------------------------------------- list */
.filings-list[b-9w9ckynd5e] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* border-bottom does not survive border-collapse while sticky - use a shadow. */
.filings-table thead th[b-9w9ckynd5e] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-tertiary);
    box-shadow: inset 0 -1px 0 var(--border-secondary);
}

.filings-link[b-9w9ckynd5e] {
    font-size: 0.8125rem;
}

.filings-state[b-9w9ckynd5e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1.25rem;
    color: var(--text-tertiary);
}

.filings-state-error[b-9w9ckynd5e] {
    color: var(--danger);
}

/* ------------------------------------------------------------------ pager */
.filings-pager[b-9w9ckynd5e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-secondary);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.filings-pager-controls[b-9w9ckynd5e] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filings-pager-page[b-9w9ckynd5e] {
    color: var(--text-tertiary);
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 768px) {
    /* MainLayout pushes the content down by its 60px mobile header */
    .filings[b-9w9ckynd5e] {
        height: calc(100vh - 60px);
    }

    .filings-stats[b-9w9ckynd5e] {
        width: 100%;
    }

    .filings-stat[b-9w9ckynd5e] {
        flex: 1;
        min-width: 0;
    }

    .filings-pager[b-9w9ckynd5e] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }
}
/* /Shared/EventBrowser.razor.rz.scp.css */
/* EventBrowser - component-local layout only.
   Tokens and the shared primitives (.btn, .badge, .segmented, .spinner, .input,
   .data-table, .num, focus rings) live in wwwroot/css/site.css. */

/* contain, not decoration: MainLayout's .main-content is a flex item with the default
   min-width:auto, so the 900px min-width of .eb-table below would otherwise widen it past
   the viewport - and html{overflow-x:hidden} would then clip the right-hand columns with
   no way to scroll to them. Inline-size containment keeps that width from propagating up,
   so the overflow stays inside .eb-list where it can be scrolled. */
.event-browser[b-937x8u72kh] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    contain: inline-size;
    background: var(--bg-primary);
}

/* ---------------------------------------------------------------- toolbar */
.eb-toolbar[b-937x8u72kh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.eb-heading[b-937x8u72kh] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* An h1 for FocusOnNavigate, sized and weighted like the h2 it replaced. */
.eb-title[b-937x8u72kh] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.eb-count[b-937x8u72kh] {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eb-controls[b-937x8u72kh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.eb-search[b-937x8u72kh] {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 16rem;
}

.eb-search-icon[b-937x8u72kh] {
    position: absolute;
    left: 0.625rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.eb-search-input[b-937x8u72kh] {
    width: 100%;
    padding-left: 2.125rem;
    padding-right: 2rem;
}

.eb-search-clear[b-937x8u72kh] {
    position: absolute;
    right: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.eb-search-clear:hover[b-937x8u72kh] {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Instant only. Off it is a plain control, on it carries the signal colour. */
.eb-instant-toggle[b-937x8u72kh] {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.75rem;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eb-instant-toggle:hover[b-937x8u72kh] {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.eb-instant-toggle.is-active[b-937x8u72kh] {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

/* ------------------------------------------------------------------- list */
/* min-width keeps the horizontal scrolling of a narrow table inside this box instead of
   widening the page, where html,body{overflow-x:hidden} would silently clip it. */
.eb-list[b-937x8u72kh] {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: auto;
}

/* The ring has to sit inside - an outset one is clipped by the scroll box. */
.eb-list:focus-visible[b-937x8u72kh] {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

/* Below ~900px the colgroup percentages collapse the columns to a few px each - the table
   keeps that width and .eb-list scrolls sideways instead. Container based, not viewport
   based, because the open drawer also narrows the container. */
.eb-table[b-937x8u72kh] {
    table-layout: fixed;
    min-width: 900px;
}

/* Clip whatever still does not fit, so no cell (Ticker badges above all) paints into the
   next column. */
.eb-table th[b-937x8u72kh] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eb-table td[b-937x8u72kh] {
    overflow: hidden;
}

/* border-bottom does not survive border-collapse while sticky - use a shadow. */
.eb-table thead th[b-937x8u72kh] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-tertiary);
    box-shadow: inset 0 -1px 0 var(--border-secondary);
}

.eb-sort[b-937x8u72kh] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.eb-sort:hover[b-937x8u72kh] {
    color: var(--text-secondary);
}

.eb-sort-dir[b-937x8u72kh] {
    min-width: 0.6875rem;
    color: var(--accent-primary);
}

/* Reload after the first one: the body dims but stays clickable - a click during the
   round-trip only moves the selection, which the reload re-resolves by id. */
.eb-busy[b-937x8u72kh] {
    opacity: 0.45;
    transition: opacity 0.15s ease;
}

tbody tr.eb-empty:hover[b-937x8u72kh] {
    background: none;
}

.eb-empty td[b-937x8u72kh] {
    height: 6rem;
    text-align: center;
    color: var(--text-tertiary);
}

.eb-state[b-937x8u72kh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1.25rem;
    color: var(--text-tertiary);
}

.eb-state-error[b-937x8u72kh] {
    color: var(--danger);
}

/* ------------------------------------------------------------------ pager */
.eb-pager[b-937x8u72kh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-secondary);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.eb-pager-controls[b-937x8u72kh] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eb-pager-page[b-937x8u72kh] {
    color: var(--text-tertiary);
}

/* ----------------------------------------------------------------- drawer */

/* Click-away exit. Under the drawer, over everything else. */
.eb-backdrop[b-937x8u72kh] {
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(0, 0, 0, 0.5);
}

.eb-drawer[b-937x8u72kh] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-secondary);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
}

.eb-drawer-head[b-937x8u72kh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.625rem 0.75rem 0.625rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
}

.eb-drawer-title[b-937x8u72kh] {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eb-drawer-body[b-937x8u72kh] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1.25rem;
}

/* -------------------------------------------------------------- responsive */

/* Wide enough for the 640px drawer plus a usable table: inset the browser instead of
   covering it, so the pager and the right-hand columns stay visible and clickable.
   The backdrop then only has to stay out of the way. */
@media (min-width: 1200px) {
    .event-browser.eb-drawer-open[b-937x8u72kh] {
        padding-right: 640px;
    }

    .eb-backdrop[b-937x8u72kh] {
        background: transparent;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    /* MainLayout pushes the content down by its 60px mobile header */
    .event-browser[b-937x8u72kh] {
        height: calc(100vh - 60px);
    }

    .eb-search[b-937x8u72kh] {
        min-width: 100%;
    }

    .eb-controls[b-937x8u72kh] {
        width: 100%;
    }

    /* Takeover, minus a strip of backdrop that stays tappable */
    .eb-drawer[b-937x8u72kh] {
        max-width: calc(100% - 2.5rem);
    }
}
/* /Shared/EventDetail.razor.rz.scp.css */
/* ============================================================================
   EventDetail - scoped.
   Rendered at two widths: the ~640px drawer inside EventBrowser and the
   full-page /delisting/{id} route. Nothing is hardcoded to either; the layout
   switches on a container query, so the component adapts to its own box.
   Colour is signal only: green/red appear exclusively inside .ed-checks and
   on deadline chips. Tokens come from site.css.
   ========================================================================= */
.event-detail[b-4ds71el9hu] {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    padding: 1rem 1.25rem 2rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-primary);
}

/* --- 1 HEADER STRIP ------------------------------------------------------ */
.ed-head[b-4ds71el9hu] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-secondary);
}

.ed-id[b-4ds71el9hu] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.ed-ticker[b-4ds71el9hu] {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ed-age[b-4ds71el9hu] {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Deliberately not a banner - the row the user clicked already said this. */
.ed-headline[b-4ds71el9hu] {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Snapshot numbers. The caption exists so nobody reads these as live quotes. */
.ed-metrics[b-4ds71el9hu] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.5rem 1.25rem;
    padding: 0.625rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
}

.ed-metrics-cap[b-4ds71el9hu] {
    grid-column: 1 / -1;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.ed-metric[b-4ds71el9hu] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.ed-metric-k[b-4ds71el9hu] {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.ed-metric-v[b-4ds71el9hu] {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ed-facts[b-4ds71el9hu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.875rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.ed-fact[b-4ds71el9hu] {
    white-space: nowrap;
}

.ed-num[b-4ds71el9hu] {
    font-variant-numeric: tabular-nums;
}

.ed-link[b-4ds71el9hu] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.ed-link-icon[b-4ds71el9hu] {
    width: 0.875rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

/* --- Section shell ------------------------------------------------------- */
.ed-block[b-4ds71el9hu] {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ed-h[b-4ds71el9hu] {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.ed-empty[b-4ds71el9hu] {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* An unreadable payload is a warning, not an empty state - it must not be skimmed past. */
.ed-broken[b-4ds71el9hu] {
    margin: 0;
    padding: 0.625rem 0.75rem;
    background: linear-gradient(var(--warning-muted), var(--warning-muted)), var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    box-shadow: inset 3px 0 0 0 var(--warning);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* --- 2 VERDICT ----------------------------------------------------------- */

/* Chapter 7 liquidation vs Chapter 11 reorganisation is the trade, so it is
   the single largest element in the block. */
.ed-chapter[b-4ds71el9hu] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0.75rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
}

.ed-chapter-num[b-4ds71el9hu] {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ed-chapter-num.is-unknown[b-4ds71el9hu] {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.ed-chapter-kind[b-4ds71el9hu] {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.ed-chapter-raw[b-4ds71el9hu],
.ed-chapter-meta[b-4ds71el9hu] {
    flex-basis: 100%;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Hairlines via a 1px gap over a tinted backdrop - no per-row borders. */
.ed-checks[b-4ds71el9hu] {
    list-style: none;
    display: grid;
    gap: 1px;
    background: var(--border-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.ed-check[b-4ds71el9hu] {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 0 0.5rem;
    align-items: start;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
}

.ed-mark[b-4ds71el9hu] {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    color: var(--text-tertiary);
}

.ed-check.is-pass .ed-mark[b-4ds71el9hu] {
    color: var(--success);
}

/* A failed check is the loudest row: tint plus an inset bar that cannot shift layout.
   The tint is layered over the opaque surface - the 1px grid gap would otherwise
   show through --danger-muted's 10% alpha. */
.ed-check.is-fail[b-4ds71el9hu] {
    background: linear-gradient(var(--danger-muted), var(--danger-muted)), var(--bg-secondary);
    box-shadow: inset 3px 0 0 0 var(--danger);
}

.ed-check.is-fail .ed-mark[b-4ds71el9hu] {
    color: var(--danger);
}

.ed-check-body[b-4ds71el9hu] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    min-width: 0;
}

.ed-check-label[b-4ds71el9hu] {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    flex-basis: 100%;
}

/* Value text stays --text-primary: --danger as text is 4.1:1 and misses the floor. */
.ed-check-value[b-4ds71el9hu] {
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.ed-check-value.is-unknown[b-4ds71el9hu] {
    font-weight: 400;
    font-style: italic;
    color: var(--text-tertiary);
}

.ed-check-note[b-4ds71el9hu] {
    flex-basis: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Selectable in one click, no JS needed to copy a case number. */
.ed-case[b-4ds71el9hu] {
    display: inline-block;
    padding: 0.0625rem 0.375rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--text-primary);
    user-select: all;
    -webkit-user-select: all;
}

/* --- 3 DEADLINES & TIMELINE --------------------------------------------- */
.ed-rail[b-4ds71el9hu] {
    list-style: none;
    margin-left: 0.25rem;
    padding-left: 0.875rem;
    border-left: 1px solid var(--border-secondary);
}

.ed-rail-item[b-4ds71el9hu] {
    position: relative;
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    gap: 0.125rem 0.625rem;
    padding: 0.4375rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ed-rail-item:last-child[b-4ds71el9hu] {
    border-bottom: none;
}

.ed-rail-dot[b-4ds71el9hu] {
    position: absolute;
    left: -1.25rem;
    top: 0.8125rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-tertiary);
    border: 2px solid var(--bg-primary);
}

.ed-rail-item.is-overdue .ed-rail-dot[b-4ds71el9hu] {
    background: var(--danger);
}

.ed-rail-item.is-soon .ed-rail-dot[b-4ds71el9hu] {
    background: var(--warning);
}

/* Past, non-deadline entries are muted - not coloured. Muted via the token, because an
   opacity multiplier would drag the whole row below the contrast floor. */
.ed-rail-item.is-past .ed-rail-event[b-4ds71el9hu] {
    color: var(--text-secondary);
}

.ed-rail-date[b-4ds71el9hu] {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ed-rail-off[b-4ds71el9hu] {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ed-rail-event[b-4ds71el9hu] {
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ed-rail-sig[b-4ds71el9hu] {
    grid-column: 1 / -1;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

/* --- 4 KEY POINTS -------------------------------------------------------- */
.ed-points[b-4ds71el9hu] {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ed-points li[b-4ds71el9hu] {
    position: relative;
    padding-left: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ed-points li[b-4ds71el9hu]::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* --- 5 RAW --------------------------------------------------------------- */
.ed-raw[b-4ds71el9hu] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
}

.ed-raw > summary[b-4ds71el9hu] {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    user-select: none;
}

.ed-raw[open] > summary[b-4ds71el9hu] {
    border-bottom: 1px solid var(--border-secondary);
}

.ed-raw pre[b-4ds71el9hu] {
    margin: 0;
    padding: 0.75rem;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* --- Utilities ----------------------------------------------------------- */
.ed-sr[b-4ds71el9hu] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Wide container (full-page route, or a roomy drawer) ----------------- */
@container (min-width: 34rem) {
    .event-detail[b-4ds71el9hu] {
        gap: 1.75rem;
        padding: 1.25rem 1.5rem 2.5rem;
    }

    .ed-ticker[b-4ds71el9hu] {
        font-size: 2.125rem;
    }

    .ed-chapter-num[b-4ds71el9hu] {
        font-size: 2rem;
    }

    /* Label and value share a line; the min-width lines the values up into a column. */
    .ed-check-label[b-4ds71el9hu] {
        flex-basis: auto;
        min-width: 9.5rem;
    }

    .ed-rail-item[b-4ds71el9hu] {
        grid-template-columns: 5.25rem 5.5rem 1fr;
    }

    .ed-rail-event[b-4ds71el9hu],
    .ed-rail-sig[b-4ds71el9hu] {
        grid-column: 3;
    }
}
