
    :root {
        --history-gold: #c5a059;
        --history-emerald: #065f46;
        --history-navy: #1e293b;
        --history-bg: #f8fafc;
        --history-accent: #0ea5e9;
    }

    .history-academy {
        max-width: 100%;
        margin: 12px 0 0;
        padding: 0 8px 16px;
        font-family: 'Outfit', 'Inter', sans-serif;
        color: var(--history-navy);
        background: var(--history-bg);
    }

    .history-top-panel {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .history-top-panel__hero {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        background: linear-gradient(135deg, #1e293b 0%, #065f46 100%);
        padding: 12px 14px;
        color: #fff;
    }

    .history-top-panel__intro {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        flex: 1 1 280px;
    }

    .history-top-panel__hero h1 {
        font-size: 1.1rem;
        margin: 0;
        font-weight: 800;
        letter-spacing: -0.3px;
        line-height: 1.15;
    }

    .history-top-panel__tagline {
        margin: 0;
        font-size: 0.76rem;
        line-height: 1.4;
        opacity: 0.92;
        max-width: 58ch;
    }

    .history-top-panel__nav {
        padding: 10px 12px 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 220px;
        overflow-y: auto;
    }

    .history-nav-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }

    .history-nav-label {
        flex: 0 0 100%;
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #94a3b8;
    }

    .history-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .history-nav-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 9px;
        border-radius: 8px;
        text-decoration: none;
        color: #64748b;
        font-weight: 700;
        font-size: 0.76rem;
        transition: all 0.15s;
        white-space: nowrap;
        border: 1px solid transparent;
    }

    .history-nav-link i { font-size: 0.72rem; }

    .history-nav-link:hover {
        background: #f1f5f9;
        color: var(--history-emerald);
    }

    .history-nav-link.active {
        background: var(--history-gold);
        color: #fff;
        box-shadow: 0 4px 10px rgba(197, 160, 89, 0.25);
    }

    .history-nav-link-external {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    .history-panes {
        margin-bottom: 12px;
    }

    .history-pane {
        display: none;
        margin-bottom: 0;
        border-radius: 14px;
        padding: 16px 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    .history-pane.is-active {
        display: block;
    }

    .history-pane--empty {
        display: none;
        text-align: center;
        padding: 24px 14px;
        color: #64748b;
        font-size: 0.88rem;
        border: 1px dashed #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }

    .history-panes:not(.has-active) .history-pane--empty {
        display: block;
    }

    .history-panes.has-active .history-pane--empty {
        display: none;
    }

    .history-pane-heading {
        margin: 0 0 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    .history-pane-heading h2 {
        margin: 0 0 4px;
        font-size: 1.15rem;
        color: var(--history-navy);
    }

    .history-pane-heading p {
        margin: 0;
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.5;
    }

    .history-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .history-grid-wrap {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .history-grid-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 20px;
        padding: 14px 18px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .history-grid-count {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--history-navy);
    }

    .history-grid-count span {
        color: var(--history-gold);
    }

    .history-pagination {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
    }

    .history-page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        color: var(--history-navy);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .history-page-btn:hover:not(:disabled) {
        border-color: var(--history-gold);
        color: var(--history-gold);
    }

    .history-page-btn.active {
        background: var(--history-gold);
        border-color: var(--history-gold);
        color: #fff;
    }

    .history-page-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .history-page-ellipsis {
        padding: 0 4px;
        color: #94a3b8;
        font-weight: 700;
    }

    .history-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }

    @media (max-width: 1200px) {
        .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
        .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 560px) {
        .history-grid { grid-template-columns: 1fr; }
    }

    .history-card {
        display: block;
        background: #fff;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        border: 1px solid rgba(0,0,0,0.05);
        text-decoration: none;
        color: inherit;
    }

    .history-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-color: var(--history-gold);
    }

    .card-image { height: 200px; overflow: hidden; position: relative; background: #e2e8f0; }
    .card-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
    .history-card:hover .card-image img { transform: scale(1.1); }

    .card-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255,255,255,0.9);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--history-gold);
        text-transform: uppercase;
        backdrop-filter: blur(5px);
    }

    .card-body { padding: 20px; }
    .card-body h3 { margin: 0 0 10px 0; font-size: 1.15rem; color: var(--history-navy); line-height: 1.35; }
    .card-body .meta { font-size: 0.85rem; color: #64748b; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
    .card-body p { margin: 0 0 12px 0; color: #475569; line-height: 1.6; font-size: 0.95rem; }
    .card-grave-caption {
        position: absolute;
        left: 0; right: 0; bottom: 0;
        padding: 10px 12px;
        background: linear-gradient(transparent, rgba(15,23,42,0.88));
        color: #fff;
        font-size: 0.78rem;
        line-height: 1.35;
    }
    .card-grave-caption strong {
        display: block;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.85;
        margin-bottom: 2px;
    }
    .card-grave-body {
        margin-top: 8px;
        font-size: 0.82rem;
        color: #475569;
        line-height: 1.45;
    }
    .card-grave-body i { color: #b45309; margin-right: 4px; }
    .card-cta {
        font-size: 0.85rem; font-weight: 700; color: #b45309;
        display: inline-flex; align-items: center; gap: 6px;
    }
    .card-kill-stat {
        margin: 0 0 12px 0;
        padding: 10px 12px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 10px;
        font-size: 0.88rem;
        color: #991b1b;
        line-height: 1.45;
    }
    .card-kill-stat strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }

    .history-empty {
        grid-column: 1 / -1;
        text-align: center;
        padding: 48px 20px;
        background: #fff;
        border: 1px dashed #cbd5e1;
        border-radius: 16px;
        color: #64748b;
    }

    .badr-directory-callout {
        margin: 0 0 20px;
    }
    .badr-directory-callout-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 14px 20px;
        padding: 16px 18px;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
        color: #fff;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
    }
    .badr-directory-callout-inner p {
        margin: 6px 0 0;
        font-size: 0.92rem;
        line-height: 1.55;
        opacity: 0.92;
        max-width: 640px;
    }
    .badr-directory-callout-inner a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        background: #c5a059;
        color: #1e293b;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }
    .badr-directory-callout-inner a:hover {
        filter: brightness(1.05);
    }
