.bp-patch-page {
    display: grid;
    gap: 18px;
    padding: 28px 0;
}

.bp-patch-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    align-items: center;
    gap: 36px;
    padding: 42px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 0%, rgba(56,189,248,.22), transparent 38%),
        radial-gradient(circle at 94% 100%, rgba(14,165,233,.10), transparent 36%),
        rgba(255,255,255,.045);
}

.bp-patch-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    top: -120px;
    border: 1px solid rgba(56,189,248,.15);
    border-radius: 50%;
}

.bp-patch-hero-copy { position: relative; z-index: 1; }
.bp-patch-hero-copy > p,
.bp-patch-version,
.bp-patch-section-title span {
    margin: 0 0 12px;
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: .15em;
}

.bp-patch-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1.14;
    letter-spacing: -.055em;
}

.bp-patch-hero-copy > span {
    display: block;
    max-width: 720px;
    margin-top: 18px;
    color: #aab6c8;
    font-size: 1rem;
    line-height: 1.8;
}

.bp-patch-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bp-patch-hero-stats > div {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 19px;
    background: rgba(1,8,18,.48);
}

.bp-patch-hero-stats strong { color: #fff; font-size: 1.25rem; }
.bp-patch-hero-stats span { margin-top: 5px; color: #8492a8; font-size: 1rem; }

.bp-patch-principle {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 23px 26px;
    border: 1px solid rgba(56,189,248,.2);
    border-radius: 20px;
    background: rgba(56,189,248,.075);
}

.bp-patch-principle strong { color: #7dd3fc; font-size: 1rem;line-height: 1.5; }
.bp-patch-principle p { margin: 0; color: #c0cada; line-height: 1.5; font-size:1rem;}

.bp-patch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bp-patch-search { display: flex; width: min(100%, 620px); }
.bp-patch-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    outline: 0;
    background: rgba(255,255,255,.045);
    color: #fff;
}
.bp-patch-search input:focus { border-color: rgba(56,189,248,.65); }
.bp-patch-search button {
    min-width: 84px;
    border: 0;
    border-radius: 0 14px 14px 0;
    background: #38bdf8;
    color: #02111d;
    font-weight: 950;
    cursor: pointer;
}
.bp-patch-result-count { color: #8e9bb0; font-size: 14px; }
.bp-patch-result-count strong { color: #fff; }

.bp-patch-filter-group {
    display: grid;
    gap: 13px;
    padding: 21px 24px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 20px;
    background: rgba(255,255,255,.032);
}
.bp-patch-filter-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px; }
.bp-patch-filter-row > span { padding-top: 7px; color: #718096; font-size: .85rem; font-weight: 900; }
.bp-patch-filter-row > div { display: flex; flex-wrap: wrap; gap: 7px; }
.bp-patch-filter-row a {
    padding: 7px 11px;
    border-radius: 9px;
    color: #9aa8bb;
    font-size: .85rem;
    text-decoration: none;
}
.bp-patch-filter-row a:hover,
.bp-patch-filter-row a.active { background: rgba(56,189,248,.13); color: #7dd3fc; }

.bp-patch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bp-patch-card {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.bp-patch-card.is-major {
    background:
        radial-gradient(circle at 100% 0%, rgba(56,189,248,.12), transparent 34%),
        rgba(255,255,255,.045);
}
.bp-patch-card:hover { transform: translateY(-3px); border-color: rgba(56,189,248,.35); background-color: rgba(255,255,255,.055); }
.bp-patch-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bp-patch-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bp-patch-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.bp-patch-badge,
.bp-patch-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 900;
}
.bp-patch-badge { background: rgba(255,255,255,.065); color: #a8b5c8; }
.bp-patch-badge.is-major { background: rgba(56,189,248,.16); color: #7dd3fc; }
.bp-patch-status { white-space: nowrap; }
.bp-patch-status.is-monitoring { background: rgba(250,204,21,.13); color: #fde047; }
.bp-patch-status.is-active { background: rgba(34,197,94,.14); color: #86efac; }
.bp-patch-status.is-validating { background: rgba(168,85,247,.15); color: #d8b4fe; }
.bp-patch-status.is-development { background: rgba(59,130,246,.15); color: #93c5fd; }
.bp-patch-status.is-held { background: rgba(148,163,184,.14); color: #cbd5e1; }
.bp-patch-status.is-retired { background: rgba(239,68,68,.14); color: #fca5a5; }
.bp-patch-status.is-published { background: rgba(56,189,248,.13); color: #7dd3fc; }
.bp-patch-card .bp-patch-version { margin-top: 27px; margin-bottom: 9px; }
.bp-patch-card h2 { margin: 0; color: #f8fafc; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.035em; }
.bp-patch-card-summary { margin: 14px 0 24px; color: #91a0b5; font-size: 1rem; line-height: 1.75; }
.bp-patch-card-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.065);
    color: #6f7d91;
    font-size: .85rem;
}
.bp-patch-card-bottom strong { margin-left: auto; color: #7dd3fc; }

.bp-patch-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
.bp-patch-pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    color: #9aa8bb;
    text-decoration: none;
}
.bp-patch-pagination a:hover,
.bp-patch-pagination a.active { border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.12); color: #7dd3fc; }

.bp-patch-empty {
    padding: 70px 24px;
    text-align: center;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.025);
}
.bp-patch-empty strong { color: #fff; font-size: 20px; }
.bp-patch-empty p { color: #8290a5; }
.bp-patch-empty a,
.bp-patch-back { color: #7dd3fc; font-weight: 850; text-decoration: none; font-size:1rem;}

.bp-patch-detail-head { margin-bottom: -4px; }
.bp-patch-detail { display: grid; gap: 20px; }
.bp-patch-detail-hero {
    padding: 38px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 7% 0%, rgba(56,189,248,.18), transparent 36%),
        rgba(255,255,255,.04);
}
.bp-patch-detail-hero .bp-patch-version { margin-top: 28px; }
.bp-patch-detail-hero h1 { max-width: 850px; margin: 0; color: #fff; font-size: 2rem; line-height: 1.2; letter-spacing: -.05em; }
.bp-patch-summary { max-width: 880px; margin: 18px 0 0; color: #acb8c9; font-size: 1rem; line-height: 1.8; }
.bp-patch-meta { display: flex; flex-wrap: wrap; gap: 34px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.bp-patch-meta div { min-width: 120px; }
.bp-patch-meta dt { color: #68778d; font-size: 1rem; font-weight: 900; }
.bp-patch-meta dd { margin: 6px 0 0; color: #d6deea; font-size: .85rem; }
.bp-patch-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bp-patch-section,
.bp-patch-metrics {
    padding: 27px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 21px;
    background: rgba(255,255,255,.035);
}
.bp-patch-section h2,
.bp-patch-section-title h2 { margin: 0 0 15px; color: #fff; font-size: 1.25rem; }
.bp-patch-section > div { color: #a7b3c4; line-height: 1.85; font-size:1rem;}
.bp-patch-section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.bp-patch-section-title p { margin: 0; color: #76849a; font-size: 1rem; }
.bp-patch-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.bp-patch-metric-grid > div { padding: 19px; border-radius: 16px; background: rgba(0,0,0,.2); }
.bp-patch-metric-grid span { display: block; color: #748298; font-size: 1rem; }
.bp-patch-metric-grid strong { display: block; margin-top: 8px; color: #fff; font-size: 1.25rem; }