@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/quicksand-latin.9d503278216c.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: "Quicksand";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/quicksand-latin-ext.7ee01e648403.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;
}

* {
    padding: 0;
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
}

a {
    cursor: pointer;
    color: black;
}

/* Font Sizes */

h1, h2 {
    font-size: 1.8rem;
}

h3{
    font-size: 1.4rem;
}

h4, p, td, th, button, .close, input, label, .circ, select {
    font-size: 1.0rem;
}

p.signup-legal,
p.signup-legal a {
    font-family: "Quicksand", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

button:hover {
    cursor: pointer;
}

/* Initial hidden state for any element with the fade-in class */
  .fade-in {
    opacity: 0;
    transform: translateY(35px) rotate(-3deg);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1); /* smooth, natural easing */
    will-change: opacity, transform; /* performance hint for the browser */
  }

  /* Visible/animated state */
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

/* Remove number spinners completely */
.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.no-spinners {
    -moz-appearance: textfield;
    appearance: textfield;
}

.spare-qty-stepper {
    width: 10.5rem;
    flex: 0 0 auto;
}

.spare-qty-stepper .form-control {
    max-width: 4rem;
}

/* Optional but nice — sort direction arrows */
.sorted-asc::after,
.sorted-desc::after {
    content: ' ↑';
    color: #28a745;
    font-size: 0.9em;
    margin-left: 4px;
}
.sorted-desc::after {
    content: ' ↓';
}

/* Storefront engine cards: keep long status badges inside the card on mid-width layouts */
.store-engine-card {
    overflow: hidden;
    min-width: 0;
}

.store-engine-card .card-body {
    min-width: 0;
}

.store-engine-card .engine-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.store-engine-card .engine-card-header .card-title {
    min-width: 0;
    flex: 1 1 7rem;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

/* Bootstrap badges default to nowrap; long statuses (e.g. "Available for Sale") overflow narrow cards */
.store-engine-card .badge {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Spec table inside drill-down inventory cards */
.store-engine-card .engine-card-specs {
    table-layout: fixed;
    width: 100%;
}

.store-engine-card .engine-card-specs th,
.store-engine-card .engine-card-specs td {
    word-break: break-word;
    vertical-align: top;
    padding: 0.35rem 0.25rem;
}

.store-engine-card .engine-card-specs th {
    width: 42%;
    font-weight: 700;
    text-align: right;
    padding-right: 0.5rem;
}

.store-engine-card .engine-card-specs td {
    width: 58%;
    text-align: left;
}

/* Store browse cards (aircraft / engine variant selectors on the inventory hub).
   Show more is the primary drill-down; the full-page link is the grey secondary. */
.store-browse-card {
    overflow: hidden;
    min-width: 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-browse-card:hover {
    box-shadow: 0 0.5rem 1.15rem rgba(0, 0, 0, 0.12) !important;
}

.store-browse-card .card-body {
    min-width: 0;
}

.store-browse-card .card-title {
    overflow-wrap: anywhere;
}

.store-card-prices {
    overflow-wrap: anywhere;
}

.store-browse-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.store-browse-card__more {
    font-weight: 600;
}

.store-browse-card__more:disabled {
    pointer-events: none;
    opacity: 0.7;
}

.store-browse-card__page-link {
    font-weight: 600;
}

/* Added to allow for 'sold' banner on inventory pages */
.image-container {
    position: relative; /* Allows absolute positioning of child elements */
    display: inline-block; /* Keeps it inline with surrounding content */
}

.sold-overlay {
    position: absolute;
    top: 50%; /* Center vertically before rotation */
    left: 50%; /* Center horizontally before rotation */
    transform: translate(-50%, -50%) rotate(-45deg); /* Center and rotate */
    color: red;
    font-size: 3rem; /* Adjust size based on image dimensions; use rem for responsiveness */
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent wrapping */
    pointer-events: none; /* Allow clicks to pass through to the image/container */
    z-index: 10; /* Ensure it's on top */
    /* Optional: Add semi-transparent background for better visibility */
    /* background-color: rgba(255, 255, 255, 0.7); */
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.brevoField {
    margin-bottom: 1rem !important;
}

.burg {color: rgb(144,0,32);}
.grey {color: rgb(191,193,194)}

.navbar-nav {
    align-items: center;
}

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.inventory-image {
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.inventory-image:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

table {
    width: 100%;
}

.tableDiv {
    margin-bottom: 1rem;
    .cell {
        input, select {
            width: 100%;
        }
    }
}

:root {
    --navbar-height: 4rem;
    --navbar-toggler-size: 3rem;
    /* Product line colours — burgundy / brass / steel, not Bootstrap defaults */
    --product-oe: #900020;
    --product-oe-hover: #75001a;
    --product-oe-rgb: 144, 0, 32;
    --product-prepayment: #8b6914;
    --product-prepayment-hover: #6f540f;
    --product-prepayment-rgb: 139, 105, 20;
    --product-lease: #3d5a73;
    --product-lease-hover: #31485c;
    --product-lease-rgb: 61, 90, 115;
}

.text-product-oe { color: var(--product-oe) !important; }
.text-product-prepayment { color: var(--product-prepayment) !important; }
.text-product-lease { color: var(--product-lease) !important; }

.border-product-oe { border-color: var(--product-oe) !important; }
.border-product-prepayment { border-color: var(--product-prepayment) !important; }
.border-product-lease { border-color: var(--product-lease) !important; }

.btn.btn-product-oe {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--product-oe);
    --bs-btn-border-color: var(--product-oe);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-oe-hover);
    --bs-btn-hover-border-color: var(--product-oe-hover);
    --bs-btn-focus-shadow-rgb: var(--product-oe-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-oe-hover);
    --bs-btn-active-border-color: var(--product-oe-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--product-oe);
    --bs-btn-disabled-border-color: var(--product-oe);
}

.btn.btn-product-prepayment {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--product-prepayment);
    --bs-btn-border-color: var(--product-prepayment);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-prepayment-hover);
    --bs-btn-hover-border-color: var(--product-prepayment-hover);
    --bs-btn-focus-shadow-rgb: var(--product-prepayment-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-prepayment-hover);
    --bs-btn-active-border-color: var(--product-prepayment-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--product-prepayment);
    --bs-btn-disabled-border-color: var(--product-prepayment);
}

.btn.btn-product-lease {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--product-lease);
    --bs-btn-border-color: var(--product-lease);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-lease-hover);
    --bs-btn-hover-border-color: var(--product-lease-hover);
    --bs-btn-focus-shadow-rgb: var(--product-lease-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-lease-hover);
    --bs-btn-active-border-color: var(--product-lease-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--product-lease);
    --bs-btn-disabled-border-color: var(--product-lease);
}

.btn.btn-outline-product-oe {
    --bs-btn-color: var(--product-oe);
    --bs-btn-border-color: var(--product-oe);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-oe);
    --bs-btn-hover-border-color: var(--product-oe);
    --bs-btn-focus-shadow-rgb: var(--product-oe-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-oe);
    --bs-btn-active-border-color: var(--product-oe);
    --bs-btn-disabled-color: var(--product-oe);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--product-oe);
}

.btn.btn-outline-product-prepayment {
    --bs-btn-color: var(--product-prepayment);
    --bs-btn-border-color: var(--product-prepayment);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-prepayment);
    --bs-btn-hover-border-color: var(--product-prepayment);
    --bs-btn-focus-shadow-rgb: var(--product-prepayment-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-prepayment);
    --bs-btn-active-border-color: var(--product-prepayment);
    --bs-btn-disabled-color: var(--product-prepayment);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--product-prepayment);
}

.btn.btn-outline-product-lease {
    --bs-btn-color: var(--product-lease);
    --bs-btn-border-color: var(--product-lease);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-lease);
    --bs-btn-hover-border-color: var(--product-lease);
    --bs-btn-focus-shadow-rgb: var(--product-lease-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--product-lease);
    --bs-btn-active-border-color: var(--product-lease);
    --bs-btn-disabled-color: var(--product-lease);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--product-lease);
}

/* main { */
/*     padding-top: var(--navbar-height); */
/* } */

.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.site-navbar.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-shell {
    padding: 0;
}

.navbar-header {
    min-height: var(--navbar-height);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 0;
}

.navbar-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.navbar-logo-air {
    width: 275px;
}

.navbar-logo-power {
    width: 210px;
}

.navbar-nav-desktop .nav-link,
.site-nav-mobile .nav-link {
    color: var(--bs-emphasis-color);
}

.navbar-nav button.nav-link,
footer button.nav-link {
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
}

.mobile-nav-divider {
    border-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

@media (min-width: 992px) {
    .site-navbar .navbar-header {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .navbar-toggler-spacer,
    .navbar-toggler {
        display: none !important;
    }

    .navbar-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .navbar-nav-desktop {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .navbar-account-desktop {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0 !important;
    }

    #navbarAccount.navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    /* Keep the hamburger bar on screen and scroll the open menu, not the page.
       A long staff list previously overflowed the fixed navbar with no way to reach
       items below the fold. */
    .site-navbar.fixed-top {
        max-height: 100vh;
        max-height: 100dvh;
    }

    .site-navbar .navbar-shell {
        display: flex;
        flex-direction: column;
        max-height: inherit;
        min-height: 0;
        overflow: hidden;
    }

    body:has(#navbarAccount.show) {
        overflow: hidden;
    }

    .site-navbar .navbar-header {
        display: flex !important;
        align-items: center;
        overflow-x: clip;
        flex: 0 0 auto;
    }

    .navbar-toggler-spacer {
        flex: 0 0 var(--navbar-toggler-size);
        width: var(--navbar-toggler-size);
    }

    .navbar-brand {
        flex: 1 1 0;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .navbar-logo-air {
        width: min(275px, 52vw);
    }

    .navbar-logo-power {
        width: min(210px, 52vw);
    }

    .navbar-toggler {
        flex: 0 0 var(--navbar-toggler-size);
        margin: 0;
    }

    /* Unread messages indicator on the hamburger (kept inset to avoid overflow clip) */
    .navbar-toggler .messaging-menu-badge {
        position: absolute;
        top: 0.2rem;
        right: 0.15rem;
        z-index: 1;
        font-size: 0.65rem;
        padding: 0.2em 0.4em;
        line-height: 1;
        min-width: 1.1rem;
        pointer-events: none;
    }

    #navbarAccount.collapse,
    #navbarAccount.collapsing,
    #navbarAccount.collapse.show {
        padding: 0 !important;
        margin: 0;
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        flex: 0 0 auto;
        width: 100%;
    }

    #navbarAccount.collapse.show {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(100vh - var(--navbar-height));
        max-height: calc(100dvh - var(--navbar-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    #navbarAccount .mobile-nav-inner {
        padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) 1.75rem;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .site-nav-mobile,
    .navbar-account-mobile {
        align-items: stretch;
        width: 100%;
    }

    .site-nav-mobile .nav-link,
    .navbar-account-mobile .nav-link {
        text-align: left;
    }

    .staff-nav-toggle {
        border: 0;
        background: transparent;
        cursor: pointer;
        font: inherit;
        color: inherit;
    }

    .staff-nav-chevron {
        font-size: 0.85rem;
        transition: transform 0.2s ease;
    }

    .staff-nav-toggle[aria-expanded="true"] .staff-nav-chevron {
        transform: rotate(180deg);
    }

    .staff-nav-sublist {
        align-items: stretch;
        width: 100%;
        padding-left: 0.5rem;
    }

    .staff-nav-heading {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6c757d;
        padding: 0.65rem 0 0.15rem;
        list-style: none;
    }
}

/* Desktop Messages link: keep unread badge inline with the label */
.navbar-account-desktop .messaging-nav-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.45em;
    line-height: 1;
}

#staff-menu .dropdown-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

#full-screen-loader .loader-content {
    text-align: center;
    color: white;
}

.loader-content {
    max-width: 420px;
}

@media only screen and (min-width: 768px) {

    h1, h2 {
        font-size: 2.5rem;
    }

    h3{
        font-size: 2rem;
    }

    h4, p, a, td, th, button, .close, input, label, .circ, select {
        font-size: 1rem;
    }

    .finePrint {
        font-size: 0.75rem;
    }

    #profile-menu,
    #staff-menu {
        right: 0 !important;
        left: auto !important;
        max-height: min(80vh, calc(100vh - var(--navbar-height) - 0.75rem));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

}

/* ============================================================
   Global improvements for data tables on narrow screens / mobile
   These help all list views (invoices, PO, stock, etc.) without
   requiring changes to every template.
   ============================================================ */
.table-responsive {
    /* Ensure a visible scrollbar affordance on iOS/Android */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Relax aggressive fixed layouts on small screens so columns
       can size naturally; combined with .table-responsive this
       produces a scrollable but usable table instead of cramped cells. */
    table[style*="fixed"] {
        table-layout: auto !important;
    }

    .table th,
    .table td {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
}

/* Make sortable headers a bit easier to tap on touch devices */
.sortable-table th {
    user-select: none;
}

/* ============================================================
   Profile page visual enhancements
   ============================================================ */

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: rgb(144, 0, 32);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(144, 0, 32, 0.25);
    flex-shrink: 0;
}

.profile-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-section {
    margin-top: 2rem;
}

.profile-section-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f5;
}

.profile-item-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.profile-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 50rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.info-row .info-value {
    color: #212529;
    flex: 1;
}

.action-btn {
    min-width: 140px;
}

/* Responsive tweaks for profile */
@media (max-width: 576px) {
    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }
    .profile-header {
        padding: 1.25rem 1rem;
    }
    .info-row {
        flex-direction: column;
        gap: 0.15rem;
    }
    .info-row .info-label {
        width: auto;
    }
}

/* Homepage — cinematic hero + product chooser, aligned with product-info pages.
   Product colours come from :root tokens. The chooser is a tab strip attached
   to the copy panel; the selected product recolors the hero. */
.home-page {
    --cycle-ms: 5s;
    --pi-accent: var(--product-oe);
    --pi-accent-rgb: var(--product-oe-rgb);
    --home-hero-bg: #0c0708;
    overflow-x: hidden;
}

.home-page:has(#hp-prepayment:checked) {
    --pi-accent: var(--product-prepayment);
    --pi-accent-rgb: var(--product-prepayment-rgb);
    --home-hero-bg: #110d06;
}

.home-page:has(#hp-lease:checked) {
    --pi-accent: var(--product-lease);
    --pi-accent-rgb: var(--product-lease-rgb);
    --home-hero-bg: #081018;
}

.home-page.product-info .home-hero {
    min-height: 0;
    padding-top: calc(var(--navbar-height) + 1.4rem);
    padding-bottom: 4.5rem;
    background-color: var(--home-hero-bg);
    transition: background-color 0.6s ease;
}

.home-hero-intro {
    max-width: 46rem;
    width: 100%;
    margin-bottom: 0.85rem;
    padding-inline: 0.5rem;
}

.home-page .home-hero-intro h1 {
    font-size: clamp(1.95rem, 6vw, 4.4rem);
}

.home-hero-intro .lead {
    max-width: 34rem;
}

.home-product-showcase {
    --cycle-ms: 5s;
}

.home-product-stage {
    position: relative;
    padding: 0.35rem 0 1.4rem;
}

.home-product-stage-floor {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0.15rem;
    height: 4.2rem;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--pi-accent-rgb), 0.38),
        transparent 72%
    );
    filter: blur(10px);
    opacity: 0.9;
    transition: background 0.55s ease;
}

.home-product-media-label {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 1.1rem;
    transform: scale(0.9) translateY(10px);
    opacity: 0.62;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.home-product-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: visible;
}

.home-product-halo {
    position: absolute;
    inset: 8% -4% auto;
    height: 78%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--pi-accent-rgb), 0.7),
        transparent 68%
    );
    filter: blur(18px);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.home-product-media-label img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    filter: grayscale(0.35) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35));
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.home-product-media-label img.visible {
    opacity: 0.78;
}

.home-product-media-label:hover img.visible {
    opacity: 1;
}

.home-product-showcase:has(#hp-prepayment:checked) .home-product-media-label--prepayment,
.home-product-showcase:has(#hp-oe:checked) .home-product-media-label--oe,
.home-product-showcase:has(#hp-lease:checked) .home-product-media-label--lease {
    transform: scale(1.08) translateY(-6px);
    opacity: 1;
    z-index: 2;
}

.home-product-showcase:has(#hp-prepayment:checked) .home-product-media-label--prepayment img.visible,
.home-product-showcase:has(#hp-oe:checked) .home-product-media-label--oe img.visible,
.home-product-showcase:has(#hp-lease:checked) .home-product-media-label--lease img.visible {
    opacity: 1;
    filter: grayscale(0) drop-shadow(0 22px 26px rgba(0, 0, 0, 0.45));
}

.home-product-showcase:has(#hp-prepayment:checked) .home-product-media-label--prepayment .home-product-halo,
.home-product-showcase:has(#hp-oe:checked) .home-product-media-label--oe .home-product-halo,
.home-product-showcase:has(#hp-lease:checked) .home-product-media-label--lease .home-product-halo {
    opacity: 1;
    transform: scale(1);
}

.home-product-tabset {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
}

.home-product-hint {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: rgba(246, 239, 232, 0.62);
    text-align: center;
}

.home-product-tablist {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-product-tab-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.home-product-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 3rem;
    margin: 0 0 -1px;
    padding: 0.7rem 0.45rem 0.85rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-top-left-radius: 0.7rem;
    border-top-right-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    font-size: clamp(0.78rem, 2.1vw, 1.05rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    color: rgba(246, 239, 232, 0.58);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-product-heading-text {
    display: block;
    text-align: center;
    font-weight: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.home-product-pin {
    display: none;
    font-size: 0.85em;
    line-height: 1;
}

.home-product-tab::before,
.home-product-tab::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    pointer-events: none;
}

.home-product-tab::before {
    background: currentColor;
    opacity: 0;
}

.home-product-tab::after {
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
}

.home-product-tab--oe {
    --home-tab-color: var(--product-oe);
}

.home-product-tab--prepayment {
    --home-tab-color: var(--product-prepayment);
}

.home-product-tab--lease {
    --home-tab-color: var(--product-lease);
}

.home-product-copy-title--oe {
    color: #fff;
}

.home-product-copy-title--prepayment {
    color: #fff;
}

.home-product-copy-title--lease {
    color: #fff;
}

.home-product-radio:not(:checked) + .home-product-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.12) transparent;
    color: #fff;
}

.home-product-radio:checked + .home-product-tab {
    z-index: 1;
    background: rgba(12, 8, 9, 0.72);
    border-color: rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.16) transparent;
    color: var(--home-tab-color);
    box-shadow: inset 0 3px 0 var(--home-tab-color);
}

.home-product-radio:checked + .home-product-tab::before {
    opacity: 0.2;
}

.home-product-radio:focus-visible + .home-product-tab {
    outline: 3px solid var(--home-tab-color, var(--product-oe));
    outline-offset: 2px;
}

.home-product-showcase.is-progressing:not(.is-locked) .home-product-radio:checked + .home-product-tab::after {
    animation: home-product-progress var(--cycle-ms, 5s) linear forwards;
}

.home-product-showcase.is-paused .home-product-tab::after {
    animation-play-state: paused;
}

.home-product-showcase.is-locked .home-product-radio:checked + .home-product-tab::after {
    animation: none;
    transform: scaleX(1);
}

.home-product-showcase.is-locked .home-product-radio:checked + .home-product-tab .home-product-pin {
    display: inline-block;
}

@keyframes home-product-progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.home-product-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    min-height: 17.5rem;
    padding: 1.35rem 1.4rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(12, 8, 9, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
    color: var(--pi-ink);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.home-product-showcase:not(.is-locked) .home-product-copy {
    cursor: pointer;
}

.home-product-panel-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pi-accent);
}

.home-product-copy-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.home-product-panels {
    display: grid;
    grid-template-rows: 1fr;
    flex: 1 1 auto;
    min-height: 0;
}

.home-product-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-product-copy-main {
    flex: 0 1 auto;
}

.home-product-panel .lead {
    margin-bottom: 0;
    color: var(--pi-muted);
}

.home-product-cooling-off {
    flex: 0 1 auto;
    align-self: stretch;
    margin: 0;
    padding: 0.55rem 1.1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(var(--pi-accent-rgb), 0.45);
    background: rgba(var(--pi-accent-rgb), 0.18);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #fff;
    overflow-wrap: break-word;
}

.home-product-cta {
    flex: 0 1 auto;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.home-page .home-product-cta .btn-outline-product-oe {
    --bs-btn-color: #f3c4ce;
    --bs-btn-border-color: #e89aa8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-oe);
    --bs-btn-hover-border-color: var(--product-oe);
}

.home-page .home-product-cta .btn-outline-product-prepayment {
    --bs-btn-color: #f4d896;
    --bs-btn-border-color: #d4b25a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-prepayment);
    --bs-btn-hover-border-color: var(--product-prepayment);
}

.home-page .home-product-cta .btn-outline-product-lease {
    --bs-btn-color: #c5d6e4;
    --bs-btn-border-color: #8aa7bc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--product-lease);
    --bs-btn-hover-border-color: var(--product-lease);
}

.home-product-panel[data-product="oe"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-product-showcase:has(#hp-oe:checked) .home-product-panel[data-product="oe"],
.home-product-showcase:has(#hp-prepayment:checked) .home-product-panel[data-product="prepayment"],
.home-product-showcase:has(#hp-lease:checked) .home-product-panel[data-product="lease"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-product-showcase:has(#hp-prepayment:checked) .home-product-panel[data-product="oe"],
.home-product-showcase:has(#hp-lease:checked) .home-product-panel[data-product="oe"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.home-stat--oe {
    --pi-accent: var(--product-oe);
    --pi-accent-rgb: var(--product-oe-rgb);
}

.home-stat--prepayment {
    --pi-accent: var(--product-prepayment);
    --pi-accent-rgb: var(--product-prepayment-rgb);
}

.home-stat--lease {
    --pi-accent: var(--product-lease);
    --pi-accent-rgb: var(--product-lease-rgb);
}

.home-signup {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.25rem;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(var(--product-oe-rgb), 0.94), rgba(12, 7, 8, 0.92)),
        #1a0b0e;
}

.home-signup-sheen {
    position: absolute;
    inset: -40% -20%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: translateX(-60%) rotate(12deg);
    animation: pi-sheen 5.5s ease-in-out infinite;
}

.home-signup .container {
    position: relative;
    z-index: 1;
}

.home-signup-kicker,
.home-trade-kicker,
.home-suppliers-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-signup-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.home-trade-kicker {
    color: var(--product-oe);
}

.home-suppliers-kicker {
    color: #8a8178;
}

.home-signup h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #fff;
    margin-bottom: 0.75rem;
}

.home-signup .lead {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.78);
}

.home-signup-form {
    max-width: 36rem;
}

.home-signup .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.home-signup .form-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.home-signup .form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.18);
}

.home-signup .signup-legal,
.home-signup .signup-legal a {
    color: rgba(255, 255, 255, 0.72);
}

.home-signup .signup-legal a:hover,
.home-signup .signup-legal a:focus-visible {
    color: #fff;
}

.home-signup-follow {
    margin: 0.15rem 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.5rem 0 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: var(--bs-secondary-color);
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
}

.social-link:hover {
    color: var(--bs-emphasis-color);
}

.social-link:focus-visible {
    color: var(--bs-emphasis-color);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.social-links--on-dark .social-link {
    color: rgba(255, 255, 255, 0.82);
}

.social-links--on-dark .social-link:hover,
.social-links--on-dark .social-link:focus-visible {
    color: #fff;
}

.home-trade {
    background: #fff;
}

.home-trade .pi-section-lede a {
    color: var(--product-oe);
    font-weight: 700;
    text-decoration: none;
}

.home-trade .pi-section-lede a:hover,
.home-trade .pi-section-lede a:focus-visible {
    text-decoration: underline;
}

.home-trade-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 1.4rem;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(var(--product-oe-rgb), 0.14), transparent 70%),
        linear-gradient(180deg, #fbf8f5, #f3eee8);
}

.home-trade-stage img {
    max-height: 22rem;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 18px 24px rgba(12, 7, 8, 0.18));
}

.home-suppliers {
    background: #f7f4f0;
}

.home-supplier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    height: 100%;
    min-height: 11rem;
    padding: 1.5rem 1.25rem;
    border-radius: 1.1rem;
    border: 1px solid #ece7e2;
    background: linear-gradient(180deg, #fff, #fbf8f5);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.home-supplier-card img {
    max-height: 5.5rem;
    width: auto;
    object-fit: contain;
}

.home-supplier-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
}

.home-supplier-card:hover,
.home-supplier-card:focus-visible {
    transform: translateY(-6px);
    color: inherit;
    border-color: rgba(var(--product-oe-rgb), 0.35);
    box-shadow: 0 16px 32px rgba(var(--product-oe-rgb), 0.1);
}

.home-supplier-card--static {
    cursor: default;
}

.home-supplier-card--static:hover {
    transform: none;
    border-color: #ece7e2;
    box-shadow: none;
}

.home-product-showcase--reduced .home-product-tab,
.home-product-showcase--reduced .home-product-media-label,
.home-product-showcase--reduced .home-product-media-label img,
.home-product-showcase--reduced .home-product-halo,
.home-product-showcase--reduced .home-product-tab::after,
.home-product-showcase--reduced .home-product-copy,
.home-product-showcase--reduced .home-product-panel {
    transition: none;
    animation: none;
}

.home-product-showcase--reduced .home-product-radio:checked + .home-product-tab::after {
    transform: scaleX(1);
}

.home-page.pi-reduced .home-signup-sheen,
.home-page.pi-reduced .home-product-stage-floor {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-product-tab,
    .home-product-media-label,
    .home-product-media-label img,
    .home-product-halo,
    .home-product-tab::after,
    .home-product-copy,
    .home-product-panel,
    .home-signup-sheen,
    .home-supplier-card {
        transition: none;
        animation: none;
    }

    .home-product-radio:checked + .home-product-tab::after {
        transform: scaleX(1);
    }
}

@media (max-width: 991.98px) {
    .home-product-media-row {
        --bs-gutter-x: 0.5rem;
    }

    .home-product-media-label {
        padding: 0.1rem;
        transform: scale(0.92) translateY(6px);
    }

    .home-product-showcase:has(#hp-prepayment:checked) .home-product-media-label--prepayment,
    .home-product-showcase:has(#hp-oe:checked) .home-product-media-label--oe,
    .home-product-showcase:has(#hp-lease:checked) .home-product-media-label--lease {
        transform: scale(1.02) translateY(-2px);
    }

    .home-product-media {
        aspect-ratio: 5 / 3;
    }

    .home-product-media-label img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }

    .home-trade-stage {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .home-product-media-row {
        --bs-gutter-x: 0.35rem;
        margin-bottom: 0.5rem !important;
    }

    .home-product-media-label {
        padding: 0;
        transform: scale(0.9) translateY(4px);
    }

    .home-product-tab {
        min-height: 3.4rem;
        padding: 0.55rem 0.3rem 0.7rem;
        font-size: 0.78rem;
    }

    .home-product-copy {
        min-height: 22rem;
        padding: 1.15rem 1rem 1.35rem;
    }

    .home-product-copy .lead {
        font-size: 1rem;
    }

    .home-product-cooling-off {
        font-size: 0.92rem;
        padding: 0.45rem 0.75rem;
    }

    .home-hero-intro {
        padding-inline: 0.15rem;
        margin-bottom: 1rem;
    }
}

/* =============================================================================
   Product information pages — cinematic heroes + product-coloured motion.
   Each page sets --pi-accent / --pi-accent-rgb on .product-info.
   ============================================================================= */

.product-info {
    --pi-accent: var(--product-oe);
    --pi-accent-rgb: var(--product-oe-rgb);
    --pi-ink: #f6efe8;
    --pi-muted: rgba(246, 239, 232, 0.72);
    --mx: 55%;
    --my: 28%;
    color: #212529;
}

.product-info--oe {
    --pi-accent: var(--product-oe);
    --pi-accent-rgb: var(--product-oe-rgb);
}

.product-info--prepayment {
    --pi-accent: var(--product-prepayment);
    --pi-accent-rgb: var(--product-prepayment-rgb);
}

.product-info--lease {
    --pi-accent: var(--product-lease);
    --pi-accent-rgb: var(--product-lease-rgb);
}

.pi-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(92vh, 54rem);
    padding: calc(var(--navbar-height) + 2.4rem) 0 4.5rem;
    color: var(--pi-ink);
    background-color: #0c0708;
}

.product-info--prepayment .pi-hero {
    background-color: #110d06;
}

.product-info--lease .pi-hero {
    background-color: #081018;
}

.pi-hero-bg,
.pi-hero-gridlines,
.pi-hero-glow,
.pi-hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pi-hero-bg {
    background:
        radial-gradient(ellipse 70% 55% at 82% 18%, rgba(var(--pi-accent-rgb), 0.42), transparent 58%),
        radial-gradient(ellipse 45% 40% at 8% 88%, rgba(var(--pi-accent-rgb), 0.22), transparent 62%),
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%);
    z-index: 0;
}

.pi-hero-gridlines {
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 80%);
    animation: pi-grid-drift 28s linear infinite;
    opacity: 0.7;
}

.pi-hero-glow {
    z-index: 2;
    background: radial-gradient(
        520px circle at var(--mx) var(--my),
        rgba(var(--pi-accent-rgb), 0.32),
        transparent 42%
    );
    transition: background-position 0.15s ease-out;
}

.pi-hero-grain {
    z-index: 3;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.pi-hero-inner {
    position: relative;
    z-index: 4;
}

.pi-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.28rem 0.8rem 0.28rem 0.45rem;
    border: 1px solid rgba(var(--pi-accent-rgb), 0.45);
    border-radius: 999px;
    background: rgba(var(--pi-accent-rgb), 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pi-kicker-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--pi-accent);
    box-shadow: 0 0 0 0 rgba(var(--pi-accent-rgb), 0.7);
    animation: pi-pulse 2.2s ease-out infinite;
}

.pi-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.98;
    margin-bottom: 1.1rem;
    color: #fff;
}

.pi-hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.55;
    color: var(--pi-muted);
    max-width: 36rem;
}

.pi-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.pi-hero .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.45);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #111;
}

.pi-hero-stage {
    position: relative;
    min-height: 22rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pi-stat-strip {
    position: relative;
    z-index: 5;
    margin-top: -2.5rem;
}

.pi-stat {
    height: 100%;
    padding: 1.25rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(12, 7, 8, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pi-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(var(--pi-accent-rgb), 0.16);
}

.pi-stat-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--pi-accent);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pi-stat-label {
    display: block;
    margin-top: 0.35rem;
    color: #5c636a;
    font-size: 0.92rem;
}

.pi-section {
    padding: 4.5rem 0;
}

.pi-section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.pi-section-lede {
    color: #5c636a;
    font-size: 1.1rem;
    max-width: 40rem;
}

.pi-feature {
    height: 100%;
    padding: 1.5rem 1.35rem 1.4rem;
    border-radius: 1.1rem;
    border: 1px solid #ece7e2;
    background: linear-gradient(180deg, #fff, #fbf8f5);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pi-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--pi-accent-rgb), 0.35);
    box-shadow: 0 16px 32px rgba(var(--pi-accent-rgb), 0.1);
}

.pi-feature-icon {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    margin-bottom: 0.9rem;
    color: #fff;
    background: var(--pi-accent);
    font-size: 1.2rem;
}

.pi-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.pi-feature p {
    color: #5c636a;
    margin-bottom: 0;
}

.pi-steps {
    counter-reset: pi-step;
    position: relative;
}

.pi-step {
    position: relative;
    padding: 1.4rem 1.4rem 1.4rem 5rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #ece7e2;
    height: 100%;
    overflow: hidden;
}

.pi-step::before {
    counter-increment: pi-step;
    content: counter(pi-step);
    position: absolute;
    left: 1.1rem;
    top: 1.2rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: var(--pi-accent);
    box-shadow: 0 0 0 6px rgba(var(--pi-accent-rgb), 0.12);
}

.pi-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.pi-cooling {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 2.4rem 1.6rem;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(var(--pi-accent-rgb), 0.92), rgba(var(--pi-accent-rgb), 0.7)),
        #1a0b0e;
}

.pi-cooling::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-60%) rotate(12deg);
    animation: pi-sheen 5.5s ease-in-out infinite;
}

.pi-cooling h2,
.pi-cooling p {
    position: relative;
    z-index: 1;
}

.pi-cooling h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.pi-cta-band {
    background: #0f0c0d;
    color: #fff;
    padding: 4.5rem 0;
}

.product-info--prepayment .pi-cta-band {
    background: #16110a;
}

.product-info--lease .pi-cta-band {
    background: #0b131c;
}

.pi-cta-band h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
}

.pi-switcher {
    padding: 3.5rem 0 4.5rem;
}

.pi-switch-card {
    display: block;
    height: 100%;
    padding: 1.4rem 1.3rem;
    border-radius: 1.1rem;
    border: 1px solid #e6e1db;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pi-switch-card:hover {
    transform: translateY(-5px);
    color: inherit;
    border-color: rgba(var(--pi-card-rgb, 144, 0, 32), 0.4);
    box-shadow: 0 16px 32px rgba(var(--pi-card-rgb, 144, 0, 32), 0.12);
}

.pi-switch-card.is-current {
    border-color: rgba(var(--pi-card-rgb, 144, 0, 32), 0.55);
    box-shadow: inset 0 0 0 1px rgba(var(--pi-card-rgb, 144, 0, 32), 0.2);
}

.pi-switch-card--oe { --pi-card-rgb: var(--product-oe-rgb); }
.pi-switch-card--prepayment { --pi-card-rgb: var(--product-prepayment-rgb); }
.pi-switch-card--lease { --pi-card-rgb: var(--product-lease-rgb); }

.pi-switch-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: rgb(var(--pi-card-rgb));
}

.pi-fn {
    color: var(--pi-accent);
    font-weight: 700;
    font-size: 0.85em;
    line-height: 0;
    vertical-align: super;
    text-decoration: none;
    margin-left: 0.08em;
}

.pi-hero .pi-fn,
.pi-hero .pi-fn:hover {
    color: #f4d896;
}

.pi-fn:hover,
.pi-fn:focus-visible {
    color: var(--pi-accent);
    text-decoration: underline;
}

.pi-withdraw-terms {
    scroll-margin-top: calc(var(--navbar-height) + 1.25rem);
    padding: 4.5rem 0 3.5rem;
    background: #f7f1e6;
    border-top: 1px solid rgba(139, 105, 20, 0.18);
}

.pi-withdraw-terms:target {
    box-shadow: inset 0 0 0 3px rgba(var(--product-prepayment-rgb), 0.35);
}

.pi-withdraw-star {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--product-prepayment);
}

.pi-withdraw-band {
    height: 100%;
    padding: 1.4rem 1.3rem 1.3rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(139, 105, 20, 0.18);
    box-shadow: 0 12px 28px rgba(61, 42, 8, 0.06);
}

.pi-withdraw-band-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--product-prepayment);
}

.pi-withdraw-band h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: #1a1305;
}

.pi-withdraw-band p {
    color: #5c636a;
}

.pi-withdraw-note {
    margin: 1.5rem 0 0;
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 46rem;
}

/* --- Overhaul / Exchange stage: engine swap + propeller --- */

.pi-swap {
    position: relative;
    width: min(100%, 28rem);
    height: 22rem;
}

.pi-swap-engine {
    position: absolute;
    width: 46%;
    top: 18%;
    text-align: center;
}

.pi-swap-engine img {
    width: 100%;
    max-height: 9.5rem;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35));
    animation: pi-float 4.6s ease-in-out infinite;
}

.pi-swap-engine--core {
    left: 0;
    animation: pi-swap-left 6.4s ease-in-out infinite;
}

.pi-swap-engine--fresh {
    right: 0;
    animation: pi-swap-right 6.4s ease-in-out infinite;
}

.pi-swap-engine figcaption {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pi-prop {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 5.6rem;
    height: 5.6rem;
    margin: -2.8rem 0 0 -2.8rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 10%, transparent 11%),
        radial-gradient(circle at 50% 50%, rgba(var(--pi-accent-rgb), 0.95) 0 22%, rgba(20, 3, 8, 0.9) 23% 100%);
    box-shadow: 0 0 0 8px rgba(var(--pi-accent-rgb), 0.18), 0 0 40px rgba(var(--pi-accent-rgb), 0.35);
    z-index: 2;
}

.pi-prop span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 4.6rem;
    margin: -2.3rem 0 0 -0.21rem;
    border-radius: 50%;
    background: linear-gradient(#f4e2c8, #8b6914 55%, transparent);
    transform-origin: 50% 50%;
    opacity: 0.9;
}

.pi-prop span:nth-child(1) { transform: rotate(0deg); }
.pi-prop span:nth-child(2) { transform: rotate(60deg); }
.pi-prop span:nth-child(3) { transform: rotate(120deg); }

.pi-prop-spin {
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    animation: pi-spin 1.35s linear infinite;
}

.pi-swap-arrows {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    font-size: 1.4rem;
    letter-spacing: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    animation: pi-pulse 2.4s ease-in-out infinite;
}

/* --- Pre-payment stage: vault lock + savings orbit --- */

.pi-vault {
    position: relative;
    width: min(100%, 22rem);
    height: 22rem;
}

.pi-vault-ring,
.pi-vault-ring-2 {
    position: absolute;
    inset: 1.4rem;
    border-radius: 50%;
    border: 1px dashed rgba(244, 216, 150, 0.35);
    animation: pi-spin 22s linear infinite;
}

.pi-vault-ring-2 {
    inset: 3.1rem;
    border-style: solid;
    border-color: rgba(244, 216, 150, 0.18);
    animation-duration: 14s;
    animation-direction: reverse;
}

.pi-vault-core {
    position: absolute;
    inset: 5.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 30%, #f8e7b0, #8b6914 55%, #3d2c08);
    box-shadow:
        inset 0 0 18px rgba(255, 230, 160, 0.45),
        0 0 0 10px rgba(139, 105, 20, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.35);
    color: #1a1305;
    font-size: 3.2rem;
    animation: pi-lock-breathe 3.4s ease-in-out infinite;
}

.pi-orbit {
    position: absolute;
    inset: 0;
    animation: pi-spin 12s linear infinite;
}

.pi-coin {
    position: absolute;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6d0, #c9a227 60%, #7a5a10);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.pi-coin:nth-child(1) { top: 0.6rem; left: 50%; margin-left: -0.55rem; }
.pi-coin:nth-child(2) { bottom: 1.4rem; left: 18%; }
.pi-coin:nth-child(3) { top: 42%; right: 0.4rem; }

.pi-vault-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 236, 190, 0.78);
}

/* --- Lease stage: radar + uptime ring --- */

.pi-radar {
    position: relative;
    width: min(100%, 22rem);
    height: 22rem;
}

.pi-radar-face {
    position: absolute;
    inset: 1.2rem;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0 18%,
            rgba(160, 196, 220, 0.16) 18.4% 19.2%
        ),
        radial-gradient(circle at 50% 50%, rgba(61, 90, 115, 0.28), rgba(8, 16, 24, 0.9));
    border: 1px solid rgba(180, 210, 230, 0.28);
    box-shadow: inset 0 0 40px rgba(80, 140, 180, 0.18), 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.pi-radar-cross,
.pi-radar-cross::after {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(180, 210, 230, 0.22);
}

.pi-radar-cross::after {
    content: "";
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    transform: none;
}

.pi-radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent 0 68%, rgba(130, 190, 230, 0.0) 78%, rgba(160, 210, 240, 0.42) 100%);
    animation: pi-spin 3.6s linear infinite;
}

.pi-blip {
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #d7f0ff;
    box-shadow: 0 0 0 0 rgba(215, 240, 255, 0.7);
    animation: pi-blip 2.8s ease-out infinite;
}

.pi-blip:nth-of-type(1) { top: 28%; left: 62%; animation-delay: 0s; }
.pi-blip:nth-of-type(2) { top: 58%; left: 30%; animation-delay: 0.8s; }
.pi-blip:nth-of-type(3) { top: 42%; left: 44%; animation-delay: 1.5s; }

.pi-uptime {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.pi-uptime strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.pi-uptime span {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 228, 240, 0.75);
}

.pi-timeline {
    display: grid;
    gap: 0.85rem;
}

.pi-timeline-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    align-items: center;
}

.pi-timeline-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
}

.pi-bar {
    height: 0.7rem;
    border-radius: 999px;
    background: #efe8dc;
    overflow: hidden;
}

.pi-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pi-accent), #d4b25a);
    animation: pi-fill 2.4s ease forwards;
}

.pi-bar--late > span { animation-delay: 0.25s; width: 0; }
.pi-timeline-row:nth-child(1) .pi-bar > span { --pi-fill: 28%; }
.pi-timeline-row:nth-child(2) .pi-bar > span { --pi-fill: 62%; }
.pi-timeline-row:nth-child(3) .pi-bar > span { --pi-fill: 100%; }

.pi-compare {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid #ece7e2;
}

.pi-compare-col {
    padding: 1.6rem 1.4rem;
    height: 100%;
}

.pi-compare-col--old {
    background: #f6f1ec;
}

.pi-compare-col--new {
    background: linear-gradient(180deg, rgba(var(--pi-accent-rgb), 0.08), #fff);
}

@keyframes pi-spin {
    to { transform: rotate(360deg); }
}

@keyframes pi-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 48px 48px; }
}

@keyframes pi-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--pi-accent-rgb), 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(var(--pi-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--pi-accent-rgb), 0); }
}

@keyframes pi-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pi-swap-left {
    0%, 40% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(18%) scale(0.92); opacity: 0.35; }
    60%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes pi-swap-right {
    0%, 40% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-18%) scale(1.06); opacity: 1; }
    60%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes pi-lock-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes pi-blip {
    0% { box-shadow: 0 0 0 0 rgba(215, 240, 255, 0.65); opacity: 1; }
    80%, 100% { box-shadow: 0 0 0 14px rgba(215, 240, 255, 0); opacity: 0.55; }
}

@keyframes pi-sheen {
    0%, 35% { transform: translateX(-70%) rotate(12deg); }
    65%, 100% { transform: translateX(70%) rotate(12deg); }
}

@keyframes pi-fill {
    from { width: 0; }
    to { width: var(--pi-fill, 70%); }
}

.product-info.pi-reduced .pi-hero-gridlines,
.product-info.pi-reduced .pi-prop-spin,
.product-info.pi-reduced .pi-swap-engine,
.product-info.pi-reduced .pi-swap-engine img,
.product-info.pi-reduced .pi-vault-ring,
.product-info.pi-reduced .pi-vault-ring-2,
.product-info.pi-reduced .pi-vault-core,
.product-info.pi-reduced .pi-orbit,
.product-info.pi-reduced .pi-radar-sweep,
.product-info.pi-reduced .pi-blip,
.product-info.pi-reduced .pi-kicker-dot,
.product-info.pi-reduced .pi-swap-arrows,
.product-info.pi-reduced .pi-cooling::after,
.product-info.pi-reduced .pi-bar > span {
    animation: none !important;
}

.product-info.pi-reduced .pi-bar > span {
    width: var(--pi-fill, 70%);
}

@media (prefers-reduced-motion: reduce) {
    .pi-hero-gridlines,
    .pi-prop-spin,
    .pi-swap-engine,
    .pi-swap-engine img,
    .pi-vault-ring,
    .pi-vault-ring-2,
    .pi-vault-core,
    .pi-orbit,
    .pi-radar-sweep,
    .pi-blip,
    .pi-kicker-dot,
    .pi-swap-arrows,
    .pi-cooling::after,
    .pi-bar > span {
        animation: none !important;
    }

    .pi-bar > span {
        width: var(--pi-fill, 70%);
    }
}

@media (max-width: 991.98px) {
    .pi-hero {
        min-height: 0;
        padding-bottom: 5.5rem;
    }

    .pi-hero .lead {
        max-width: none;
    }

    .pi-hero-stage {
        min-height: 18rem;
        margin-top: 1.5rem;
    }

    .pi-swap,
    .pi-vault,
    .pi-radar {
        height: 18rem;
    }
}

@media (max-width: 575.98px) {
    .pi-hero h1 {
        font-size: 2.2rem;
    }

    .pi-step {
        padding-left: 4.4rem;
    }

    .pi-timeline-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* Staff outreach, Brevo lists, and list membership. */
.outreach-page {
    padding: calc(var(--navbar-height) + 1.35rem) 1.25rem 3.5rem;
    background:
        radial-gradient(ellipse 52rem 18rem at 8% 0%, rgba(144, 0, 32, 0.07), transparent 70%),
        #f6f3f2;
    color: #24181b;
}

.outreach-wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.outreach-wrap-wide {
    width: min(1360px, 100%);
}

.outreach-page a:not(.btn):not(.outreach-person):not(.outreach-list-card):not(.outreach-email):not(.outreach-tab) {
    color: var(--product-oe);
    text-decoration: underline;
    text-decoration-color: rgba(144, 0, 32, 0.35);
    text-underline-offset: 0.15em;
}

.outreach-page a:not(.btn):not(.outreach-person):not(.outreach-list-card):not(.outreach-email):not(.outreach-tab):hover {
    color: var(--product-oe-hover);
}

.outreach-mast {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.outreach-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--product-oe);
}

.outreach-mast h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #24181b;
}

.outreach-mast p,
.outreach-hint,
.outreach-quiet,
.outreach-meta {
    color: #6d5c61;
}

.outreach-mast > div > p:last-child,
.outreach-mast .outreach-hint {
    margin: 0.45rem 0 0;
    max-width: 40rem;
    line-height: 1.45;
}

.outreach-mast-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.outreach-mast-actions form {
    margin: 0;
}

.outreach-mast-actions .btn i,
.outreach-contact-actions .btn i,
.outreach-composer-actions .btn i,
.outreach-add-target i {
    margin-right: 0.35rem;
}

.outreach-page .form-control,
.outreach-page .form-select {
    border-color: #eadfe0;
    border-radius: 0.7rem;
    color: #24181b;
    background-color: #fff;
}

.outreach-page .form-control:focus,
.outreach-page .form-select:focus {
    border-color: rgba(144, 0, 32, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(144, 0, 32, 0.12);
}

.outreach-page .form-label {
    font-weight: 700;
    color: #24181b;
}

.outreach-panel {
    background: #fff;
    border: 1px solid #eadfe0;
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.4rem rgba(48, 16, 22, 0.05);
}

.outreach-merge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.outreach-merge-card {
    padding: 1.1rem 1.15rem 1.2rem;
}

.outreach-merge-card h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.25rem;
}

.outreach-merge-outcome {
    margin: 0.25rem 0 0 1.6rem;
    color: #6d5c61;
}

.outreach-choice-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.outreach-choice-list li + li {
    margin-top: 0.35rem;
}

.outreach-choice-list a.is-selected {
    font-weight: 700;
}

.outreach-section {
    padding: 1.1rem 1.15rem 1.2rem;
    margin-bottom: 1rem;
}

.outreach-section h2,
.outreach-panel-head h2,
.outreach-directory-title h2,
.outreach-contact h2,
.outreach-history h3,
.outreach-section h3,
.outreach-interest-grid h3 {
    margin: 0;
    font-weight: 700;
    color: #24181b;
}

.outreach-section h2,
.outreach-panel-head h2,
.outreach-directory-title h2 {
    font-size: 1.05rem;
}

.outreach-section h3,
.outreach-history h3,
.outreach-interest-grid h3 {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.outreach-section > h2,
.outreach-section > .outreach-quiet {
    margin-bottom: 0.75rem;
}

.outreach-quiet,
.outreach-meta,
.outreach-hint,
.outreach-empty {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.outreach-panel-head,
.outreach-directory-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.outreach-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(144, 0, 32, 0.08);
    color: var(--product-oe);
    font-size: 0.78rem;
    font-weight: 700;
}

.outreach-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 0.85rem;
    background: #f6f1f1;
}

.outreach-page a.outreach-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.42rem 0.4rem;
    border-radius: 0.7rem;
    color: #6d5c61;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.outreach-page a.outreach-tab[aria-selected="true"] {
    background: #fff;
    color: var(--product-oe);
    box-shadow: 0 0.08rem 0.3rem rgba(48, 16, 22, 0.08);
}

.outreach-tab-label {
    min-width: 0;
}

.outreach-tabs .outreach-count {
    flex: none;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
}

.outreach-page a.outreach-tab[aria-selected="false"] .outreach-count {
    background: #fff;
    color: #6d5c61;
}

.outreach-page a.outreach-tab:hover {
    color: #24181b;
    text-decoration: none;
}

.outreach-page a.outreach-tab[aria-selected="true"]:hover {
    color: var(--product-oe);
}

.outreach-page a.outreach-tab:focus-visible {
    outline: 2px solid var(--product-oe);
    outline-offset: 2px;
}

.outreach-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.outreach-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #eadfe0;
    background: #faf7f6;
    color: #4d3f43;
    font-size: 0.75rem;
    font-weight: 700;
}

.outreach-chip.is-on {
    color: #0f6b3a;
    background: #e8f6ee;
    border-color: #b7e0c6;
}

.outreach-chip.is-off,
.outreach-chip.is-blocked {
    color: #6d5c61;
    background: #f3f0ef;
}

.outreach-chip.is-newsletter {
    color: var(--product-oe);
    background: rgba(144, 0, 32, 0.06);
    border-color: rgba(144, 0, 32, 0.18);
}

.outreach-chip.is-campaign {
    color: #6f540f;
    background: rgba(139, 105, 20, 0.1);
    border-color: rgba(139, 105, 20, 0.22);
}

.outreach-html-body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    min-height: 16rem;
}

.outreach-status {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #f3f0ef;
    color: #4d3f43;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.outreach-status-sent,
.outreach-status-recorded {
    color: #0f6b3a;
    background: #e8f6ee;
}

.outreach-status-pending,
.outreach-status-sending {
    color: #6f540f;
    background: rgba(139, 105, 20, 0.12);
}

.outreach-status-failed,
.outreach-status-bounced {
    color: #8d1d18;
    background: #fdeceb;
}

.outreach-status-unsubscribed {
    color: #6f540f;
    background: #f8efd4;
}

.outreach-workspace {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.outreach-directory-head,
.outreach-emails .outreach-panel-head,
.outreach-campaigns .outreach-panel-head {
    padding: 1rem 1rem 0.75rem;
}

.outreach-add-target,
.outreach-sent-link {
    width: 100%;
    margin-top: 0.75rem;
    white-space: normal;
}

.outreach-emails .outreach-panel-head {
    display: block;
}

.outreach-emails-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.outreach-directory-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.outreach-sort-label {
    margin: 0;
    color: #6d5c61;
    font-size: 0.82rem;
    font-weight: 700;
}

.outreach-directory-sort select {
    flex: 1 1 8rem;
    min-width: 0;
}

.outreach-person-contacted {
    display: block;
    overflow: hidden;
    color: #8a757a;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The directory card is the scrollport. A long list must not size the page. */
.outreach-directory {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    /* Paint containment stops a long list from extending the page scroll
       even when the card itself is only as tall as the viewport. */
    contain: paint;
    max-height: min(34rem, calc(100dvh - var(--navbar-height) - 9rem));
}

.outreach-directory-head {
    flex: none;
}

.outreach-directory-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.outreach-email-list {
    padding: 0 0 0.35rem;
}

.outreach-directory .outreach-empty,
.outreach-emails .outreach-empty,
.outreach-campaigns .outreach-empty {
    padding: 0 1rem 1rem;
}

.outreach-directory-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
}

.outreach-search {
    position: relative;
    margin-top: 0.75rem;
}

.outreach-search i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a757a;
    pointer-events: none;
}

.outreach-search input {
    padding-left: 2.3rem;
}

.outreach-person,
.outreach-list-card,
.outreach-email {
    color: #24181b;
    text-decoration: none;
}

.outreach-page a.outreach-person,
.outreach-page a.outreach-list-card,
.outreach-page a.outreach-email {
    color: #24181b;
    text-decoration: none;
}

.outreach-person {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 0.8rem;
}

.outreach-person:hover,
.outreach-email-row:hover {
    background: #faf7f6;
}

.outreach-person.is-selected {
    background: rgba(144, 0, 32, 0.08);
    box-shadow: inset 3px 0 0 var(--product-oe);
}

.outreach-person.is-selected:hover {
    background: rgba(144, 0, 32, 0.11);
}

.outreach-person:focus-visible,
.outreach-list-card:focus-visible,
.outreach-email:focus-visible {
    outline: 2px solid var(--product-oe);
    outline-offset: 2px;
}

.outreach-avatar {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: none;
    border-radius: 0.75rem;
    background: rgba(144, 0, 32, 0.1);
    color: var(--product-oe);
    font-weight: 700;
}

.outreach-avatar-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1.15rem;
}

.outreach-person-copy {
    min-width: 0;
    flex: 1;
}

.outreach-person-name,
.outreach-email-subject,
.outreach-list-name,
.outreach-member-email,
.outreach-event-top strong,
.outreach-event-subject {
    font-weight: 700;
}

.outreach-person-name,
.outreach-person-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outreach-member-email {
    display: block;
    overflow-wrap: anywhere;
}

.outreach-person-meta {
    color: #6d5c61;
    font-size: 0.82rem;
}

.outreach-opt {
    width: 0.55rem;
    height: 0.55rem;
    flex: none;
    border-radius: 50%;
    background: #c5b8bb;
}

.outreach-opt.is-on {
    background: #1e8a4c;
}

.outreach-contact {
    padding: 1.15rem 1.2rem 1.25rem;
}

.outreach-contact.is-empty {
    display: flex;
    flex-direction: column;
    min-height: 22rem;
}

.outreach-contact-empty {
    margin: auto;
    max-width: 24rem;
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.outreach-contact-empty i,
.outreach-empty-panel i {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--product-oe);
    font-size: 1.8rem;
}

.outreach-contact-empty h2 {
    margin-bottom: 0.4rem;
    font-size: 1.35rem;
}

.outreach-contact-empty p,
.outreach-empty-panel p {
    margin: 0.35rem 0 0;
    color: #6d5c61;
}

.outreach-contact.htmx-request,
.outreach-history.htmx-request {
    opacity: 0.55;
}

.outreach-contact-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: flex-start;
}

.outreach-contact-id {
    flex: 1 1 16rem;
    min-width: 0;
}

.outreach-contact-id h2 {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.outreach-contact-person {
    margin: 0.15rem 0 0;
    font-weight: 700;
}

.outreach-contact-id .outreach-meta {
    margin: 0.2rem 0 0;
}

.outreach-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1 1 14rem;
    max-width: 22rem;
    margin-left: auto;
}

.outreach-contact-actions .outreach-hint {
    flex: 1 1 100%;
    margin-top: 0.05rem;
    font-size: 0.85rem;
}

.outreach-interest-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.outreach-profile-note {
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #faf7f6;
    color: #4d3f43;
}

.outreach-history {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #f0e7e6;
}

.outreach-history h3 {
    margin-bottom: 0.8rem;
}

.outreach-timeline,
.outreach-members,
.outreach-pairs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.outreach-event {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    position: relative;
    padding-bottom: 0.95rem;
}

.outreach-event:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1.85rem;
    bottom: 0.15rem;
    width: 1px;
    background: #eadfe0;
}

.outreach-event-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #eadfe0;
    background: #fff;
    color: var(--product-oe);
    z-index: 1;
}

.outreach-event-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
}

.outreach-event-top time,
.outreach-event-body p {
    color: #6d5c61;
}

.outreach-event-top time {
    margin-left: auto;
    font-size: 0.8rem;
}

.outreach-event-subject {
    margin-top: 0.15rem;
}

.outreach-event-body p {
    margin: 0.2rem 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.outreach-timeline-empty {
    color: #6d5c61;
    font-size: 0.92rem;
}

.outreach-note {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f0e7e6;
}

.outreach-note .btn {
    margin-top: 0.65rem;
}

.outreach-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.outreach-alerts .alert {
    margin: 0;
}

.outreach-email-list {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.outreach-email-row {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0e7e6;
}

.outreach-email {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
}

.outreach-email-delete {
    flex: none;
    margin: 0 0.85rem 0 0;
}

.outreach-email-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.outreach-email-subject {
    min-width: 0;
    overflow-wrap: anywhere;
}

.outreach-emails .outreach-empty {
    padding-top: 0;
}

.outreach-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.9rem;
}

.outreach-list-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 10.5rem;
    padding: 1.05rem 1.1rem 1rem;
    background: #fff;
    border: 1px solid #eadfe0;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1.2rem rgba(48, 16, 22, 0.05);
}

.outreach-list-card:hover {
    border-color: rgba(144, 0, 32, 0.35);
    box-shadow: 0 0.7rem 1.6rem rgba(48, 16, 22, 0.08);
}

.outreach-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.outreach-list-card-top i {
    color: var(--product-oe);
}

.outreach-list-name {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.outreach-list-count {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: auto;
    color: #6d5c61;
}

.outreach-stat {
    color: var(--product-oe);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.outreach-empty-panel {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.outreach-empty-panel h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.outreach-add {
    display: grid;
    gap: 0.85rem;
    align-items: end;
}

.outreach-split {
    display: grid;
    gap: 1rem;
}

.outreach-member-head {
    display: none;
}

.outreach-member,
.outreach-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #f0e7e6;
}

.outreach-member-who {
    min-width: 0;
    flex: 1 1 12rem;
}

.outreach-member-match {
    flex: 1 1 8rem;
    color: #4d3f43;
}

.outreach-member-actions,
.outreach-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.outreach-member-actions {
    flex: 1 1 16rem;
    justify-content: flex-end;
}

.outreach-inline-form select {
    width: auto;
    min-width: 10rem;
    max-width: 16rem;
}

.outreach-details {
    margin-top: 0.4rem;
    padding: 0.85rem 1rem 1rem;
    background: #fff;
    border: 1px solid #eadfe0;
    border-radius: 1rem;
}

.outreach-details summary {
    cursor: pointer;
    font-weight: 700;
}

.outreach-details p {
    margin: 0.7rem 0 0;
    color: #6d5c61;
    line-height: 1.5;
}

.outreach-details code {
    color: #24181b;
}

@media (min-width: 768px) {
    .outreach-interest-grid,
    .outreach-add {
        grid-template-columns: 1fr 1fr;
    }

    .outreach-add {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    }
}

@media (min-width: 992px) {
    .outreach-workspace {
        grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
        align-items: start;
    }

    .outreach-emails,
    .outreach-campaigns {
        grid-column: 1 / -1;
    }

    .outreach-split {
        grid-template-columns: 1fr 1fr;
    }

    .outreach-member-head,
    .outreach-members > .outreach-member {
        display: grid;
        grid-template-columns: minmax(12rem, 1.4fr) minmax(8rem, 0.8fr) minmax(16rem, 1.5fr);
        align-items: center;
    }

    .outreach-member-head {
        padding: 0 0 0.35rem;
        border-top: 0;
        color: #8a757a;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .outreach-member-head span:last-child,
    .outreach-member-actions {
        justify-self: end;
    }
}

@media (min-width: 1280px) {
    .outreach-workspace {
        grid-template-columns: 18rem minmax(0, 1fr) 19rem;
        align-items: start;
    }

    .outreach-emails {
        grid-column: auto;
    }

    .outreach-campaigns {
        grid-column: 1 / -1;
    }

    .outreach-emails .outreach-panel-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }
}

/* Wide outreach index fills the viewport. Below this width the directory
   card keeps its own max-height, and emails and campaigns follow on the page. */
@media (min-width: 1280px) {
    .outreach-page:has(.outreach-workspace) {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        padding-bottom: 1rem;
    }

    .outreach-page:has(.outreach-workspace) .outreach-wrap {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .outreach-page:has(.outreach-workspace) .outreach-workspace {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
        overflow: hidden;
        grid-template-rows: minmax(0, 1fr) minmax(7rem, 0.38fr);
    }

    .outreach-page:has(.outreach-workspace) .outreach-directory,
    .outreach-page:has(.outreach-workspace) .outreach-contact,
    .outreach-page:has(.outreach-workspace) .outreach-emails,
    .outreach-page:has(.outreach-workspace) .outreach-campaigns {
        min-height: 0;
        max-height: none;
        align-self: stretch;
        overflow: auto;
        contain: paint;
    }

    .outreach-page:has(.outreach-workspace) .outreach-directory {
        overflow: hidden;
    }

    .outreach-page:has(.outreach-workspace) .outreach-contact.is-empty {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .outreach-page {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .outreach-contact-actions,
    .outreach-contact-actions .btn,
    .outreach-mast-actions,
    .outreach-mast-actions .btn,
    .outreach-add .btn {
        width: 100%;
    }

    .outreach-mast-actions form {
        width: 100%;
    }

    .outreach-member-actions {
        justify-content: flex-start;
    }

    .outreach-event-top time {
        margin-left: 0;
    }

    .outreach-composer-actions,
    .outreach-composer-actions .btn {
        width: 100%;
    }

    .outreach-segment {
        flex-direction: column;
    }
}

.outreach-sent-filters {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.outreach-sent-filters .form-label {
    display: block;
    margin-bottom: 0.3rem;
}

.outreach-sent-filters .btn {
    align-self: end;
}

.outreach-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 1rem 1rem;
}

.outreach-pager span {
    color: #6d5c61;
    font-size: 0.88rem;
}

@media (min-width: 768px) {
    .outreach-sent-filters {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(8rem, 0.7fr)) auto;
        align-items: end;
    }
}

.outreach-composer {
    background: #fff;
    border: 1px solid #eadfe0;
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.4rem rgba(48, 16, 22, 0.05);
    overflow: hidden;
}

.outreach-composer > .alert {
    margin: 1rem 1.15rem 0;
}

.outreach-composer h2,
.outreach-composer-sheet legend {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #24181b;
}

.outreach-composer-to,
.outreach-letter {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem 1.15rem 1rem;
}

.outreach-letter {
    gap: 0.45rem;
    padding-top: 0.35rem;
}

.outreach-letter > .form-label {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.outreach-composer-to .form-label,
.outreach-letter .form-label,
.outreach-composer-sheet .form-label {
    margin: 0;
}

.outreach-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.outreach-field .outreach-hint,
.outreach-subject-note .outreach-hint,
.outreach-letter .outreach-hint,
.outreach-composer-to > .outreach-hint {
    font-size: 0.85rem;
}

.outreach-field-error {
    margin: 0;
    color: #8d1d18;
    font-size: 0.85rem;
    font-weight: 700;
}

.outreach-pinned-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.outreach-pinned-person {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #eadfe0;
    border-radius: 0.8rem;
    background: #faf7f6;
}

.outreach-narrow {
    padding-top: 0.15rem;
}

.outreach-narrow summary {
    cursor: pointer;
    font-weight: 700;
    color: #24181b;
}

.outreach-narrow .outreach-filter-grid {
    margin-top: 0.75rem;
}

.outreach-choices,
.outreach-filter-grid {
    display: grid;
    gap: 0.5rem;
}

.outreach-filter-grid {
    gap: 0.85rem;
}

.outreach-choice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #eadfe0;
    border-radius: 0.8rem;
    background: #fff;
    color: #24181b;
    font-weight: 700;
    cursor: pointer;
}

.outreach-choice .form-check-input {
    margin: 0;
    float: none;
    accent-color: var(--product-oe);
}

.outreach-choice:has(input:checked) {
    border-color: rgba(144, 0, 32, 0.45);
    background: rgba(144, 0, 32, 0.06);
    box-shadow: inset 3px 0 0 var(--product-oe);
}

.outreach-choice:has(input:focus-visible) {
    outline: 2px solid var(--product-oe);
    outline-offset: 2px;
}

.outreach-checks > .border {
    border-color: #eadfe0 !important;
    border-radius: 0.8rem !important;
    background: #faf7f6;
    padding: 0.45rem 0.7rem !important;
}

.outreach-checks .form-check-input {
    accent-color: var(--product-oe);
}

.outreach-subject {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #f0e7e6;
}

.outreach-subject-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a757a;
}

.outreach-subject-prefix {
    flex: none;
    font-weight: 700;
    color: var(--product-oe);
    letter-spacing: 0.01em;
}

.outreach-subject .form-control {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 700;
}

.outreach-subject .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

.outreach-subject-note {
    padding: 0 1.15rem 0.85rem;
}

.outreach-letter .form-control {
    min-height: 16rem;
    background: #faf7f6;
    line-height: 1.55;
}

.outreach-composer-sheet {
    margin: 0;
    padding: 1rem 1.15rem 0.15rem;
    border: 0;
    border-top: 1px solid #f0e7e6;
    min-inline-size: 0;
}

.outreach-campaign-sheet {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem 0.85rem;
    background: #fff;
    border: 1px solid #eadfe0;
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.4rem rgba(48, 16, 22, 0.05);
}

.outreach-campaign-sheet .outreach-hint {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
}

.outreach-composer-sheet legend {
    float: none;
    width: auto;
    padding: 0;
    margin-bottom: 0.7rem;
}

.outreach-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.3rem;
    background: #f6f3f2;
    border-radius: 0.85rem;
}

.outreach-segment-item {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 0.65rem;
    color: #4d3f43;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.outreach-segment-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.outreach-segment-item:has(input:checked) {
    background: #fff;
    color: var(--product-oe);
    box-shadow: 0 0.15rem 0.4rem rgba(48, 16, 22, 0.08);
}

.outreach-segment-item:has(input:focus-visible) {
    outline: 2px solid var(--product-oe);
    outline-offset: 2px;
}

.outreach-sheet-fields {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.outreach-sheet-fields:not(:has([data-sheet-for]:not([hidden]))) {
    display: none;
}

.outreach-composer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.9rem 1.15rem 1.1rem;
    border-top: 1px solid #f0e7e6;
    background: #faf7f6;
}

.outreach-preview-frame {
    display: block;
    width: 100%;
    height: min(70vh, 720px);
    margin-top: 0.85rem;
    border: 1px solid #eadfe0;
    border-radius: 0.8rem;
    background: #fff;
}

.outreach-recipient-head,
.outreach-recipients {
    margin: 0.85rem 0 0;
}

.outreach-recipients {
    list-style: none;
    padding: 0;
}

.outreach-recipient-head,
.outreach-recipient {
    display: grid;
    gap: 0.25rem 1rem;
}

.outreach-recipient {
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid #f0e7e6;
}

.outreach-recipient-head {
    display: none;
    color: #8a757a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.outreach-recipient-reason {
    color: #6d5c61;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .outreach-choices,
    .outreach-filter-grid,
    .outreach-recipient-head,
    .outreach-recipient {
        grid-template-columns: 1fr 1fr;
    }

    .outreach-recipient-head,
    .outreach-recipient {
        grid-template-columns: minmax(12rem, 1.3fr) auto minmax(10rem, 1.4fr);
    }

    .outreach-recipient-head {
        display: grid;
        padding-bottom: 0.15rem;
    }
}

@media (max-width: 575.98px) {
    .outreach-subject {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .outreach-subject-label {
        grid-column: 1 / -1;
    }

    .outreach-segment-item {
        width: 100%;
    }
}

/* Bot API tokens. Same staff chrome as outreach. */
.bot-tokens-page .alert-danger {
    border: 1px solid rgba(141, 29, 24, 0.18);
    border-radius: 0.9rem;
    background: #fdeceb;
    color: #6d221c;
}

.bot-issued {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-color: rgba(144, 0, 32, 0.28);
    box-shadow:
        inset 4px 0 0 var(--product-oe),
        0 0.45rem 1.4rem rgba(48, 16, 22, 0.05);
}

.bot-issued-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bot-issued-head h2,
.bot-issue-body h2,
.bot-list-head h2,
.bot-token-card h3 {
    margin: 0;
    font-weight: 700;
    color: #24181b;
}

.bot-issued-head h2 {
    font-size: 1.25rem;
}

.bot-issued-head .outreach-kicker {
    margin-bottom: 0.15rem;
}

.bot-issued-head .outreach-hint {
    margin-top: 0.25rem;
}

.bot-issued-secret {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.bot-issued,
.bot-issued-secret,
.bot-tokens-layout,
.bot-token-column,
.bot-token-card,
.bot-issue,
.bot-token-id {
    min-width: 0;
}

.bot-issued-secret code {
    flex: 1 1 18rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-radius: 0.75rem;
    background: #24181b;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    user-select: all;
}

.bot-issued-secret .btn i,
.bot-issue-actions .btn i,
.bot-token-actions .btn i {
    margin-right: 0.35rem;
}

.bot-tokens-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.bot-issue {
    overflow: hidden;
}

.bot-issue-body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.1rem 1.15rem 1rem;
}

.bot-issue-body h2,
.bot-list-head h2 {
    font-size: 1.05rem;
}

.bot-issue-body h2 + .outreach-hint {
    margin-top: 0.28rem;
}

.bot-issue-body .outreach-hint,
.bot-preset .outreach-hint {
    font-weight: 500;
}

.bot-presets,
.bot-scopes {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

.bot-presets legend,
.bot-scopes legend {
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #24181b;
}

.bot-preset-list,
.bot-scope-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bot-preset {
    align-items: flex-start;
}

.bot-preset .form-check-input,
.bot-scope .form-check-input {
    margin-top: 0.2rem;
}

.bot-tokens-page .form-check-input:checked {
    background-color: var(--product-oe);
    border-color: var(--product-oe);
}

.bot-tokens-page .form-check-input:focus {
    border-color: rgba(144, 0, 32, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(144, 0, 32, 0.12);
}

.bot-preset-name,
.bot-scope-name {
    display: block;
    font-weight: 700;
}

.bot-scopes {
    display: none;
}

.bot-issue:has(input[value="custom"]:checked) .bot-scopes {
    display: block;
    padding-top: 0.15rem;
}

.bot-scope {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #eadfe0;
    border-radius: 0.8rem;
    background: #faf7f6;
    color: #24181b;
    cursor: pointer;
}

.bot-scope:has(input:checked) {
    border-color: rgba(144, 0, 32, 0.45);
    background: #fff;
    box-shadow: inset 3px 0 0 var(--product-oe);
}

.bot-scope:has(input:focus-visible) {
    outline: 2px solid var(--product-oe);
    outline-offset: 2px;
}

.bot-scope-code {
    display: block;
    margin-top: 0.1rem;
    color: #6d5c61;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.bot-scope-detail {
    display: block;
    margin-top: 0.12rem;
    color: #6d5c61;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.bot-issue-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.9rem 1.15rem 1.1rem;
    border-top: 1px solid #f0e7e6;
    background: #faf7f6;
}

.bot-token-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.bot-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.bot-token-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-token-card {
    padding: 1rem 1.05rem 0.95rem;
}

.bot-token-card.is-revoked,
.bot-token-card.is-expired {
    background: #faf7f6;
    box-shadow: none;
}

.bot-token-card.is-revoked h3,
.bot-token-card.is-revoked .outreach-avatar,
.bot-token-card.is-expired .outreach-avatar {
    color: #6d5c61;
}

.bot-token-card.is-revoked .outreach-avatar,
.bot-token-card.is-expired .outreach-avatar {
    background: #f3f0ef;
}

.bot-token-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bot-token-id {
    min-width: 0;
    flex: 1;
}

.bot-token-card h3 {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.bot-token-meta,
.bot-token-quiet {
    margin: 0.2rem 0 0;
    color: #6d5c61;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bot-token-card .outreach-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0;
}

.bot-status-expired {
    color: #6d5c61;
    background: #f3f0ef;
}

.bot-token-card .outreach-chip-row + .bot-token-meta {
    margin-top: 0.65rem;
}

.bot-token-log,
.bot-token-quiet {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f0e7e6;
}

.bot-token-log summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    color: #24181b;
}

.bot-token-log summary .outreach-meta {
    margin-left: 0.35rem;
    font-weight: 500;
}

.bot-token-log ol {
    list-style: none;
    max-height: 16rem;
    margin: 0.45rem 0 0;
    padding: 0;
    overflow: auto;
}

.bot-token-log li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid #f6f1f0;
    color: #24181b;
    font-size: 0.85rem;
}

.bot-token-log li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bot-token-log time {
    flex: none;
    color: #8a757a;
    font-size: 0.75rem;
}

.bot-token-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.bot-token-actions form {
    margin: 0;
}

@media (min-width: 992px) {
    .bot-tokens-layout {
        grid-template-columns: minmax(20rem, 0.92fr) minmax(0, 1.08fr);
    }
}

@media (max-width: 575.98px) {
    .bot-issue-actions,
    .bot-issue-actions .btn,
    .bot-token-actions,
    .bot-token-actions form,
    .bot-token-actions .btn,
    .bot-issued-secret .btn {
        width: 100%;
    }

    .bot-issued-secret {
        align-items: stretch;
    }

    .bot-token-log li {
        flex-direction: column;
        gap: 0.15rem;
    }
}
