/*
 * Incubase: the Ramp language (Umayr, final on 23 Oct 2026). Ported from
 * docs/design/ramp-language/ramp.css, which is the reference: where this file and the screens
 * differ, ramp.css wins. One stylesheet for the admin (loaded through filament/brand), the
 * founders' portal and the doors (sign-in, links, errors). No build step.
 *
 *   1. Tokens               the Ramp values, and the older --ib-* names pointed at them
 *   2. Components           rp-*: figure, panels, buttons, chips, What happened, tiles, lists
 *   3. Filament             its own sidebar, top bar, pages, tables, forms and modals, restyled
 *   4. Homes                each role's home in the admin (filament/home)
 *   5. The portal shell     the founders' sidebar, top bar and tabs (portal/layout)
 *   6. Error pages          errors/layout (the sign-in pages are on the V3 scene: landing.css)
 *   7. Companies            the companies table and a company's page (screens 16 and 03)
 *   8. The monthly report   the founder's report form (screen 17)
 *   9. Report downloads     the dialog every report is downloaded through (screen 21)
 *  10. The intro            the Incubase logo in glass, once after each sign-in (partials/intro)
 *  11. The KPI document     a company's KPIs as agreed, Addendum A, to read and print (kpi-document)
 *  12. Ignite's tables      a quarter's tables for Ignite's report, on screen (filament/pages/ignite-tables)
 *
 * The look, in a sentence each: money first (one real figure, the biggest thing on a screen);
 * lime marks what needs doing, always with black text, once or twice a screen; black marks where
 * you are (the selected menu item, the main button, the one urgent panel); a startup's colour is
 * its tile or a dot, never stripes; a role's colour is the bar at the top and the box at the foot
 * of the menu, nowhere else; panels are white, 14px round, with no shadows; Inter Tight, numbers
 * tabular. Filament's styles sit in cascade layers and these rules are not layered, so they win
 * without !important.
 */

/*
 * Inter Tight, from Incubase itself (Run 17; docs/SECURITY.md, S-35): the app's own pages no longer ask Google for it, so
 * Google sees no visitor's address. @fontsource/inter-tight 5.3.0, SIL Open Font License 1.1 (public/fonts/inter-tight/
 * OFL.txt; docs/CREDITS.md). Latin and latin-ext, 400 to 900, each subset fetched only for the characters it holds. The
 * landing and sign-in pages keep their own fonts (Umayr's, question 25).
 */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/inter-tight/inter-tight-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Tokens ---------- */

:root {
    --rp-ink: #0B0B0A;
    --rp-ink-2: #2A2A27;
    --rp-muted: #55554F;
    --rp-faint: #8A8A82;
    /* A missing figure's dash: quieter than the words round it, yet 4.74:1 on the page and 5.14:1 on white
       (Ramp's faint, 3.09:1, reads under the 4.5:1 every word on a home keeps). */
    --rp-dash: #6E6E67;
    --rp-line: #E6E6E1;
    --rp-line-2: #D4D4CD;
    --rp-page: #F6F6F3;
    --rp-panel: #FFFFFF;
    --rp-sunk: #EFEFEA;
    --rp-hover: #FAFAF7;
    --rp-lime: #E4F222;
    --rp-late-bg: #FBE9E7;
    --rp-late: #A3261B;
    --rp-ok-bg: #E7F2EA;
    --rp-ok: #1F6B3A;
    --rp-role: var(--rp-ink);

    --rp-font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --rp-t-figure: 600 64px/1 var(--rp-font);
    --rp-t-title: 600 28px/1.15 var(--rp-font);
    --rp-t-stat: 600 26px/1.1 var(--rp-font);
    --rp-t-item: 600 20px/1.25 var(--rp-font);
    --rp-t-section: 600 17px/1.3 var(--rp-font);
    --rp-t-body: 400 15px/1.5 var(--rp-font);
    --rp-t-small: 400 13px/1.45 var(--rp-font);

    --rp-r-panel: 14px;
    --rp-r-control: 8px;
    --rp-r-tile: 7px;
    --rp-r-pill: 999px;
    --rp-gap: 12px;
    --rp-section: 40px;
    --rp-pad: 22px 24px;

    /* The older names every feature stylesheet reads, pointed at the Ramp. Colours come from
       config/incubase.php through partials/ib-tokens; type, shape and shadow are set here. */
    --ib-display: var(--rp-font);
    --ib-text: var(--rp-font);
    --ib-mono: var(--rp-font);
    --ib-radius: var(--rp-r-panel);
    --ib-radius-sm: var(--rp-r-control);
    --ib-card-shadow: none;
    --ib-raised-shadow: 0 24px 60px rgb(11 11 10 / 0.18);
    --ib-head-tracking: -0.03em;
    --ib-btn-radius: var(--rp-r-pill);
    --ib-btn-h: 40px;
    --ib-btn-h-sm: 32px;
    --ib-btn-shadow: none;
    --ib-btn-shadow-hover: none;
    --ib-btn-line: var(--rp-line-2);
    --wl-accent: var(--rp-ink);
}

/* ---------- 2. Components ---------- */

.rp-tile {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--rp-r-tile);
    background: var(--rp-ink);
    color: #fff;
    font: 700 11px/1 var(--rp-font);
    letter-spacing: 0;
}

.rp-tile.is-lg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
}

.rp-tile-inc {
    background: var(--rp-lime);
    color: var(--rp-ink);
}

.rp-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    vertical-align: 1px;
}

.rp-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.rp-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--rp-muted);
    font: var(--rp-t-body);
}

.rp-figure {
    margin: 6px 0 0;
    color: var(--rp-ink);
    font: var(--rp-t-figure);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.rp-figure.is-empty {
    color: var(--rp-dash);
}

.rp-lead {
    max-width: 68ch;
    margin: 12px 0 0;
    color: var(--rp-ink-2);
    font: 400 17px/1.5 var(--rp-font);
}

.rp-example {
    padding: 2px 9px;
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-r-pill);
    background: var(--rp-panel);
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--rp-gap);
    margin-top: var(--rp-section);
}

.rp-do-next + .rp-panels {
    margin-top: var(--rp-gap);
}

.rp-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--rp-pad);
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.rp-panel h2,
.rp-label {
    margin: 0;
    color: var(--rp-muted);
    font: 500 14px/1.4 var(--rp-font);
    letter-spacing: normal;
}

.rp-stat {
    margin: 8px 0 4px;
    font: var(--rp-t-stat);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.rp-stat.is-empty {
    color: var(--rp-dash);
}

.rp-item {
    margin: 8px 0 4px;
    font: var(--rp-t-item);
    letter-spacing: -0.02em;
}

.rp-panel p {
    margin: 0;
}

/* A panel's figure and named thing as sheet 00 sets them (26px and 20px, 8px above), over .rp-panel p's margin. */
.rp-panel .rp-stat,
.rp-panel .rp-item {
    margin: 8px 0 4px;
}

.rp-text,
.rp-note {
    color: var(--rp-muted);
}

.rp-note {
    margin: 6px 0 0;
}

/* A panel's button is the small one, 14px under the words, as on sheet 00 and screen 19. */
.rp-panel .rp-btn {
    align-self: flex-start;
    height: 32px;
    margin-top: 14px;
    padding: 0 14px;
    font-size: 14px;
}

.rp-lime-panel {
    background: var(--rp-lime);
}

.rp-lime-panel h2,
.rp-lime-panel .rp-text,
.rp-lime-panel .rp-meta {
    color: var(--rp-ink);
}

/* A panel's list, as Umayr's (This week, Late, Off target, Setup gaps, Your companies): rows 8px apart with no
   rule between them, the name on the left, what it is about on the right in the panel's quiet words. */
.rp-panel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.rp-panel-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

/* Under the lime and black panels' own colours (ink on lime, as Umayr's Setup gaps). */
:where(.rp-panel-list) .rp-meta {
    flex: none;
    color: var(--rp-muted);
    white-space: nowrap;
}

/* A row that carries its own buttons (a company's founders, a summit's companies) wraps where it would not fit: its
   state and buttons go under its name rather than off the panel's edge on a phone. */
.rp-panel-list li:has(> .rp-meta :is(button, .rp-btn, .fi-btn)) {
    flex-wrap: wrap;
    row-gap: 4px;
}

@media (max-width: 760px) {
    .rp-panel-list:has(> li > .rp-meta :is(button, .rp-btn, .fi-btn)) {
        gap: 16px;
    }
}

.rp-panel-list li > .rp-meta:has(:is(button, .rp-btn, .fi-btn)) {
    flex: 0 1 auto;
    white-space: normal;
}

/* A line inside the name's own words (a summit's company: its preparation and tasks) wraps as words do. */
.rp-panel-list li > :not(.rp-meta) .rp-meta {
    white-space: normal;
}

.rp-ink-panel {
    background: var(--rp-ink);
    color: #fff;
}

.rp-ink-panel h2,
.rp-ink-panel .rp-text,
.rp-ink-panel .rp-meta {
    color: #B9B9B1;
}

.rp-do-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: var(--rp-section);
    padding: 26px 28px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-lime);
    color: var(--rp-ink);
}

.rp-do-next h2 {
    margin: 0;
    font: 500 14px/1.4 var(--rp-font);
    letter-spacing: normal;
}

.rp-do-next .rp-title {
    margin: 6px 0 4px;
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
}

.rp-do-next p {
    margin: 0;
}

/* Buttons: black is the main action (one a screen), lime the button inside what needs doing,
   plain everything else. A button says what happens. */
.rp-btn {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--rp-r-pill);
    font: 600 15px/1 var(--rp-font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.rp-btn:hover {
    text-decoration: none;
}

.rp-btn-ink {
    background: var(--rp-ink);
    color: #fff;
}

.rp-btn-ink:hover {
    background: var(--rp-ink-2);
}

.rp-btn-lime {
    background: var(--rp-lime);
    color: var(--rp-ink);
}

.rp-btn-lime:hover {
    background: #D6E40F;
}

.rp-btn-plain {
    border-color: var(--rp-line-2);
    background: var(--rp-panel);
    color: var(--rp-ink);
}

.rp-btn-plain:hover {
    border-color: #BDBDB5;
}

.rp-btn-quiet {
    padding: 0 8px;
    background: transparent;
    color: var(--rp-muted);
}

.rp-btn-quiet:hover {
    color: var(--rp-ink);
}

.rp-btn.is-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
}

.rp-btn.is-wide {
    width: 100%;
}

.rp-ink-panel .rp-btn:focus-visible,
.rp-btn-ink:focus-visible {
    outline-color: var(--rp-lime);
}

/* Status: every status is a word; colour only repeats it. */
.rp-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--rp-r-pill);
    background: var(--rp-sunk);
    color: var(--rp-muted);
    font: 500 13px/1 var(--rp-font);
    white-space: nowrap;
}

.rp-chip.is-need { background: var(--rp-lime); color: var(--rp-ink); }
.rp-chip.is-late { background: var(--rp-late-bg); color: var(--rp-late); }
.rp-chip.is-ok { background: var(--rp-ok-bg); color: var(--rp-ok); }

/* What happened */
.rp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: var(--rp-section);
}

.rp-section-head h2 {
    margin: 0;
    font: var(--rp-t-section);
    letter-spacing: normal;
}

.rp-section-head a {
    color: var(--rp-muted);
    text-decoration: none;
}

.rp-section-head a:hover {
    text-decoration: underline;
}

.rp-feed {
    margin: 10px 0 0;
    padding: 0 24px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    list-style: none;
}

.rp-feed li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 11px 0;
}

.rp-feed li + li {
    border-top: 1px solid var(--rp-line);
}

.rp-feed time {
    color: var(--rp-muted);
    font-variant-numeric: tabular-nums;
}

.rp-feed-empty {
    padding: 16px 0;
    color: var(--rp-muted);
}

/* The quiet line on a staff home while automatic emails are off (Run 17; Umayr, 4 Nov 2026): the home's own muted small
   words, under the panels and above What happened, never a panel or a colour of its own. */
.rp-quiet {
    max-width: 68ch;
    margin: var(--rp-section) 0 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-quiet a {
    color: var(--rp-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rp-quiet + section > .rp-section-head {
    margin-top: 20px;
}

.rp-pager {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.rp-notice {
    padding: 12px 14px;
    border-radius: var(--rp-r-control);
    background: var(--rp-sunk);
}

.rp-notice.is-late {
    background: var(--rp-late-bg);
    color: var(--rp-late);
}

.rp-up { color: var(--rp-ok); }
.rp-down { color: var(--rp-late); }

/* ---------- 3. Filament ---------- */

.fi-body,
.fi-layout,
.fi-main-ctn {
    background: var(--rp-page);
}

.fi-body {
    color: var(--rp-ink);
    font-variant-numeric: tabular-nums;
}

/* The role's bar across the top of every screen. */
.rp-role-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: 6px;
    background: var(--role, var(--rp-ink));
    pointer-events: none;
}

.fi-body:has(.rp-role-bar) .fi-topbar-ctn {
    top: 6px;
}

@media (min-width: 1024px) {
    .fi-body:has(.rp-role-bar) .fi-sidebar {
        top: calc(4rem + 6px);
        height: calc(100dvh - 4rem - 6px);
    }
}

.fi-body:has(.rp-role-bar) .fi-layout {
    padding-top: 6px;
}

/* The sidebar: white, a hairline on its right, the page you are on in black. */
.fi-sidebar {
    border-right: 1px solid var(--rp-line);
    background: var(--rp-panel);
}

.fi-sidebar-header {
    height: auto;
    min-height: 64px;
    padding: 18px 14px 10px;
    border: 0;
    background: var(--rp-panel);
    box-shadow: none;
}

.fi-sidebar-nav {
    padding: 8px 14px 16px;
    gap: 18px;
}

/* The rows line up with the role's box, 14px in, as Ramp's: Filament pulls its list 8px out. */
.fi-sidebar.fi-sidebar-open .fi-sidebar-nav-groups {
    margin-inline: 0;
}

.fi-sidebar-group-btn {
    padding: 4px 10px;
}

.fi-sidebar-group-label {
    color: var(--rp-muted);
    font: 500 12.5px/1.3 var(--rp-font);
    letter-spacing: 0;
    text-transform: none;
}

.fi-sidebar-group-btn .fi-icon {
    color: var(--rp-faint);
}

/* A row is 38px: 8px above and below a 22px line, as near Ramp's 15px on 1.5 as whole pixels go. (15px type on
   1.3 made 19.5px, so every other row stood on a half pixel and its label drew 1px lower than its neighbour's.)
   8px on the right as well, so a count sits as far from the row's edge as from its top and bottom. */
.fi-sidebar-item-btn {
    gap: 10px;
    padding: 8px 8px 8px 10px;
    border-radius: var(--rp-r-control);
    color: var(--rp-muted);
}

.fi-sidebar-item-btn .fi-icon {
    color: var(--rp-faint);
}

.fi-sidebar-item-label {
    color: inherit;
    font: 400 15px/22px var(--rp-font);
}

.fi-sidebar-item-btn:hover,
.fi-sidebar-item-btn:focus-visible {
    background: var(--rp-sunk);
    color: var(--rp-ink);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--rp-ink);
    color: #fff;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label {
    color: #fff;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label {
    font-weight: 500;
}

.fi-sidebar-item-grouped-border-part,
.fi-sidebar-item-grouped-border-part-not-first,
.fi-sidebar-item-grouped-border-part-not-last {
    background: var(--rp-line-2);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-grouped-border-part {
    background: #fff;
}

/* The menu's counts: ink on lime, a circle as tall as the label's line (a pill past one digit), in the
   middle of the row. Their box is a flex box, so a count is not set on a line of text, which put it 1.5px below
   its label and made its row 7.5px taller. Named through the badge's own box so the rule outweighs the .fi-badge
   ones below (the chips' 24px, and the .fi-color-* greys, which painted them grey before). */
.fi-sidebar-item-badge-ctn {
    display: flex;
}

.fi-sidebar .fi-sidebar-item-badge-ctn .fi-badge {
    min-width: 20px;
    min-height: 20px;
    padding: 0 6px;
    background: var(--rp-lime);
    color: var(--rp-ink);
    box-shadow: none;
}

/* A plain list, as in the mockups: no icons beside the groups or the items while the menu is open (folded
   to a rail, the icon is all there is), no tree lines beside the items. */
.fi-sidebar.fi-sidebar-open .fi-sidebar-group-btn > .fi-icon,
.fi-sidebar.fi-sidebar-open .fi-sidebar-item-btn > .fi-icon,
.fi-sidebar-item-grouped-border {
    display: none;
}

.rp-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.rp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 6px;
    color: var(--rp-ink);
    font: 600 16px/1.2 var(--rp-font);
    text-decoration: none;
}

.rp-brand-logo {
    display: block;
    max-width: 150px;
    max-height: 34px;
    width: auto;
    height: auto;
}

.rp-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-brand-logo + .rp-brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.rp-side-close {
    display: none;
    width: 36px;
    height: 36px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--rp-r-control);
    background: transparent;
    color: var(--rp-muted);
    cursor: pointer;
}

.rp-side-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 1023.98px) {
    .rp-side-close {
        display: inline-flex;
    }

    /* The drawer's head stands clear of the role's bar across the top (the mark sat under it, 1px from the top), with
       the mark on the line of the rows' words, 24px in. It takes the place of Filament's own header, which is empty
       here: its logo is replaced, and its folding buttons are the desk's. */
    .rp-side-head {
        min-height: 64px;
        padding: 18px 14px 10px 18px;
    }

    .fi-sidebar-header-ctn {
        display: none;
    }
}

/* Filament's own logo is replaced by the head above; keep its folding button. */
.fi-sidebar-header .fi-logo {
    display: none;
}

.rp-side-foot {
    display: grid;
    gap: 12px;
    padding: 12px 14px 16px;
    border-top: 1px solid var(--rp-line);
}

/* 7px on the right, where the rail's 1px line is: the role's chip sits on the rail's centre line (below). */
.fi-sidebar:not(.fi-sidebar-open) .rp-side-foot {
    padding-inline: 8px 7px;
}

.rp-role-box {
    margin: 0;
    padding: 9px 12px;
    border-radius: var(--rp-r-control);
    background: var(--role, var(--rp-ink));
    color: #fff;
    font: 600 14px/1.3 var(--rp-font);
}

.rp-role-chip {
    display: block;
    width: 26px;
    height: 8px;
    margin: 0 auto;
    border-radius: var(--rp-r-pill);
    background: var(--role, var(--rp-ink));
}

.rp-side-credit .ib-credit {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-side-credit .ib-credit-cm {
    height: 20px;
    width: auto;
}

/* The top bar. On a desk the menu's white column runs up through it to the top of the screen,
   with the incubator's mark at its head; the rest is the page's own ground. On a phone it is a
   white bar on a hairline. No shadow either way. */
.fi-topbar-ctn,
.fi-topbar {
    background: var(--rp-panel);
    box-shadow: none;
}

.fi-topbar {
    border-bottom: 1px solid var(--rp-line);
}

@media (min-width: 1024px) {
    .fi-topbar-ctn {
        background: var(--rp-page);
    }

    .fi-topbar {
        --rp-col: var(--sidebar-width, 14.5rem);
        border-bottom: 0;
        background: linear-gradient(90deg, var(--rp-panel) calc(var(--rp-col) - 1px), var(--rp-line) calc(var(--rp-col) - 1px) var(--rp-col), var(--rp-page) var(--rp-col));
    }

    .fi-body:has(.fi-sidebar:not(.fi-sidebar-open)) .fi-topbar {
        --rp-col: var(--collapsed-sidebar-width, 4.5rem);
    }

    /* The mark is in the top bar on a desk; the sidebar's own head is for the phone's drawer. */
    .rp-side-head {
        display: none;
    }

    /* The fold button's chevrons start where the rows' words do, 24px in. */
    .fi-topbar-collapse-sidebar-btn-ctn {
        margin-inline-start: 2px;
    }

    /* The incubator's mark keeps 14px clear of the menu's line, as a wide logo scales down to fit (WISE Lab's ran to
       5px from it, 4 Nov 2026), and a long name ends in an ellipsis. With the menu folded, the mark stands as far right
       of the rail's line as the button stands left of it, so the line never runs through it. */
    .fi-topbar-start .fi-logo {
        max-width: calc(var(--sidebar-width, 14.5rem) - 79px);
        margin-inline-start: 10px;
    }

    .fi-topbar-start .fi-logo .ib-logo {
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .fi-body:has(.fi-sidebar:not(.fi-sidebar-open)) .fi-topbar-start .fi-logo {
        margin-inline-start: 36px;
    }

    /* Folded to a rail, the button above it, every icon and the role's chip share one centre line, 36px in. The rail
       takes the width the top bar draws for it: Filament leaves it to its contents, which came to 70px on Windows and
       less on a Mac, so the line stepped where the two meet. Its list drops Filament's 8px pull and the gutter kept for
       a scrollbar (15px on Windows, none on a Mac), which put the icons 6px left of the button; it still scrolls in a
       short window. */
    .fi-sidebar:not(.fi-sidebar-open) {
        width: var(--collapsed-sidebar-width, 4.5rem);
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-inline: 15px 14px;
        scrollbar-gutter: auto;
        scrollbar-width: none;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav-groups {
        margin-inline: 0;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn {
        padding-inline: 9px;
    }
}

.fi-topbar .fi-icon-btn {
    color: var(--rp-muted);
}

.fi-breadcrumbs,
.fi-breadcrumbs * {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

/* The page */
.fi-main {
    padding-inline: 40px;
}

@media (max-width: 760px) {
    .fi-main {
        padding-inline: 16px;
    }
}

.fi-header-heading {
    color: var(--rp-ink);
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
}

.fi-header-subheading {
    margin-top: 6px;
    color: var(--rp-muted);
    font: 400 17px/1.5 var(--rp-font);
}

/* Panels: sections, the table's frame, stats, widgets. White, 14px, no ring, no shadow. */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-repeater-item,
.fi-in-repeatable-item {
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    box-shadow: none;
}

.fi-section:not(.fi-section-not-contained) {
    border: 0;
}

.fi-section-header-heading {
    color: var(--rp-ink);
    font: var(--rp-t-section);
}

.fi-section-header-description {
    color: var(--rp-muted);
}

.fi-wi-stats-overview-stat-value {
    font: var(--rp-t-stat);
    letter-spacing: -0.03em;
}

.fi-wi-stats-overview-stat-label {
    color: var(--rp-muted);
    font: 500 14px/1.4 var(--rp-font);
}

/* Tables: the standard table (screen 16). Labels small and grey, rows on hairlines, figures right.
   The frame never clips, so a menu opened in a table (Columns, Filter, Group, Bulk actions) shows in full however few
   rows there are; one taller than the screen scrolls inside itself. The rounded corners are kept by the rows' own box,
   which already clips what scrolls sideways in it: its top corners too where nothing sits above the rows. */
.fi-ta-ctn,
.fi-ta-ctn:not(.fi-ta-ctn-with-header) {
    overflow: visible;
}

.fi-ta-ctn:not(.fi-ta-ctn-with-header) .fi-ta-content-ctn {
    border-top-left-radius: var(--rp-r-panel);
    border-top-right-radius: var(--rp-r-panel);
}

.fi-ta-content-ctn:not(.fi-ta-ctn-with-footer .fi-ta-content-ctn) {
    border-bottom-left-radius: var(--rp-r-panel);
    border-bottom-right-radius: var(--rp-r-panel);
}

.fi-ta-ctn .fi-dropdown-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

/* A column of words to read (Score KPIs' titles and notes) keeps room for a line or two; on a phone the table scrolls
   sideways in its own box rather than squeezing it to a word a line. */
.fi-ta-header-cell.rp-col-wide {
    min-width: 16rem;
}

/* A cell whose second line is a date keeps the date whole ("3 Nov 2026") while its words wrap above it. */
.rp-cell-dated .fi-ta-text-description {
    white-space: nowrap;
}

/* On a phone every column of words keeps room to read on a few lines (titles, topics, reasons), the table scrolling
   sideways in its own box rather than squeezing them to a word a line. */
@media (max-width: 760px) {
    .fi-ta-text.fi-wrapped {
        min-width: 12rem;
    }
}

.fi-ta-header-toolbar {
    border-color: var(--rp-line);
}

.fi-ta-header-cell {
    background: var(--rp-panel);
    color: var(--rp-muted);
    font: 500 13px/1.3 var(--rp-font);
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.fi-ta-header-cell * {
    color: inherit;
    font: inherit;
}

.fi-ta-table thead tr,
.fi-ta-table > thead {
    border-bottom: 1px solid var(--rp-line);
    background: var(--rp-panel);
}

.fi-ta-row {
    border-color: var(--rp-line);
}

.fi-ta-row:hover,
.fi-ta-row.fi-clickable:hover {
    background: var(--rp-hover);
}

.fi-ta-cell {
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.fi-ta-text-item-label,
.fi-ta-text {
    font-variant-numeric: tabular-nums;
}

.fi-ta-empty-state-heading {
    font: var(--rp-t-section);
}

.fi-ta-empty-state-description {
    color: var(--rp-muted);
}

.fi-pagination .fi-btn,
.fi-pagination-item-btn {
    border-radius: var(--rp-r-pill);
}

/* Buttons: pills; the main action black, the rest plain. */
.fi-btn {
    min-height: 40px;
    border-radius: var(--rp-r-pill);
    font: 600 15px/1 var(--rp-font);
    box-shadow: none;
}

.fi-btn.fi-size-sm,
.fi-btn.fi-size-xs {
    min-height: 32px;
    font-size: 14px;
}

.fi-btn.fi-color-gray:not(.fi-outlined),
.fi-btn.fi-outlined {
    border: 1px solid var(--rp-line-2);
    background: var(--rp-panel);
    color: var(--rp-ink);
    box-shadow: none;
}

.fi-btn.fi-color-gray:not(.fi-outlined):hover,
.fi-btn.fi-outlined:hover {
    border-color: #BDBDB5;
    background: var(--rp-panel);
}

.fi-btn.fi-color-gray .fi-icon {
    color: var(--rp-muted);
}

.fi-icon-btn {
    border-radius: var(--rp-r-control);
}

.fi-link {
    font-weight: 600;
}

/* Status chips: words first, colour second. A count on an icon button (Filament's extra-small badge, as on the
   table's filter button) keeps Filament's 16px circle: sized as a chip it grew to 27 x 24 and covered the
   button's icon. */
.fi-badge {
    border-radius: var(--rp-r-pill);
    background: var(--rp-sunk);
    color: var(--rp-muted);
    box-shadow: none;
}

.fi-badge:not(.fi-size-xs) {
    min-height: 24px;
    padding-inline: 10px;
    font: 500 13px/1 var(--rp-font);
}

/* A badge's words in its middle, level with its icon. Filament sets them on the baseline, which leaves them at
   the top once a badge is taller than its words (the chips' 24px, the menu's 20px circles). */
.fi-badge .fi-badge-label-ctn {
    align-self: center;
}

.fi-badge .fi-icon {
    color: inherit;
}

.fi-badge.fi-color-success {
    background: var(--rp-ok-bg);
    color: var(--rp-ok);
}

.fi-badge.fi-color-danger {
    background: var(--rp-late-bg);
    color: var(--rp-late);
}

.fi-badge.fi-color-warning {
    background: var(--rp-lime);
    color: var(--rp-ink);
}

.fi-badge.fi-color-primary,
.fi-badge.fi-color-info,
.fi-badge.fi-color-gray {
    background: var(--rp-sunk);
    color: var(--rp-ink);
}

/* Forms: fields 44px, 8px round, a 1px border that turns black when you type. */
.fi-input-wrp {
    min-height: 44px;
    border-radius: var(--rp-r-control);
    background: var(--rp-panel);
    box-shadow: 0 0 0 1px var(--rp-line-2);
}

.fi-input-wrp:hover {
    box-shadow: 0 0 0 1px #BDBDB5;
}

.fi-input-wrp:not(.fi-disabled):focus-within {
    box-shadow: 0 0 0 2px var(--rp-ink);
}

.fi-input-wrp.fi-invalid {
    box-shadow: 0 0 0 1px var(--rp-late);
}

/* The box you type or choose in fills the field's 44px, so its words sit in the middle, level with the icon or
   label beside them, and the whole field takes a click. Filament's boxes are 34 to 36px and sat at the frame's
   top, their words 4 to 5.5px above the middle. The search box in a searchable select's list keeps its size. */
.fi-input-wrp :is(input.fi-input, select.fi-select-input, .fi-select-input-btn):not(.fi-dropdown-panel *) {
    min-height: 44px;
}

.fi-input,
.fi-select-input {
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.fi-input::placeholder {
    color: var(--rp-faint);
}

.fi-fo-field-label,
.fi-fo-field-label-content {
    color: var(--rp-ink);
    font: 600 15px/1.4 var(--rp-font);
}

.fi-fo-field-wrp-helper-text,
.fi-fo-field-wrp-hint {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.fi-fo-field-wrp-error-message {
    color: var(--rp-late);
    font: var(--rp-t-small);
}

.fi-checkbox-input,
.fi-radio-input {
    accent-color: var(--rp-ink);
}

.fi-checkbox-input:checked,
.fi-radio-input:checked {
    background-color: var(--rp-ink);
}

.fi-toggle.fi-toggle-on,
.fi-toggle[aria-checked="true"] {
    background-color: var(--rp-ink);
}

.fi-fo-file-upload,
.filepond--panel-root {
    border-radius: var(--rp-r-control);
}

.fi-fieldset {
    border-color: var(--rp-line);
    border-radius: var(--rp-r-panel);
}

/* Tabs: a segmented control. */
.fi-tabs {
    gap: 2px;
    padding: 3px;
    border-radius: var(--rp-r-pill);
    background: var(--rp-sunk);
    box-shadow: none;
}

.fi-tabs-item {
    border-radius: var(--rp-r-pill);
    color: var(--rp-muted);
    font: 500 14px/1 var(--rp-font);
}

.fi-tabs-item.fi-active {
    background: var(--rp-panel);
    color: var(--rp-ink);
    box-shadow: 0 0 0 1px var(--rp-line);
}

/* A tab not chosen in Ramp's muted ink (6.6:1 on the well), as .seg a: Filament's own grey read 3:1. */
.fi-tabs-item .fi-tabs-item-label {
    color: var(--rp-muted);
}

.fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-tabs-item.fi-active .fi-icon {
    color: var(--rp-ink);
}

/* Things that float: menus, modals, toasts. These alone may cast a shadow. */
.fi-dropdown-panel {
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--rp-line), 0 18px 40px rgb(11 11 10 / 0.14);
}

.fi-dropdown-list-item {
    border-radius: var(--rp-r-control);
}

.fi-modal-close-overlay {
    background: rgb(11 11 10 / 0.42);
}

.fi-modal-window {
    border-radius: var(--rp-r-panel);
    box-shadow: 0 24px 60px rgb(11 11 10 / 0.28);
}

.fi-modal-heading {
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
}

.fi-no-notification {
    border-radius: var(--rp-r-panel);
    box-shadow: 0 0 0 1px var(--rp-line), 0 18px 40px rgb(11 11 10 / 0.14);
}

/* Focus: always visible, black on light grounds. */
.fi-body :focus-visible {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

/* A field shows its focus on its frame (.fi-input-wrp), so the input inside draws no second box. */
.fi-body .fi-input-wrp :is(input, select, textarea):focus,
.fi-body .fi-input-wrp :is(input, select, textarea):focus-visible {
    outline: none;
    box-shadow: none;
}

/* ---------- 4. Homes ---------- */

/* Ramp's body type for everything on a home (the admin's own base is 14px on 20px), and its 1.5 for the
   words in panels, Do next and the note (the portal's older p rule says 1.65); the figure, lead, stat and
   titles keep their own. */
.rp-home {
    max-width: 1040px;
    padding: 8px 0 64px;
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

:where(.rp-home) p {
    line-height: 1.5;
}

.rp-home .rp-panels {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* The cohort's weeks on the Administrator's home (partials/home-weeks; Umayr, 4 Nov 2026): a step a week, rising to
   graduation. Grey the weeks behind, black this week, pale the weeks to come. --weeks is the cohort's own length, so 4
   or 52 steps fill the same strip. A label is a 64px box centred on its week and held inside the strip, so the first
   and the last weeks keep theirs. */
.rp-weeks {
    margin-top: 26px;
}

.rp-weeks-top,
.rp-weeks-foot {
    position: relative;
    height: 22px;
    color: var(--rp-muted);
    font: 500 13px/22px var(--rp-font);
}

.rp-weeks-top span,
.rp-weeks-foot span {
    position: absolute;
    top: 0;
    left: clamp(0px, calc(var(--at) - 32px), calc(100% - 64px));
    width: 64px;
    text-align: center;
    white-space: nowrap;
}

.rp-weeks-top .rp-weeks-now {
    color: var(--rp-ink);
    font-weight: 600;
}

.rp-weeks-top .rp-weeks-end {
    right: 0;
    left: auto;
    width: auto;
}

.rp-weeks-steps {
    display: grid;
    grid-template-columns: repeat(var(--weeks), minmax(0, 1fr));
    column-gap: clamp(1px, calc(15% / var(--weeks)), 4px);
    align-items: end;
    height: 112px;
    margin-block: 6px;
}

.rp-weeks-steps span {
    display: block;
    border-radius: 4px 4px 0 0;
    background: var(--rp-line);
}

.rp-weeks-steps .is-past {
    background: var(--rp-faint);
}

.rp-weeks-steps .is-now {
    background: var(--rp-ink);
}

@media (prefers-reduced-motion: no-preference) {
    .rp-weeks-steps span {
        transform-origin: bottom;
        animation: rp-week-rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
        animation-delay: calc(var(--i) * 450ms / var(--weeks));
    }
}

@keyframes rp-week-rise {
    from {
        transform: scaleY(0.15);
    }
}

@media (max-width: 760px) {
    .rp-weeks-steps {
        height: 84px;
    }

    /* The line above it says how far graduation is. */
    .rp-weeks-top .rp-weeks-end {
        display: none;
    }
}

/* The dashboard's own page title is the home's figure: no second heading above it. */
.fi-page.rp-home-page .fi-header {
    display: none;
}

/* The black band (Run 11, Hasan's look): a staff home's one black panel across the page, straight under the figure, the
   other panels a row below (partials/home-band). Its own width decides its columns, so it reads the same with the menu
   open or closed: three (the most pressing, large; the rest as a list; the action, centred) from 860px; two from 560px,
   the action under the list; one below that, the action full width at the foot. White words, the reasons in the black
   panel's grey (10:1), the links underlined, a lime ring where the keyboard is. */
.rp-band {
    container: rp-band / inline-size;
    margin-top: var(--rp-section);
    border-radius: var(--rp-r-panel);
    background: var(--rp-ink);
    color: #fff;
}

.rp-band + .rp-panels {
    margin-top: var(--rp-gap);
}

.rp-band-in {
    display: grid;
    grid-template-areas: "title" "lead" "rest" "act";
    grid-template-columns: minmax(0, 1fr);
    gap: 18px 44px;
    padding: 22px 20px 24px;
}

.rp-band h2 {
    grid-area: title;
    margin: 0;
    color: #B9B9B1;
    font: 500 14px/1.4 var(--rp-font);
    letter-spacing: normal;
}

.rp-band-lead {
    grid-area: lead;
    min-width: 0;
}

.rp-band-rest {
    grid-area: rest;
    min-width: 0;
}

.rp-band-act {
    grid-area: act;
    margin-top: 4px;
}

.rp-band-group + .rp-band-group {
    margin-top: 20px;
}

.rp-band .rp-chip {
    margin: 0 0 12px;
}

/* The list's chip when it repeats the large items' (one kind of thing): not shown, still naming the list. */
.rp-band .rp-chip.is-quiet {
    display: none;
}

.rp-band-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-band-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rp-band-name {
    color: #fff;
    font: 500 15px/1.4 var(--rp-font);
    overflow-wrap: anywhere;
}

.rp-band-list.is-large {
    gap: 18px;
}

.rp-band-list.is-large .rp-band-name {
    font: var(--rp-t-item);
    letter-spacing: -0.02em;
}

.rp-band-list.is-large .rp-dot {
    vertical-align: 3px;
}

.rp-band-why,
.rp-band .rp-text {
    color: #B9B9B1;
    font: var(--rp-t-small);
}

.rp-band-list.is-large .rp-band-why {
    font: var(--rp-t-body);
}

.rp-band .rp-stat {
    margin: 0 0 4px;
    color: #fff;
}

.rp-band a:not(.rp-btn) {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rp-band a:not(.rp-btn):hover {
    text-decoration-thickness: 2px;
}

.rp-band a:not(.rp-btn):focus-visible {
    outline: 2px solid var(--rp-lime);
    outline-offset: 3px;
    border-radius: 4px;
}

.rp-band .rp-btn:focus-visible,
.rp-band .fi-btn:focus-visible {
    outline: 2px solid var(--rp-lime);
    outline-offset: 3px;
}

.rp-band-more {
    margin: 16px 0 0;
    color: #B9B9B1;
    font: var(--rp-t-small);
}

/* The action: full width on a phone, its own width beside or under the list. */
.rp-band-act .rp-btn,
.rp-band-act .fi-btn {
    width: 100%;
    justify-content: center;
}

@container rp-band (min-width: 560px) {
    .rp-band-in {
        padding: 26px 28px 28px;
    }

    .rp-band.has-rest .rp-band-in {
        grid-template-areas: "title title" "lead rest" ". act";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .rp-band:not(.has-rest).has-act .rp-band-in {
        grid-template-areas: "title act" "lead act";
        grid-template-columns: minmax(0, 1fr) auto;
    }

    /* Side by side, the unseen chip keeps the list level with the large items. */
    .rp-band .rp-chip.is-quiet {
        display: inline-flex;
        visibility: hidden;
    }

    .rp-band-act {
        align-self: center;
        margin-top: 0;
    }

    .rp-band.has-rest .rp-band-act {
        margin-top: 6px;
    }

    .rp-band-act .rp-btn,
    .rp-band-act .fi-btn {
        width: auto;
    }
}

@container rp-band (min-width: 860px) {
    .rp-band.has-rest.has-act .rp-band-in {
        grid-template-areas: "title title act" "lead rest act";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
    }

    .rp-band.has-rest .rp-band-act {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .rp-figure {
        font-size: 44px;
    }

    .rp-do-next {
        padding: 22px;
    }

    .rp-do-next .rp-title {
        font-size: 24px;
    }

    .rp-do-next .rp-btn {
        width: 100%;
    }

    /* A thumb's target: every button on a home at least 44px tall on a phone (36 and 40 on a desk). */
    .rp-home .rp-btn {
        height: 44px;
    }

    .rp-feed {
        padding: 0 16px;
    }

    .rp-feed li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .rp-section-head,
    .rp-panels,
    .rp-do-next,
    .rp-band {
        margin-top: 28px;
    }
}

/* ---------- 5. The portal shell ---------- */

.rp-body {
    margin: 0;
    background: var(--rp-page);
    color: var(--rp-ink);
    font: var(--rp-t-body);
    font-variant-numeric: tabular-nums;
}

:where(.rp-body) a {
    color: inherit;
}

.rp-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
}

.rp-shell > .rp-role-bar {
    position: fixed;
}

.rp-shell {
    padding-top: 6px;
}

.rp-shell .rp-side {
    top: 6px;
    height: calc(100vh - 6px);
}

/* The menu's words start 20px from the top of the screen, as Ramp's: the bar's 6px, then 14px. */
.rp-side {
    position: sticky;
    top: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 2px;
    width: 232px;
    height: 100vh;
    padding: 14px 14px 20px;
    border-right: 1px solid var(--rp-line);
    background: var(--rp-panel);
    overflow-y: auto;
}

.rp-side .rp-brand {
    padding: 0 8px 22px;
}

/* Rows as in the admin's menu (.fi-sidebar-item-btn): 38px, and a count 8px from the right edge; the page you
   are on in 500, the rest in 400, as Ramp's. */
.rp-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px 8px 10px;
    border-radius: var(--rp-r-control);
    color: var(--rp-muted);
    font: 400 15px/22px var(--rp-font);
    text-decoration: none;
}

.rp-side-link:hover {
    background: var(--rp-sunk);
    color: var(--rp-ink);
    text-decoration: none;
}

.rp-side-link[aria-current="page"] {
    background: var(--rp-ink);
    color: #fff;
    font-weight: 500;
}

.rp-count {
    min-width: 22px;
    padding: 3px 7px;
    border-radius: var(--rp-r-pill);
    background: var(--rp-lime);
    color: var(--rp-ink);
    font: 600 12px/1 var(--rp-font);
    text-align: center;
}

/* In the side menu a count is the admin menu's 20px circle; in the phone's tab bar it stays a small pill in the
   line of words. */
.rp-side-link .rp-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 0 6px;
}

.rp-side-spacer {
    flex: 1;
}

.rp-who {
    padding: 8px 10px 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-me {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-me b {
    color: var(--rp-ink);
    font-weight: 600;
}

.rp-me-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
}

.rp-me-actions a,
.rp-me-actions button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--rp-muted);
    font: var(--rp-t-small);
    text-decoration: underline;
    cursor: pointer;
}

.rp-side .rp-role-box {
    margin-top: 6px;
}

.rp-main-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* Ramp's main column: 40px from the top of the screen (the bar's 6px, then 34px) and from the menu, the page's
   words left-aligned up to 1040px (.rp-wrap). Not the older stylesheet's centred main (incubase-ui.css). */
.rp-main {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 34px 40px 64px;
}

.rp-main:focus {
    outline: none;
}

.rp-page-head {
    margin-bottom: 28px;
}

.rp-page-title {
    margin: 6px 0 0;
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
}

.rp-kicker .rp-tile {
    margin-right: 2px;
}

.rp-notice {
    margin-bottom: 24px;
}

/* The portal's own pages, in the same language: white panels, no shadows, Inter Tight. */
.rp-body .ui-card,
.rp-body .card {
    border: 0;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    box-shadow: none;
}

/* Under the components' own rules: the home's figure keeps Ramp's -0.04em, its labels their normal spacing. */
:where(.rp-body) h1,
:where(.rp-body) h2,
:where(.rp-body) h3 {
    font-family: var(--rp-font);
    letter-spacing: -0.02em;
}

.rp-body .ui-btn,
.rp-body .btn {
    border-radius: var(--rp-r-pill);
    box-shadow: none;
    font-family: var(--rp-font);
    font-weight: 600;
}

.rp-body .site-footer,
.rp-body .ib-footer {
    padding-inline: 40px;
}

.rp-side form {
    display: inline;
}

.rp-wrap {
    max-width: 1040px;
}

.rp-topbar,
.rp-tabbar {
    display: none;
}

.rp-skip {
    position: absolute;
    left: -9999px;
}

.rp-skip:focus {
    left: 16px;
    top: 14px;
    z-index: 80;
    padding: 8px 12px;
    border-radius: var(--rp-r-control);
    background: var(--rp-ink);
    color: #fff;
}

@media (max-width: 760px) {
    .rp-shell {
        display: block;
    }

    .rp-side {
        display: none;
    }

    .rp-topbar {
        position: sticky;
        top: 6px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--rp-line);
        background: var(--rp-panel);
    }

    .rp-shell > .rp-role-bar {
        position: sticky;
        top: 0;
        display: block;
    }

    .rp-tabbar {
        position: sticky;
        bottom: 0;
        z-index: 20;
        display: grid;
        grid-auto-columns: 1fr;
        grid-auto-flow: column;
        gap: 4px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--rp-line);
        background: var(--rp-panel);
    }

    .rp-tabbar a,
    .rp-tabbar summary {
        display: block;
        padding: 9px 4px;
        border-radius: var(--rp-r-control);
        color: var(--rp-muted);
        font: 500 13px/1 var(--rp-font);
        text-align: center;
        text-decoration: none;
        list-style: none;
        cursor: pointer;
    }

    .rp-tabbar summary::-webkit-details-marker {
        display: none;
    }

    .rp-tabbar a[aria-current="page"] {
        background: var(--rp-ink);
        color: #fff;
    }

    .rp-more {
        position: relative;
    }

    .rp-more-sheet {
        position: absolute;
        right: 0;
        bottom: calc(100% + 10px);
        display: grid;
        gap: 2px;
        min-width: 210px;
        padding: 8px;
        border-radius: 12px;
        background: var(--rp-panel);
        box-shadow: 0 0 0 1px var(--rp-line), 0 18px 40px rgb(11 11 10 / 0.18);
    }

    .rp-more-sheet a,
    .rp-more-sheet button {
        padding: 10px 12px;
        border: 0;
        border-radius: var(--rp-r-control);
        background: none;
        color: var(--rp-ink);
        font: 500 15px/1.3 var(--rp-font);
        text-align: left;
        cursor: pointer;
    }

    .rp-main {
        padding: 24px 16px 40px;
    }
}

/* ---------- 6. Error pages (errors/layout); the sign-in pages are on the V3 scene (landing.css) ---------- */

.rp-door {
    min-height: 100vh;
    margin: 0;
    padding: 40px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
    background: #E9E9E4;
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.rp-wordmark {
    margin: 0;
    font: 900 44px/0.9 var(--rp-font);
    letter-spacing: -0.055em;
}

.rp-door-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 17px/1.2 var(--rp-font);
}

.rp-door-brand img {
    display: block;
    max-width: 180px;
    max-height: 40px;
}

.rp-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    max-width: 1280px;
    margin: 18px auto 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-legal a {
    color: var(--rp-muted);
}

/* A door with one message (a link that expired, an error): the box on its own, no art. */
.rp-door-box {
    width: 100%;
    max-width: 440px;
    margin: 24px auto 0;
}

.rp-door-box .rp-door-brand {
    padding-bottom: 28px;
}

.rp-door-box h1 {
    margin: 0;
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
}

.rp-door-box .rp-door-top {
    margin-bottom: 8px;
}

.rp-door-box .rp-lead {
    margin-top: 10px;
}

.rp-door-box .rp-card {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
}

/* The top of a door: the wordmark, then the incubator's own mark. */
.rp-door-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: var(--rp-ink);
    text-decoration: none;
}

.rp-door-top .ib-logo {
    max-width: 160px;
    max-height: 40px;
    width: auto;
}

.rp-door-top .ib-logo.ib-logo-stacked {
    max-height: 56px;
}

.rp-door a:not(.rp-btn):not(.rp-door-top):not(.ib-btn) {
    color: var(--rp-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rp-ways {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Error pages' older buttons, in the Ramp shapes. */
.rp-door .ib-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--rp-line-2);
    border-radius: var(--rp-r-pill);
    background: var(--rp-panel);
    color: var(--rp-ink);
    font: 600 15px/1 var(--rp-font);
    text-decoration: none;
    box-shadow: none;
}

.rp-door .ib-btn.ib-btn-solid {
    border-color: var(--rp-ink);
    background: var(--rp-ink);
    color: #fff;
}

@media (max-width: 760px) {
    .rp-door {
        padding-top: 16px;
    }
}

/* ---------- 7. Companies and a company (screens 16 and 03) ---------- */

/* A company's page and the companies' head: Ramp's body type and column, as a home's (section 4). */
.rp-company {
    max-width: 1040px;
    padding: 8px 0 64px;
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

:where(.rp-company) p {
    margin: 0;
    line-height: 1.5;
}

.rp-crumbs {
    color: var(--rp-muted);
}

.rp-crumbs a {
    color: var(--rp-muted);
    text-decoration: none;
}

.rp-crumbs a:hover {
    text-decoration: underline;
}

.rp-company-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.rp-company-who {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* The company's own tile at the head of its page: 56px, 14px round, as Umayr's 03. */
.rp-tile.is-xl {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 19px;
}

.rp-company-name {
    margin: 0;
    color: var(--rp-ink);
    font: var(--rp-t-title);
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.rp-company-line {
    margin-top: 2px;
    color: var(--rp-muted);
}

.rp-company-figure {
    margin-top: var(--rp-section);
    padding: 28px;
}

.rp-company .rp-company-figure .rp-figure {
    margin: 8px 0 4px;
}

.rp-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--rp-gap);
    margin-top: var(--rp-gap);
}

/* A panel's facts, label on the left and its value on the right (03's In the programme). */
.rp-facts {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
}

.rp-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* The label keeps its words on one line up to half the row ("When and where" on a phone); the value wraps beside it. */
.rp-facts dt {
    flex-shrink: 0;
    max-width: 50%;
    color: var(--rp-muted);
}

.rp-facts dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

/* Companies: the figure heads the page in place of Filament's title, the segments sit left over the table. */
.rp-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    padding-top: 8px;
}

.fi-resource-ventures.fi-resource-list-records-page .fi-sc-tabs,
.fi-resource-ventures.fi-resource-list-records-page .fi-tabs {
    margin-inline: 0;
}

.fi-resource-ventures.fi-resource-list-records-page .fi-tabs {
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
}

/* A segment's count is part of its words ("At risk 2"), not a badge. */
.fi-resource-ventures .fi-tabs-item {
    column-gap: 5px;
}

.fi-resource-ventures .fi-tabs-item .fi-badge {
    min-height: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.rp-co {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.rp-co-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: normal;
}

.rp-co-sub {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-co-phone {
    display: none;
}

.rp-co-status,
.rp-co-cell {
    white-space: nowrap;
}

.rp-dash {
    color: var(--rp-dash);
}

.rp-table-note {
    margin: 12px 0 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

/* A warning waiting to be sent (Run 13, D2), in the company's Warnings panel: lime, since it needs doing, with the
   email as it would go on white beneath, its words kept as they were written. */
.rp-warning-draft {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    background: var(--rp-lime);
    color: var(--rp-ink);
}

.rp-warning-draft .rp-text,
.rp-ink-panel .rp-warning-draft .rp-text {
    color: var(--rp-ink);
}

.rp-letter {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--rp-ink);
}

.rp-letter-subject {
    margin: 0 0 10px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rp-letter-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: var(--rp-t-small);
    line-height: 1.55;
}

.rp-warning-draft .rp-ways {
    margin-top: 12px;
}

/* On a phone the table keeps the company and its revenue; the month's report and the standing ride under the name. */
@media (max-width: 767px) {
    .rp-co-phone {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
        font-weight: 400;
    }

    .fi-resource-ventures.fi-resource-list-records-page .fi-tabs {
        border-radius: 18px;
    }

    .rp-company-figure {
        padding: 22px;
    }

    .rp-company-figure,
    .rp-company-head {
        margin-top: 20px;
    }
}

/* ---------- 8. The monthly report (screen 17) ---------- */

/* Ramp's narrow column and its standard form: cards of fields, 44px boxes, the error at the field. Over the older
   stylesheet's bare label, input and button rules (incubase-ui.css), which these classes outrank. */
.rp-report {
    max-width: 720px;
}

.rp-report .rp-page-title {
    margin-top: 8px;
}

.rp-report .rp-kicker a {
    text-decoration: none;
}

.rp-report .rp-kicker a:hover {
    text-decoration: underline;
}

.rp-report-state {
    margin-top: 14px;
}

.rp-report-errors {
    display: grid;
    gap: 4px;
    margin: 20px 0 0;
}

.rp-report-errors p {
    margin: 0;
}

.rp-report-form {
    margin-top: 28px;
}

.rp-formcard {
    padding: 28px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
}

.rp-formcard + .rp-formcard {
    margin-top: var(--rp-gap);
}

.rp-formcard > h2 {
    margin: 0 0 4px;
    font: var(--rp-t-section);
    letter-spacing: normal;
}

.rp-formcard > h2 + p {
    margin: 0 0 22px;
    color: var(--rp-muted);
}

.rp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px 16px;
}

.rp-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.rp-field > label,
.rp-field-label,
.rp-rate > label {
    margin: 0;
    color: var(--rp-ink);
    font: 600 15px/1.4 var(--rp-font);
}

.rp-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rp-line-2);
    border-radius: var(--rp-r-control);
    background: var(--rp-panel);
    color: var(--rp-ink);
    font: var(--rp-t-body);
    box-shadow: none;
}

textarea.rp-input {
    height: auto;
    min-height: 88px;
    padding: 10px 14px;
}

.rp-input:hover {
    border-color: #BDBDB5;
}

.rp-input:focus,
.rp-money:focus-within {
    border-color: var(--rp-ink);
    outline: 2px solid var(--rp-ink);
    outline-offset: 1px;
    box-shadow: none;
}

.rp-input:disabled,
.rp-input[readonly]:not(.rp-money):not([data-fx-rate]),
.rp-money:has(input:disabled),
.rp-money:has(input[readonly]) {
    background: var(--rp-sunk);
    color: var(--rp-muted);
}

/* Money: the currency inside the box, as Umayr's "PKR", and still a choice. */
.rp-money {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 4px;
}

.rp-money select {
    width: auto;
    height: 34px;
    padding: 0 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--rp-muted);
    font: var(--rp-t-body);
    box-shadow: none;
    cursor: pointer;
}

.rp-money input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    box-shadow: none;
}

.rp-money select:focus,
.rp-money input:focus {
    outline: none;
    box-shadow: none;
}

.rp-money select:focus-visible {
    outline: 2px solid var(--rp-ink);
}

.rp-hint {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-msg {
    color: var(--rp-late);
    font: var(--rp-t-small);
}

.rp-report-msg {
    margin: 0 0 16px;
}

.rp-field.is-error .rp-input {
    border-color: var(--rp-late);
}

.rp-rate {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.rp-rate[hidden] {
    display: none;
}

.rp-claim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-notes summary {
    width: fit-content;
    color: var(--rp-muted);
    font: 500 13px/1.45 var(--rp-font);
    cursor: pointer;
}

.rp-notes[open] summary {
    margin-bottom: 6px;
}

/* A startup's history from before Incubase (Run 17): its figures by month, each month opening to the report, table and row
   of each figure; then the words kept where no record fits, each with its source under it, in the muted small type. */
.rp-history-head {
    margin: 18px 0 4px;
    color: var(--rp-muted);
    font: 500 14px/1.4 var(--rp-font);
    letter-spacing: normal;
}

.rp-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-history-list > li {
    padding: 9px 0;
    border-top: 1px solid var(--rp-line);
    overflow-wrap: anywhere;
}

.rp-history-list > li:first-child {
    border-top: 0;
}

.rp-history-note {
    margin: 0;
}

.rp-history .rp-notes summary {
    width: auto;
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.rp-history-source,
.rp-history-sources {
    margin: 4px 0 0;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-history-sources {
    padding-left: 18px;
}

/* One drop for a money figure's proof: the file input itself, laid over the dashed box (Umayr's evidence drop). */
.rp-drop {
    position: relative;
    padding: 18px;
    border: 1px dashed var(--rp-line-2);
    border-radius: var(--rp-r-control);
    color: var(--rp-muted);
}

.rp-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.rp-drop:focus-within {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

/* A Remove in the box has its own ring; the box's is for the input. */
.rp-drop:has(.rp-drop-chosen :focus) {
    outline: 0;
}

.rp-drop.is-over {
    border-color: var(--rp-ink);
    background: var(--rp-hover);
}

.rp-drop p {
    margin: 0;
}

.rp-drop-choose {
    color: var(--rp-ink);
    text-decoration: underline;
}

/* What was chosen or dropped, listed in the box at once, each with Remove (portal/partials/drop). The list lies above
   the input so Remove can be pressed; a click or a drop anywhere else in the box, its names included, reaches the input. */
.rp-drop-chosen {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--rp-ink);
    pointer-events: none;
}

.rp-drop-chosen[hidden] {
    display: none;
}

.rp-drop-chosen > p {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-drop-chosen b {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rp-drop-chosen .rp-link-btn {
    pointer-events: auto;
}

.rp-files {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-files a {
    color: var(--rp-ink);
    font-weight: 600;
    text-decoration: underline;
}

.rp-files span {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

/* Remove beside a file (Umayr's 17): a quiet word, not a button's weight. */
.rp-files li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.rp-link-btn {
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--rp-muted);
    font: var(--rp-t-small);
    text-decoration: underline;
    cursor: pointer;
}

/* The older stylesheet's button:hover would paint it spruce under its ink. */
.rp-link-btn:hover {
    background: none;
    color: var(--rp-ink);
}

.rp-link-btn:focus-visible {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

/* A requested form (Run 8): the required mark, and choices laid out as a list. */
.rp-req {
    color: var(--rp-muted);
}

.rp-choices {
    display: grid;
    gap: 6px;
}

.rp-choices label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* A form's sections, skips, "Other" and rating scales (Run 13; portal/partials/form-fields): a section is a card of its
   own, a field or card its skip hides is gone from the page, a rating is a row of numbered buttons between its words. */
.rp-form-cards {
    display: grid;
    gap: var(--rp-gap);
}

.rp-form-cards > .rp-formcard + .rp-formcard {
    margin-top: 0;
}

.rp-formcard[hidden],
.rp-field[hidden],
.rp-other[hidden] {
    display: none;
}

.rp-section-text {
    margin: 0 0 12px;
    color: var(--rp-muted);
}

.rp-section-text:last-of-type {
    margin-bottom: 22px;
}

.rp-field-wide {
    grid-column: 1 / -1;
}

.rp-other {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.rp-scale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.rp-scale-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rp-scale-step {
    position: relative;
    display: inline-grid;
}

.rp-scale-step input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.rp-scale-step span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--rp-line-2);
    border-radius: var(--rp-r-control);
    background: var(--rp-panel);
    color: var(--rp-ink);
    font: 600 15px/1 var(--rp-font);
    font-variant-numeric: tabular-nums;
}

.rp-scale-step input:checked + span {
    border-color: var(--rp-ink);
    background: var(--rp-ink);
    color: var(--rp-panel);
}

.rp-scale-step input:focus-visible + span {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

.rp-scale-step input:disabled + span {
    opacity: 0.6;
}

.rp-scale-end {
    max-width: 14rem;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-answers-head {
    margin: 22px 0 8px;
    font: var(--rp-t-section);
}

/* The monthly report's own Yes / No above a money figure (Run 13, M5): side by side; No hides the amount. */
.rp-choices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.rp-amount {
    display: grid;
    gap: 6px;
}

.rp-amount[hidden],
.rp-hint[hidden] {
    display: none;
}

.rp-report-intro {
    margin-top: 8px;
}

/* Bring in from a sheet (Run 13, M4): what the sheet would do, row by row and column by column, each table scrolling
   sideways in its own box on a phone, its notes and titles wrapping as words do. */
.rp-bring-in {
    display: grid;
    gap: var(--rp-gap);
    margin-top: var(--rp-gap);
}

.rp-bring-table .rp-wraps {
    min-width: 16rem;
    white-space: normal;
}

.rp-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

/* A panel's own action on a home ("Send reminders", screen 05): Filament's button, where a link would be. */
.rp-panel-act {
    margin-top: auto;
}

.rp-kpi {
    padding: 16px 0;
    border-top: 1px solid var(--rp-line);
}

.rp-kpi:first-child {
    padding-top: 0;
    border-top: 0;
}

.rp-kpi-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rp-kpi .rp-form-grid {
    margin-top: 12px;
}

.rp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

/* Why Submit for checking waited: a short line beside the buttons, empty (and gone) until then. */
.rp-actions-note {
    margin: 0;
    color: var(--rp-ink);
    font: 500 13px/1.45 var(--rp-font);
}

.rp-actions-note:empty {
    display: none;
}

/* The older stylesheet's button:hover would paint a plain button spruce. */
.rp-body button.rp-btn {
    box-shadow: none;
    transform: none;
}

.rp-body button.rp-btn-plain:hover {
    background: var(--rp-panel);
    color: var(--rp-ink);
}

@media (max-width: 760px) {
    .rp-formcard {
        padding: 20px;
    }

    .rp-actions .rp-btn {
        flex: 1 1 auto;
        height: 44px;
    }
}

/* ---------- 9. Downloading a report (screen 21) ---------- */

/* ReportDownloadAction's dialog: the warning under the title, Draft and Final as cards (the chosen one ringed in ink),
   the tick, the button that names the choice, Cancel quiet. */
.rp-download .fi-modal-description {
    color: var(--rp-muted);
}

/* "Download as" names the cards, as a label does (500, muted), with no mark: one card is always chosen. */
.rp-download div.fi-fo-field-label .fi-fo-field-label-content {
    color: var(--rp-muted);
    font: 500 14px/1.4 var(--rp-font);
}

.rp-download div.fi-fo-field-label .fi-fo-field-label-required-mark {
    display: none;
}

/* The tick's words in the body's weight, as Ramp's .check. */
.rp-download label.fi-fo-field-label:has(.fi-checkbox-input) .fi-fo-field-label-content {
    font-weight: 400;
}

.rp-download .fi-fo-radio {
    display: grid;
    gap: 10px;
}

.rp-download .fi-fo-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--rp-line-2);
    border-radius: 10px;
    cursor: pointer;
}

.rp-download .fi-fo-radio-label:has(input:checked) {
    border-color: var(--rp-ink);
    box-shadow: inset 0 0 0 1px var(--rp-ink);
}

.rp-download .fi-fo-radio-label-text > p:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--rp-ink);
    font-weight: 600;
}

.rp-download .fi-fo-radio-label-description {
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

.rp-stamp {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border: 1.5px solid var(--rp-ink);
    border-radius: 6px;
    color: var(--rp-ink);
    font: 700 12px/1 var(--rp-font);
    letter-spacing: 0.06em;
}

.rp-download .fi-modal-footer .fi-btn.fi-color-gray {
    border-color: transparent;
    background: transparent;
    color: var(--rp-muted);
}

.rp-download .fi-modal-footer .fi-btn.fi-color-gray:hover {
    color: var(--rp-ink);
}

@media (prefers-reduced-motion: reduce) {
    .rp-body *,
    .fi-body * {
        transition: none !important;
        animation: none !important;
    }
}

.fi-input-wrp-label {
    color: var(--rp-muted);
}

/* The incubase logo at the top of a door (Umayr, 28 Oct 2026). */
.rp-door-logo {
    display: block;
    height: 36px;
    width: auto;
}

/* A hub (Programme, Funder reporting, Settings: App\Filament\Pages\Hubs): the area's pages in white panels, a panel
   per part of Incubase, each line a link, its few words under it, its count on the right. As many columns as fit, one
   on a phone, the parts in the order the work comes. */
.rp-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--rp-gap);
    align-items: start;
    max-width: 1040px;
}

.rp-hub-section {
    padding: 18px 20px 8px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
}

.rp-hub-section h2 {
    margin: 0 0 6px;
    color: var(--rp-muted);
    font: 500 13px/1.45 var(--rp-font);
}

.rp-hub-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-hub-lines a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    border-top: 1px solid var(--rp-line);
    color: var(--rp-ink);
    text-decoration: none;
}

.rp-hub-lines li:first-child a {
    border-top: 0;
}

.rp-hub-lines a:hover .rp-hub-name,
.rp-hub-lines a:focus-visible .rp-hub-name {
    text-decoration: underline;
}

.rp-hub-name {
    font: 500 15px/1.4 var(--rp-font);
}

.rp-hub-text {
    display: block;
    margin-top: 2px;
    color: var(--rp-muted);
    font: var(--rp-t-small);
}

/* A count beside a panel's title (the founder's News: how many she hasn't seen). */
.rp-panel h2 .rp-count {
    display: inline-block;
    margin-left: 6px;
    vertical-align: 1px;
}

/* Notifications by urgency (App\Support\Urgency): late in Ramp's late chip, urgent lime with ink (what needs doing),
   to do a quiet grey count. The words ("2 late, 3 to do") go to a screen reader in .rp-sr, and under a pointer. */
.rp-count.is-late,
.fi-sidebar .fi-sidebar-item[data-urgency="late"] .fi-sidebar-item-badge-ctn .fi-badge {
    background: var(--rp-late-bg);
    color: var(--rp-late);
}

/* A menu row says its level itself (App\Support\Menu): Filament gives a grey badge no colour class. */
.rp-count.is-todo,
.fi-sidebar .fi-sidebar-item[data-urgency="todo"] .fi-sidebar-item-badge-ctn .fi-badge {
    background: var(--rp-sunk);
    color: var(--rp-muted);
}

.rp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The issue panel's items link straight to what is late or urgent: white on the black panel, underlined. */
.rp-panel-list a,
.rp-panel .rp-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rp-ink-panel .rp-panel-list a,
.rp-ink-panel .rp-text a {
    color: #fff;
}

.rp-ink-panel .rp-panel-list a:focus-visible,
.rp-ink-panel .rp-text a:focus-visible {
    outline: 2px solid var(--rp-lime);
    outline-offset: 2px;
}

/* The cohort switcher (Run 6): the cohort's name in the line above a home, the Programme hub and Companies, as a
   choice that reads as part of the line; its tail ("· week 5 of 52 · next review …") follows it and wraps as words do
   (Run 11). The choice is as wide as the name chosen, where the browser can size it so. */
.rp-switch {
    display: block;
}

.rp-switch select {
    field-sizing: content;
    max-width: 100%;
    margin: 0 2px 0 0;
    padding: 2px 22px 2px 0;
    border: 0;
    border-bottom: 1px dashed var(--rp-faint);
    border-radius: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2355554F' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center;
    color: var(--rp-ink);
    font: 500 15px/1.5 var(--rp-font);
    appearance: none;
    cursor: pointer;
}

.rp-switch select:focus-visible {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

.rp-home > .rp-notice,
.rp-page-head > .rp-notice,
.rp-list-head .rp-notice {
    margin: 0 0 12px;
}

.rp-notice a {
    color: var(--rp-ink);
    font-weight: 500;
}

/* In the black panel each item's reason sits under its name, so a long reason never squeezes the name. */
.rp-ink-panel .rp-panel-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rp-ink-panel :where(.rp-panel-list) .rp-meta {
    white-space: normal;
}

/* Settings > Roles and the role editor (Umayr's 12 and 13): a plain white table, figures right, the ticks centred. */
.rp-roles,
.rp-role-editor {
    display: grid;
    gap: 20px;
    max-width: 1040px;
}

.rp-roles-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    font: var(--rp-t-body);
}

.rp-roles-table th,
.rp-roles-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--rp-line);
    text-align: left;
}

.rp-roles-table thead th {
    border-top: 0;
    color: var(--rp-muted);
    font: 500 13px/1.45 var(--rp-font);
}

.rp-roles-table tbody th {
    font-weight: 500;
}

.rp-roles-table .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rp-roles-table .is-action {
    text-align: right;
}

.rp-roles-table .is-tick {
    text-align: center;
}

/* New role's list of roles to copy: the Roles list's rows, its padding and hairlines, each row a link. */
.rp-role-from {
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
}

.rp-role-from a {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--rp-line);
    color: var(--rp-ink);
    font: var(--rp-t-body);
    font-weight: 500;
    text-decoration: none;
}

.rp-role-from li:first-child a {
    border-top: 0;
}

.rp-role-from a:hover,
.rp-role-from a:focus-visible {
    text-decoration: underline;
}

.rp-role-from a:focus-visible {
    outline: 2px solid var(--rp-ink);
    outline-offset: -2px;
    border-radius: var(--rp-r-control);
}

.rp-ticks input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rp-ink);
}

.rp-na {
    color: var(--rp-faint);
    font: var(--rp-t-small);
}

.rp-role-editor .rp-field {
    display: grid;
    gap: 6px;
    max-width: 420px;
}

.rp-field-error {
    margin: 0;
    color: var(--rp-late);
    font: var(--rp-t-small);
}

/* What stays fixed, under the grid: a label, then its words, one row each. */
.rp-role-facts {
    display: grid;
    gap: 14px;
    margin: 0;
}

.rp-role-facts > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
}

.rp-role-facts dt {
    font-weight: 500;
}

.rp-role-facts dd {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    color: var(--rp-muted);
}

.rp-role-facts .rp-hint {
    flex-basis: 100%;
    font: var(--rp-t-small);
}

@media (max-width: 760px) {
    .rp-role-facts > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.rp-role-editor .rp-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 760px) {
    .rp-roles-table th,
    .rp-roles-table td {
        padding: 10px 8px;
    }

    .rp-ticks {
        display: block;
        overflow-x: auto;
    }
}

/* What happened with nothing in it: its one sentence across the list, not in the date's column. */
.rp-feed .rp-feed-empty {
    display: block;
}

/* Words that must be read stay at 4.5:1 or more (WCAG AA): the editor's n/a, a table row's second line, and the
   footer's small print inside the app (the pages a guest sees keep theirs). */
.rp-na {
    color: var(--rp-dash);
}

.fi-ta-text.fi-ta-text-has-descriptions .fi-ta-text-description {
    color: var(--rp-muted);
}

.fi-body .ib-foot-legal,
.rp-shell .ib-foot-legal,
.rp-request-page .ib-foot-legal,
.rp-body .ib-foot-legal {
    color: var(--rp-muted);
}

/* Every dialog's line under its title (Request a form, Send back, Set a time, Run 8), as the download dialog's. */
.fi-modal-description {
    color: var(--rp-muted);
}

/* Words that must be read at 4.5:1 (axe, Run 9): a table's empty-cell placeholder ("None" on Sessions) and a choice's
   line under it (an announcement's levels); since Run 11b, a detail's empty placeholder (a funding decision's), the label
   a stacked table gives each cell on a phone (Joining papers, a session's register), and a table's grey figure (a
   quarter's 0.0% complete). */
.fi-ta-placeholder,
.fi-fo-radio-label-description,
.fi-in-placeholder,
.fi-ta-cell-label,
.fi-ta-text-item.fi-color-gray {
    color: var(--rp-muted);
}

/* Run 9: the documents sent with a requested form, above its fields; a file or link field's link, and a link given as an
   answer, which wraps rather than pushing the page sideways. */
.rp-request-docs {
    margin-bottom: var(--rp-gap);
}

.rp-or-link {
    margin-top: 8px;
}

.rp-wrap,
.rp-answer-link {
    overflow-wrap: anywhere;
}

.rp-answer-link {
    margin: 0;
}

/* Run 9: the messages to copy after a send from a list (filament/copy-messages), one dialog for all of them. */
.rp-copy {
    box-sizing: border-box;
    /* The admin's reset takes a dialog's own centring margin away. */
    margin: auto;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
    color: var(--rp-ink);
}

.rp-copy::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.rp-copy-inner {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.rp-copy-title {
    margin: 0;
    font: var(--rp-t-section);
}

.rp-copy-lead {
    margin: 0;
    color: var(--rp-muted);
}

.rp-copy-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-copy-list li {
    display: grid;
    gap: 6px;
}

.rp-copy-list label {
    font: 600 15px/1.4 var(--rp-font);
    overflow-wrap: anywhere;
}

.rp-copy-text {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    font: 14px/1.45 var(--rp-font);
}

.rp-copy-list .rp-btn,
.rp-copy form .rp-btn {
    justify-self: start;
}

/* Run 11b, the sweep at 390. A table placed as a schema's text (Register a participant's list) scrolls sideways in its
   own box: the text's inline wrapper would otherwise be as wide as the table, and the page with it. */
.fi-sc-text:has(> .rp-scroll) {
    display: block;
}

.rp-scroll {
    overflow-x: auto;
}

.rp-scroll :is(th, td) {
    white-space: nowrap;
}

/* Selection's tabs (Stage 0, Stage 1, Interviews, Final pitching) wrap onto a second line rather than off the screen. */
.wl-tabs {
    flex-wrap: wrap;
}

/* The selection journey's chart scrolls sideways inside its own box on a phone; its 34rem least width no longer widens
   the whole page's column. */
.wl-jr {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- 10. The intro after sign-in (Run 12) ---------- */

/* The Incubase logo in glass, once after each sign-in (partials/intro, public/js/intro/glass-reveal.js): an overlay in
   the page's colour over the page while it loads. Its script sizes and places the glass and the logo, then fades it. */
.rp-intro {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow: hidden;
    background: var(--rp-page);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rp-intro[hidden] {
    display: none;
}

.rp-intro-glass,
.rp-intro-logo {
    position: absolute;
    display: block;
    max-width: none;
    visibility: hidden;
}

.rp-intro.is-playing .rp-intro-glass {
    visibility: visible;
}

/* "incubase" comes in beside the pyramid: the logo left of --split (its pyramid, which the glass still draws) stays
   hidden, and a soft edge wipes the word in to the right. Once the pyramid stands in its place, the logo shows whole. */
.rp-intro.is-word .rp-intro-logo {
    visibility: visible;
    -webkit-mask-image: linear-gradient(90deg, transparent var(--split), #000 var(--split), #000 calc(var(--wipe) - var(--edge)), transparent var(--wipe));
    mask-image: linear-gradient(90deg, transparent var(--split), #000 var(--split), #000 calc(var(--wipe) - var(--edge)), transparent var(--wipe));
}

.rp-intro.is-logo .rp-intro-logo {
    visibility: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.rp-intro.is-logo .rp-intro-glass {
    visibility: hidden;
}

.rp-intro.is-leaving {
    opacity: 0;
    pointer-events: none;
}

/* ---------- 11. The KPI document (Run 13, M6) ---------- */

/* A company's KPIs as agreed, Addendum A, laid out as NIC's month-1 KPI document: one white sheet on the page's ground,
   to read and to print. The bar above it and the founder's form below it are not printed. */
.rp-kpi-doc-page {
    margin: 0;
    background: var(--rp-page);
    color: var(--rp-ink);
    font: var(--rp-t-body);
}

.rp-kpi-doc-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 52rem;
    margin: 0 auto;
    padding: 16px;
}

.rp-kpi-doc {
    box-sizing: border-box;
    max-width: 52rem;
    margin: 0 auto 40px;
    padding: 32px;
    border-radius: var(--rp-r-panel);
    background: var(--rp-panel);
}

.rp-kpi-doc h1 {
    margin: 4px 0 8px;
    font: var(--rp-t-title, 700 28px/1.2 var(--rp-font));
}

.rp-kpi-doc h2 {
    margin: 24px 0 6px;
    font: 700 15px/1.4 var(--rp-font);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rp-kpi-doc h3 {
    margin: 0 0 4px;
    font: 600 16px/1.4 var(--rp-font);
}

.rp-kpi-doc p {
    margin: 0 0 8px;
}

.rp-kpi-doc-state {
    color: var(--rp-muted);
}

.rp-kpi-doc-facts {
    display: grid;
    gap: 6px 16px;
    margin: 20px 0 0;
}

.rp-kpi-doc-facts > div {
    display: grid;
    grid-template-columns: minmax(7rem, 10rem) 1fr;
    gap: 12px;
}

.rp-kpi-doc-facts dt {
    color: var(--rp-muted);
    font-weight: 600;
}

.rp-kpi-doc-facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rp-kpi-doc-primary p {
    padding: 12px 14px;
    border-left: 4px solid var(--rp-ink);
    background: var(--rp-page);
    font-weight: 600;
}

.rp-kpi-doc-kpi {
    padding: 12px 0;
    border-top: 1px solid var(--rp-line);
}

.rp-kpi-doc-due {
    color: var(--rp-muted);
}

.rp-kpi-doc-set {
    margin-left: 6px;
}

.rp-kpi-doc-signs {
    padding-top: 16px;
    border-top: 1px solid var(--rp-line);
}

.rp-kpi-doc-ack {
    display: grid;
    gap: 8px;
    max-width: 30rem;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--rp-line);
}

.rp-kpi-doc-ack .rp-btn {
    justify-self: start;
}

.rp-kpi-doc-tick {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

@media (max-width: 560px) {
    .rp-kpi-doc {
        padding: 20px 16px;
        border-radius: 0;
    }

    .rp-kpi-doc-facts > div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media print {
    .rp-kpi-doc-page {
        background: #fff;
    }

    .rp-kpi-doc-bar,
    .rp-kpi-doc-ack,
    .rp-skip {
        display: none;
    }

    .rp-kpi-doc {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* ---------- 12. Ignite's tables (Run 13, M9) ---------- */

/* Each of the report's tables in a panel of its own; a wide one scrolls inside its frame (a focusable region), never the
   page, so nothing scrolls sideways at 390. */
.rp-ignite {
    display: grid;
    gap: 16px;
}

.rp-ignite-scroll {
    margin-top: 12px;
    overflow-x: auto;
}

.rp-ignite-scroll:focus-visible {
    outline: 2px solid var(--rp-ink);
    outline-offset: 2px;
}

.rp-ignite-table table {
    width: 100%;
    border-collapse: collapse;
    font: var(--rp-t-small);
}

.rp-ignite-table th,
.rp-ignite-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--rp-line);
    text-align: left;
    vertical-align: top;
}

.rp-ignite-table th {
    color: var(--rp-muted);
    font-weight: 600;
    white-space: nowrap;
}
