:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --bg-strong: #eef3f8;
    --text: #111827;
    --muted: #667085;
    --soft: #98a2b3;
    --line: #dbe4ef;
    --panel: #ffffff;
    --panel-soft: #fbfcff;
    --brand: #155eef;
    --brand-dark: #0b3b95;
    --ink: #101828;
    --teal: #0f766e;
    --teal-soft: #e7f7f4;
    --gold: #ca8a04;
    --gold-soft: #fff7d6;
    --green: #087443;
    --green-soft: #e7f6ee;
    --amber: #b54708;
    --amber-soft: #fff4e5;
    --red: #be123c;
    --red-soft: #fff1f3;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

body.front-page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 520px;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(232, 239, 249, 0.9) 0%, rgba(246, 248, 251, 0) 100%),
        linear-gradient(90deg, rgba(21, 94, 239, 0.08), rgba(15, 118, 110, 0.08));
    z-index: -1;
}

body.admin-page {
    min-height: 100vh;
    background: #f4f6f9;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.site-header,
.admin-header,
.site-footer,
.sub-nav,
.page {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.admin-header,
.site-header {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-header {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(219, 228, 239, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.admin-header {
    padding: 12px 0;
}

.admin-header-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--muted);
}

.admin-header-title strong {
    color: var(--text);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 850;
}

.brand span,
.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--text);
    font-size: 20px;
    line-height: 1.08;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.brand-logo {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #101828;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.main-nav,
.sub-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav {
    justify-content: center;
}

.main-nav a,
.sub-nav a,
.header-action {
    color: #344054;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 700;
}

.main-nav a.active,
.sub-nav a.active {
    background: #ffffff;
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px var(--line);
}

.nav-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #243047;
    color: #fff;
}

.header-action {
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    border: 0;
    cursor: pointer;
    font: inherit;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header-actions form {
    margin: 0;
}

.danger-action {
    color: var(--red);
}

.sub-nav {
    padding: 0 0 16px;
}

.admin-nav {
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.page {
    padding: 26px 0 56px;
}

.admin-page .page {
    width: auto;
    margin: 0;
    padding: 24px 26px 48px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    background: #111827;
    color: #d7dee8;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
}

.admin-sidebar-brand:hover {
    color: #fff;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    display: block;
}

.admin-sidebar-brand strong {
    font-size: 19px;
    line-height: 1.2;
}

.admin-sidebar-brand small {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.admin-menu {
    display: grid;
    gap: 6px;
    padding: 16px 0;
}

.admin-menu a {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 760;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.admin-menu a::after {
    content: "›";
    margin-left: auto;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
    opacity: 0.42;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-menu a span {
    pointer-events: none;
}

.admin-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.admin-menu a:hover::after,
.admin-menu a.active::after {
    opacity: 1;
    transform: translateX(2px);
}

.admin-menu a.active {
    background: #155eef;
    color: #fff;
    box-shadow: 0 10px 22px rgba(21, 94, 239, 0.28);
}

.admin-menu-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 900;
}

.admin-menu a.active .admin-menu-icon {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar-foot {
    margin-top: auto;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    font-size: 12px;
}

.admin-sidebar-foot strong {
    display: block;
    margin-top: 3px;
    color: #f9fafb;
}

.admin-main {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.admin-topbar h1 {
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.25;
}

.admin-breadcrumb {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
}

.admin-content {
    flex: 1;
    transition: opacity 0.16s ease, filter 0.16s ease;
}

.admin-content.is-loading {
    opacity: 0.48;
    filter: saturate(0.75);
    pointer-events: none;
}

.hero-board,
.page-head,
.repo-detail-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: end;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.front-hero {
    overflow: hidden;
    min-height: 460px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    padding: 42px;
    border-color: rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(16, 24, 40, 0.98) 0%, rgba(22, 42, 69, 0.96) 48%, rgba(247, 250, 252, 0.98) 48%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.16);
}

.front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 64%);
    opacity: 0.5;
}

.front-hero .hero-copy {
    position: relative;
    z-index: 1;
}

.front-hero .eyebrow,
.front-hero h1 {
    color: #fff;
}

.front-hero .hero-subtitle {
    color: #d5dde9;
}

.page-head,
.repo-detail-head {
    margin-top: 10px;
}

.page-head.compact,
.board-head {
    align-items: center;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0;
}

.front-hero h1 {
    max-width: 760px;
    font-size: 54px;
    line-height: 1;
}

h2 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.2;
}

h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.hero-subtitle,
.page-head p,
.repo-detail-head p {
    max-width: 700px;
    color: #475467;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-proof {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f6fb;
    font-size: 12px;
    font-weight: 780;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 850;
}

button.button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 24px rgba(21, 94, 239, 0.22);
}

.button.primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.button.ghost {
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.front-hero .button.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.front-hero .button.ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-insight-panel {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(219, 228, 239, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 56px rgba(17, 24, 39, 0.14);
}

.insight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.insight-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.insight-head strong {
    color: var(--teal);
    font-size: 13px;
}

.insight-list {
    display: grid;
    gap: 10px;
}

.insight-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.insight-item:hover {
    border-color: rgba(21, 94, 239, 0.38);
    color: var(--brand-dark);
}

.insight-rank {
    display: inline-grid;
    width: 36px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 900;
}

.insight-name {
    overflow: hidden;
    color: inherit;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-gain {
    color: var(--green);
    font-weight: 900;
}

.hero-insight-panel .hero-metrics {
    margin-top: 14px;
}

.filter-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 4px;
}

.language-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.language-rail span {
    margin: 0 4px 0 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.language-rail a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #344054;
    font-size: 13px;
    font-weight: 780;
}

.language-rail a:hover,
.language-rail a.active {
    background: var(--ink);
    color: #fff;
}

.home-insight-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.home-insight-strip article {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(219, 228, 239, 0.9);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.home-insight-strip article::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 118px;
    height: 118px;
    border: 22px solid rgba(21, 94, 239, 0.08);
    border-radius: 50%;
}

.home-insight-strip h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

.home-insight-strip p {
    max-width: 320px;
    margin-bottom: 18px;
    color: var(--muted);
}

.home-insight-strip strong {
    display: block;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.home-insight-strip small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 780;
}

.strip-index {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 18px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.focus-section {
    margin-top: 30px;
}

.focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 16px;
    align-items: stretch;
}

.focus-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 28px;
    border: 1px solid rgba(219, 228, 239, 0.86);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        linear-gradient(90deg, rgba(21, 94, 239, 0.2), rgba(15, 118, 110, 0.18));
    box-shadow: var(--shadow);
}

.focus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(21, 94, 239, 0.08), transparent 42%);
}

.focus-card > * {
    position: relative;
    z-index: 1;
}

.focus-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.rank-pill {
    display: inline-grid;
    min-width: 64px;
    height: 34px;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.rank-pill.small {
    min-width: 58px;
    height: 30px;
    background: #eef5ff;
    color: var(--brand-dark);
}

.focus-card h3 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.08;
}

.focus-card h3 a {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.focus-card p {
    max-width: 760px;
    color: #475467;
    font-size: 16px;
}

.focus-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.focus-metrics span {
    min-width: 136px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-weight: 780;
}

.focus-metrics strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
}

.focus-side {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.focus-side .eyebrow {
    margin-bottom: 4px;
}

.focus-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: #fbfcff;
}

.focus-mini:hover {
    border-color: rgba(21, 94, 239, 0.34);
    color: var(--brand-dark);
}

.focus-mini strong,
.focus-mini small {
    display: block;
}

.focus-mini strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-mini small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 720;
}

.daily-ranking-section .repo-list {
    gap: 10px;
}

.home-showcase {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(430px, 0.82fr);
    gap: 34px;
    align-items: stretch;
    min-height: 560px;
    padding: 46px;
    border: 1px solid rgba(219, 228, 239, 0.84);
    border-radius: 18px;
    background:
        linear-gradient(135deg, #fbfdff 0%, #f4f8fb 45%, #e8f1f7 100%);
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
}

.home-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.72;
}

.showcase-copy,
.showcase-board {
    position: relative;
    z-index: 1;
}

.showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.showcase-kicker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.showcase-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(21, 94, 239, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.showcase-copy h1 {
    max-width: 820px;
    margin-bottom: 18px;
    color: #0b1220;
    font-size: 58px;
    line-height: 0.98;
}

.showcase-subtitle {
    max-width: 700px;
    margin-bottom: 0;
    color: #475467;
    font-size: 18px;
}

.showcase-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.showcase-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 700px;
    margin-top: 34px;
}

.showcase-meta span {
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(219, 228, 239, 0.86);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-weight: 780;
}

.showcase-meta strong {
    display: block;
    color: #101828;
    font-size: 28px;
    line-height: 1.05;
}

.showcase-board {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    background: #101828;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.24);
}

.board-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.board-topline strong {
    color: #d1fadf;
}

.board-lead {
    display: block;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: #fff;
}

.board-lead:hover {
    color: #fff;
    border-color: rgba(132, 188, 255, 0.38);
}

.board-lead .rank-pill {
    margin-right: 8px;
    background: #facc15;
    color: #111827;
}

.board-lead h2 {
    margin: 18px 0 10px;
    color: #fff;
    font-size: 28px;
    overflow-wrap: anywhere;
}

.board-lead p {
    color: #d0d5dd;
}

.board-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.board-stats span {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #98a2b3;
    font-weight: 780;
}

.board-stats strong {
    display: block;
    color: #fff;
    font-size: 22px;
}

.signal-list {
    display: grid;
    gap: 9px;
}

.signal-row {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #f9fafb;
}

.signal-row:hover {
    color: #fff;
    border-color: rgba(132, 188, 255, 0.34);
}

.signal-row span,
.signal-row small,
.signal-row strong {
    position: relative;
    z-index: 1;
}

.signal-row span {
    color: #98a2b3;
    font-weight: 900;
}

.signal-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-row small {
    color: #86efac;
    font-weight: 900;
}

.signal-row i {
    position: absolute;
    inset: auto auto 0 0;
    width: var(--bar-width);
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #86efac);
}

.home-language-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.home-language-panel h2 {
    margin-bottom: 0;
}

.home-intelligence-section {
    display: grid;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    gap: 16px;
    align-items: stretch;
}

.intelligence-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.compact-title {
    align-items: flex-start;
    margin-bottom: 16px;
}

.compact-title h2 {
    margin-bottom: 0;
    font-size: 24px;
}

.compact-title a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 12px;
    white-space: nowrap;
}

.language-bars {
    display: grid;
    gap: 10px;
}

.language-bars a {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e4edf7;
    border-radius: 10px;
    background: #fbfcff;
    color: var(--text);
}

.language-bars a:hover {
    border-color: rgba(21, 94, 239, 0.32);
    color: var(--brand-dark);
}

.language-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.language-bar-top strong,
.language-bar-top em,
.language-bars small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-bar-top em,
.language-bars small {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 760;
}

.language-bar-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #edf3f9;
}

.language-bar-track i {
    display: block;
    width: var(--bar-width);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--teal));
}

.latest-report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.latest-report-list a {
    min-width: 0;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    border: 1px solid #e4edf7;
    border-radius: 10px;
    background: #fbfcff;
    color: var(--text);
}

.latest-report-list a:hover {
    border-color: rgba(21, 94, 239, 0.32);
    color: var(--brand-dark);
}

.latest-report-list strong {
    overflow-wrap: anywhere;
    line-height: 1.22;
}

.latest-report-list p {
    margin-bottom: 0;
    color: #475467;
    font-size: 13px;
}

.latest-report-list small {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.latest-report-list small span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-chips {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.language-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    font-weight: 820;
}

.language-chips a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.editorial-section {
    margin-top: 34px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.22fr 1fr 1fr;
    gap: 14px;
}

.editorial-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.editorial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.editorial-card.large {
    grid-row: span 2;
    min-height: 454px;
    padding: 26px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(16, 24, 40, 0.92), rgba(16, 24, 40, 0.86)),
        linear-gradient(135deg, #155eef, #0f766e);
}

.editorial-card.large .repo-meta,
.editorial-card.large p,
.editorial-card.large .editorial-meta {
    color: #d0d5dd;
}

.editorial-card.large h3 a {
    color: #fff;
}

.editorial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 820;
}

.editorial-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.18;
}

.editorial-card.large h3 {
    margin-top: auto;
    font-size: 36px;
    line-height: 1.05;
}

.editorial-card h3 a {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.editorial-card p {
    color: #475467;
}

.editorial-card .repo-meta {
    margin-top: auto;
}

.ranking-board-section {
    margin-top: 38px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ranking-intro {
    position: sticky;
    top: 100px;
    padding: 24px;
    border-radius: 16px;
    background: #101828;
    color: #fff;
    box-shadow: var(--shadow);
}

.ranking-intro .eyebrow,
.ranking-intro p {
    color: #cbd5e1;
}

.ranking-intro h2 {
    color: #fff;
    font-size: 28px;
}

.ranking-intro .button {
    margin-top: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ranking-list-pro {
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.ranking-item p {
    color: #475467;
    margin-bottom: 10px;
}

.ranking-main {
    min-width: 0;
}

.trend-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.54fr);
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, #ffffff 0%, #f4f8fb 55%, #eaf3f4 100%);
    box-shadow: var(--shadow);
}

.trend-hero h1 {
    font-size: 46px;
}

.trend-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.trend-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.trend-hero-stats article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    padding: 16px;
    border: 1px solid rgba(219, 228, 239, 0.86);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.trend-hero-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 820;
}

.trend-hero-stats strong {
    margin-top: 8px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.trend-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.trend-toolbar > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trend-toolbar span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.language-chips a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.trend-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.trend-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.trend-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.trend-panel h2 {
    margin-bottom: 14px;
}

.trend-movers {
    display: grid;
    gap: 9px;
}

.trend-movers a {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcff;
    color: var(--text);
}

.trend-movers a:hover {
    border-color: rgba(21, 94, 239, 0.3);
    color: var(--brand-dark);
}

.trend-movers .trend-order,
.trend-movers .trend-mover-main,
.trend-movers strong,
.trend-movers small,
.trend-movers em {
    position: relative;
    z-index: 1;
}

.trend-order {
    display: inline-flex;
    width: 38px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.trend-mover-main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.trend-movers strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend-movers em {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend-movers small {
    color: var(--green);
    font-weight: 900;
    white-space: nowrap;
}

.trend-movers i {
    position: absolute;
    inset: auto auto 0 0;
    width: var(--bar-width);
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--teal));
}

.language-breakdown {
    display: grid;
    gap: 8px;
}

.language-breakdown a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f8fafc;
    color: #344054;
    font-weight: 800;
}

.language-breakdown a:hover {
    background: #eef5ff;
    color: var(--brand-dark);
}

.trend-feed {
    display: grid;
    gap: 12px;
}

.trend-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.trend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.trend-rank {
    display: inline-grid;
    min-width: 66px;
    height: 48px;
    padding: 0 10px;
    place-items: center;
    border-radius: 10px;
    background: #101828;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.trend-card-main {
    min-width: 0;
}

.trend-card p {
    color: #475467;
}

.trend-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.trend-card-footer > a {
    flex: 0 0 auto;
    font-weight: 850;
}

.repo-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
    gap: 24px;
    align-items: stretch;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, #101828 0%, #172033 48%, #ffffff 48%, #ffffff 100%);
    box-shadow: var(--shadow);
}

.repo-report-copy {
    color: #fff;
}

.repo-report-copy .eyebrow,
.repo-report-copy p {
    color: #d0d5dd;
}

.repo-report-copy h1 {
    max-width: 860px;
    color: #fff;
    font-size: 48px;
    overflow-wrap: anywhere;
}

.repo-report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.repo-scorecard {
    display: grid;
    gap: 18px;
    align-content: center;
    justify-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.score-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.score-grid div {
    min-height: 84px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.score-grid strong {
    display: block;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.score-grid span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.repo-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 780;
}

.breadcrumb a {
    color: var(--brand-dark);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.repo-report-main,
.repo-report-side {
    display: grid;
    gap: 16px;
}

.repo-report-side {
    position: sticky;
    top: 18px;
}

.report-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.report-summary {
    min-height: 260px;
}

.report-lead {
    color: #344054;
    font-size: 18px;
    line-height: 1.72;
}

.analysis-waiting {
    padding: 20px;
    border: 1px dashed #c9d6e6;
    border-radius: 12px;
    background: #f8fafc;
}

.analysis-waiting strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 18px;
}

.analysis-waiting p {
    margin-bottom: 0;
    color: var(--muted);
}

.report-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.report-facts div {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.report-facts span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.report-facts strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.report-dimension-list {
    display: grid;
    gap: 12px;
}

.report-dimension-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.report-dimension-list h2 {
    margin-bottom: 10px;
    font-size: 19px;
}

.report-dimension-list ul {
    margin: 0;
    padding-left: 20px;
    color: #475467;
}

.report-dimension-list li + li {
    margin-top: 8px;
}

.report-dimension-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.report-playbook {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.report-playbook article {
    min-height: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.playbook-index {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.report-playbook h2 {
    font-size: 19px;
}

.report-playbook ul {
    margin: 0;
    padding-left: 20px;
    color: #475467;
}

.report-playbook li + li {
    margin-top: 8px;
}

.snapshot-list {
    display: grid;
    gap: 9px;
}

.snapshot-list div {
    display: grid;
    grid-template-columns: 120px 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 9px;
    background: #f8fafc;
}

.snapshot-list span,
.snapshot-list small {
    color: var(--muted);
    font-weight: 760;
}

.snapshot-list strong {
    color: var(--ink);
}

.repo-kv {
    grid-template-columns: 86px minmax(0, 1fr);
}

.weekly-link-strip {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.weekly-link-strip > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.related-repo-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.related-repo-list a {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid #e4edf7;
    border-radius: 10px;
    background: #fbfcff;
    color: var(--text);
}

.related-repo-list a:hover {
    border-color: rgba(21, 94, 239, 0.32);
    color: var(--brand-dark);
}

.related-repo-list strong {
    overflow-wrap: anywhere;
    line-height: 1.22;
}

.related-repo-list p {
    margin-bottom: 0;
    color: #475467;
    font-size: 13px;
}

.related-repo-list small {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 780;
}

.related-repo-list small span {
    white-space: nowrap;
}

.not-found-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-strip a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
    box-shadow: inset 0 0 0 1px var(--line);
}

.section {
    margin-top: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.section-title a {
    font-weight: 800;
}

.rich-title {
    align-items: flex-end;
    margin-bottom: 16px;
}

.rich-title .eyebrow {
    margin-bottom: 5px;
}

.rich-title h2 {
    margin-bottom: 6px;
}

.rich-title p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.page-head-panel {
    justify-self: end;
    width: min(100%, 260px);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-soft);
}

.page-head-panel span,
.page-head-panel p {
    color: var(--muted);
    font-weight: 780;
}

.page-head-panel strong {
    display: block;
    margin: 4px 0;
    color: var(--ink);
    font-size: 46px;
    line-height: 1;
}

.page-head-panel p {
    margin-bottom: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.side-panel {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    position: sticky;
    top: 16px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
}

.metric-row.wide {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    margin: 18px 0 24px;
}

.metric-row div,
.panel,
.repo-card,
.repo-row,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.hero-metrics div {
    background: var(--panel-soft);
}

.metric-row div {
    padding: 16px;
}

.metric-row strong {
    display: block;
    color: var(--text);
    font-size: 28px;
    line-height: 1.05;
}

.metric-row span,
.repo-meta,
.muted {
    color: var(--muted);
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.repo-card {
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.repo-card:hover {
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px);
}

.spotlight-card {
    min-height: 150px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        linear-gradient(90deg, rgba(21, 94, 239, 0.18), rgba(15, 118, 110, 0.18));
}

.repo-list {
    display: grid;
    gap: 12px;
}

.repo-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.repo-row:hover {
    border-color: #b9c7db;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.rank {
    display: inline-flex;
    min-width: 64px;
    height: 44px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.repo-main {
    min-width: 0;
}

.repo-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.repo-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.repo-avatar {
    flex: 0 0 auto;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 900;
}

.repo-avatar.large {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    font-size: 22px;
}

.repo-hero-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.repo-hero-actions {
    justify-self: end;
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: end;
}

.repo-name {
    color: var(--text);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.repo-card p,
.repo-row p {
    color: #475467;
    margin-bottom: 12px;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    font-weight: 650;
}

.repo-meta a {
    color: var(--brand-dark);
    font-weight: 850;
}

.repo-meta a:hover {
    color: var(--ink);
}

.badge,
.status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #edf2f7;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.language-badge {
    background: var(--gold-soft);
    color: var(--gold);
}

.status.done {
    color: var(--green);
    background: var(--green-soft);
}

.status.failed {
    color: var(--red);
    background: var(--red-soft);
}

.status.pending,
.status.running {
    color: var(--amber);
    background: var(--amber-soft);
}

.empty-state {
    padding: 28px;
    color: var(--muted);
}

.empty-state.compact {
    padding: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 16px;
}

.panel {
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.quiet-panel,
.repo-side-panel {
    background: var(--panel-soft);
}

.ad-preview {
    border-style: dashed;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.82));
}

.process-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.process-list span {
    position: relative;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px 0 28px;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 780;
}

.process-list span::before {
    content: "";
    position: absolute;
    left: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.info-grid,
.analysis-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.analysis-columns article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.analysis-columns article h2 {
    color: var(--ink);
    font-size: 18px;
}

.analysis-columns ul {
    margin: 0;
    padding-left: 20px;
    color: #475467;
}

.analysis-columns li + li {
    margin-top: 8px;
}

.kv {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.kv.compact {
    grid-template-columns: 96px minmax(0, 1fr);
}

.kv dt {
    color: var(--muted);
}

.kv dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 750;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #475467;
    background: #f1f5fa;
    font-size: 13px;
}

code {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
}

.site-footer {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 26px 0 38px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer span {
    max-width: 640px;
}

.admin-hero,
.admin-titlebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-hero h1,
.admin-titlebar h1 {
    margin-bottom: 6px;
    font-size: 32px;
}

.admin-hero p,
.admin-titlebar p {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-quick-actions {
    display: grid;
    gap: 8px;
    min-width: 300px;
}

.admin-quick-actions code {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.admin-stats article,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-stats article {
    padding: 18px;
}

.admin-stats span {
    display: block;
    color: var(--muted);
    font-weight: 750;
}

.admin-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.admin-card {
    padding: 20px;
}

.settings-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.filter-card {
    margin-top: 18px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 800;
}

.admin-filter-form input,
.admin-filter-form select,
.settings-form select,
.settings-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.settings-form textarea {
    min-height: 132px;
    padding-top: 10px;
    line-height: 1.5;
    resize: vertical;
}

.admin-filter-form input:focus,
.admin-filter-form select:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    outline: 3px solid #dbe8ff;
    border-color: var(--brand);
}

.filter-actions,
.table-actions,
.admin-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-card-actions {
    margin-top: 14px;
}

.table-subtext {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.mini-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
}

.mini-badge.on {
    background: var(--green-soft);
    color: var(--green);
}

.mini-badge.off {
    background: var(--red-soft);
    color: var(--red);
}

.ad-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ad-slot-card {
    display: grid;
    gap: 16px;
}

.ad-slot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ad-slot-head h2 {
    margin-bottom: 0;
}

.switch-row {
    min-height: 38px;
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px !important;
}

.switch-row input {
    width: 18px;
    height: 18px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.report-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.report-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-filters a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-weight: 820;
    box-shadow: inset 0 0 0 1px var(--line);
}

.report-filters a.active {
    background: #101828;
    color: #fff;
    box-shadow: none;
}

.report-filters strong {
    font-size: 12px;
}

.inline-filter-form select {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font: inherit;
    font-weight: 780;
}

.table-action {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 820;
}

.table-action.danger {
    color: var(--red);
}

.table-action:hover {
    border-color: #b7cdfa;
    background: #eef4ff;
}

.task-card {
    display: grid;
    gap: 18px;
}

.task-card h2 {
    margin-bottom: 6px;
}

.task-card p {
    margin-bottom: 0;
}

.task-form,
.task-form label {
    display: grid;
    gap: 8px;
}

.task-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.task-form label {
    color: #344054;
    font-weight: 800;
}

.task-form input {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.task-form input:focus {
    outline: 3px solid #dbe8ff;
    border-color: var(--brand);
}

.task-form .button {
    min-height: 40px;
}

.task-metrics {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: span 2;
    color: var(--muted);
    font-weight: 750;
}

.task-metrics strong {
    color: var(--text);
}

.settings-card {
    margin-top: 18px;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.settings-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.settings-form input:focus {
    outline: 3px solid #dbe8ff;
    border-color: var(--brand);
}

.settings-form .switch-row input {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
    flex: 0 0 auto;
}

.settings-form small {
    color: var(--muted);
    font-weight: 650;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.admin-alert {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.admin-alert.success {
    border: 1px solid #b7e7cb;
    background: var(--green-soft);
    color: var(--green);
}

.admin-alert.danger {
    border: 1px solid #fecdd3;
    background: var(--red-soft);
    color: var(--red);
}

.table-card {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.table-toolbar h2,
.table-toolbar p {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-page table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-page th {
    background: #f8fafc;
    white-space: nowrap;
}

.admin-page td {
    color: #344054;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #eef3fa;
}

.login-shell {
    width: min(100% - 32px, 430px);
}

.login-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-brand {
    margin-bottom: 28px;
}

.login-title h1 {
    margin-bottom: 8px;
    font-size: 34px;
}

.login-title p {
    color: var(--muted);
}

.login-error {
    margin: 18px 0;
    padding: 11px 12px;
    border: 1px solid var(--red-soft);
    border-radius: 8px;
    background: var(--red-soft);
    color: var(--red);
    font-weight: 750;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.login-form input:focus {
    outline: 3px solid #dbe8ff;
    border-color: var(--brand);
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
}

.captcha-button {
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.captcha-button img {
    display: block;
    width: 132px;
    height: 44px;
}

.login-submit {
    width: 100%;
    margin-top: 4px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 920px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        padding: 12px 12px 10px;
    }

    .admin-sidebar-brand {
        min-height: 50px;
        padding: 0 4px 10px;
    }

    .admin-sidebar-brand .brand-logo {
        width: 34px;
        height: 34px;
    }

    .admin-menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 0 0;
        scrollbar-width: none;
    }

    .admin-menu::-webkit-scrollbar {
        display: none;
    }

    .admin-menu a {
        flex: 0 0 auto;
    }

    .admin-sidebar-foot {
        display: none;
    }

    .admin-topbar {
        position: static;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .admin-topbar h1 {
        font-size: 20px;
    }

    .admin-page .page {
        padding: 18px 18px 40px;
    }

    .site-header,
    .admin-header {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px 12px;
        padding: 12px 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .header-action {
        width: auto;
    }

    .nav-cta {
        justify-self: end;
    }

    .admin-header-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .hero-board,
    .page-head,
    .repo-detail-head,
    .admin-hero,
    .admin-titlebar,
    .home-showcase,
    .home-language-panel,
    .home-intelligence-section,
    .trend-hero,
    .trend-layout,
    .repo-report-hero,
    .repo-report-layout,
    .ranking-layout,
    .content-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    h1 {
        font-size: 34px;
    }

    .front-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(16, 24, 40, 0.98) 0%, rgba(22, 42, 69, 0.96) 58%, rgba(255, 255, 255, 0.98) 58%, rgba(255, 255, 255, 0.98) 100%);
    }

    .front-hero h1 {
        font-size: 42px;
    }

    .page-head-panel,
    .repo-hero-actions {
        justify-self: stretch;
        justify-items: start;
    }

    .repo-grid,
    .home-insight-strip,
    .focus-grid,
    .editorial-grid,
    .info-grid,
    .analysis-columns,
    .ad-slot-grid,
    .task-grid,
    .admin-grid,
    .admin-stats,
    .metric-row,
    .metric-row.wide {
        grid-template-columns: 1fr;
    }

    .admin-header-title {
        display: none;
    }

    .admin-quick-actions {
        min-width: 0;
    }

    .focus-card h3 {
        font-size: 28px;
    }

    .showcase-copy h1 {
        font-size: 44px;
    }

    .showcase-board {
        min-width: 0;
    }

    .home-language-panel {
        align-items: start;
    }

    .language-chips {
        justify-content: flex-start;
    }

    .latest-report-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editorial-card.large {
        min-height: 320px;
    }

    .ranking-intro {
        position: static;
    }

    .trend-sidebar,
    .repo-report-side {
        position: static;
    }

    .trend-hero h1,
    .repo-report-copy h1 {
        font-size: 38px;
    }

    .report-playbook,
    .report-facts {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        padding: 10px;
    }

    .admin-menu a {
        min-height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }

    .admin-menu-icon {
        width: 26px;
        height: 26px;
    }

    .admin-topbar {
        padding: 13px 12px;
    }

    .admin-page .page {
        padding: 14px 11px 34px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .task-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .task-metrics {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .site-header,
    .admin-header,
    .site-footer,
    .sub-nav,
    .page {
        width: min(100% - 22px, 1200px);
    }

    .site-header {
        margin-top: 8px;
        padding: 10px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero-board,
    .page-head,
    .repo-detail-head,
    .trend-hero,
    .repo-report-hero,
    .admin-hero,
    .admin-titlebar {
        padding: 20px;
        border-radius: 12px;
    }

    .trend-hero h1,
    .repo-report-copy h1 {
        font-size: 31px;
    }

    .trend-hero p,
    .repo-report-copy p {
        font-size: 15px;
    }

    .trend-hero-stats {
        grid-template-columns: 1fr;
    }

    .intelligence-panel {
        padding: 18px;
        border-radius: 12px;
    }

    .compact-title {
        align-items: flex-start;
    }

    .latest-report-list {
        grid-template-columns: 1fr;
    }

    .weekly-link-strip {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .trend-hero-stats article {
        min-height: 78px;
    }

    .trend-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .trend-toolbar .button {
        width: 100%;
    }

    .trend-card {
        grid-template-columns: 1fr;
    }

    .trend-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .trend-movers a {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .trend-movers small {
        grid-column: 2;
    }

    .repo-report-hero {
        background: #101828;
    }

    .repo-scorecard {
        padding: 16px;
    }

    .score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .score-grid div {
        min-height: 76px;
    }

    .score-grid strong {
        font-size: 19px;
    }

    .report-card {
        padding: 18px;
        border-radius: 12px;
    }

    .report-lead {
        font-size: 16px;
    }

    .report-dimension-list article {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 12px;
    }

    .report-playbook {
        gap: 12px;
    }

    .report-playbook article {
        min-height: auto;
        border-radius: 12px;
    }

    .snapshot-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .home-showcase {
        min-height: auto;
        gap: 20px;
        padding: 22px;
        border-radius: 14px;
    }

    .showcase-copy h1 {
        font-size: 31px;
        line-height: 1.02;
    }

    .showcase-subtitle {
        font-size: 14px;
    }

    .showcase-actions {
        margin-top: 20px;
    }

    .showcase-actions .button {
        width: 100%;
    }

    .showcase-meta {
        display: none;
    }

    .showcase-board {
        padding: 12px;
        border-radius: 12px;
    }

    .board-lead {
        padding: 16px;
        border-radius: 10px;
    }

    .board-lead h2 {
        margin-top: 12px;
        font-size: 21px;
    }

    .board-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
    }

    .board-lead p,
    .signal-list {
        display: none;
    }

    .signal-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .signal-row small {
        grid-column: 2;
    }

    .home-language-panel {
        padding: 18px;
        border-radius: 12px;
    }

    .language-chips a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .editorial-card,
    .editorial-card.large,
    .ranking-item {
        border-radius: 10px;
    }

    .editorial-card.large {
        min-height: auto;
        padding: 22px;
    }

    .editorial-card.large h3 {
        font-size: 28px;
    }

    .ranking-layout {
        gap: 14px;
    }

    .ranking-intro {
        padding: 20px;
        border-radius: 12px;
    }

    .ranking-item {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 30px;
    }

    .front-hero {
        padding: 20px;
    }

    .front-hero h1 {
        font-size: 31px;
    }

    .front-hero .hero-subtitle {
        font-size: 15px;
    }

    .hero-proof {
        margin-top: 14px;
    }

    .hero-insight-panel {
        padding: 12px;
    }

    .hero-insight-panel .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-insight-panel .metric-row div {
        padding: 10px 8px;
    }

    .hero-insight-panel .metric-row strong {
        font-size: 20px;
    }

    .hero-insight-panel .metric-row span {
        font-size: 12px;
    }

    .insight-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .insight-gain {
        grid-column: 2;
    }

    .language-rail {
        align-items: center;
        flex-direction: row;
    }

    .language-rail span {
        width: 100%;
    }

    .language-rail a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .home-insight-strip article,
    .focus-card,
    .focus-side {
        border-radius: 12px;
    }

    .home-insight-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-insight-strip::-webkit-scrollbar {
        display: none;
    }

    .home-insight-strip article {
        flex: 0 0 286px;
        min-height: auto;
        padding: 18px;
        scroll-snap-align: start;
    }

    .home-insight-strip p {
        margin-bottom: 12px;
    }

    .home-insight-strip strong {
        font-size: 28px;
    }

    .strip-index {
        margin-bottom: 10px;
    }

    .focus-card {
        min-height: auto;
        padding: 20px;
    }

    .focus-card h3 {
        font-size: 24px;
    }

    .focus-metrics {
        display: grid;
        grid-template-columns: 1fr;
        margin: 16px 0;
    }

    .focus-metrics span {
        min-width: 0;
    }

    .repo-row {
        grid-template-columns: 1fr;
    }

    .repo-line,
    .repo-hero-title,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .kv,
    .kv.compact {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-panel {
        padding: 22px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }
}
