.docs-main {
    padding: 18px 0 60px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
}

@media (max-width: 980px) {
    .docs-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .docs-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        border-radius: 12px;
        padding: 14px;
        border: 1px solid #e2e8f0;
    }

    .docs-main {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .docs-content {
        width: 100% !important;
        min-width: 0 !important;
        /* Fix flex/grid child overflow */
    }

    .docs-section {
        padding: 16px !important;
        border-radius: 14px;
        overflow: hidden;
        /* Prevent content spill */
    }

    .docs-content h1 {
        font-size: 22px !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .docs-section h2 {
        font-size: 22px !important;
    }

    /* Fix potential container padding issues */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.docs-sidebar {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 16px 16px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.docs-sidebar::-webkit-scrollbar {
    display: none;
}

.docs-sidebar-section {
    margin-bottom: 16px;
}

.docs-sidebar-section:last-child {
    margin-bottom: 0;
}

.docs-sidebar h3 {
    padding: 0 12px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.docs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.docs-nav li {
    margin: 1px 0;
}

.docs-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.docs-nav a svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.docs-nav a:hover svg {
    color: #3b82f6;
}

.docs-nav a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.docs-nav a.active svg {
    color: #2563eb;
}

.docs-nav .sidebar-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.docs-nav .sidebar-badge.pro {
    background: #fef3c7;
    color: #d97706;
}

.docs-nav .sidebar-badge.biz {
    background: #dcfce7;
    color: #16a34a;
}

.docs-content h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.docs-content>p {
    margin: 0 0 18px;
    color: #4b5563;
}

.docs-section {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e6ecf8;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
    padding: 20px 22px 18px;
    margin-bottom: 20px;
}

.docs-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.docs-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.docs-section h3 {
    margin: 16px 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.docs-section p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 14px;
}

.docs-section pre {
    margin: 8px 0 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e5e7eb;
    overflow-x: auto;
    padding: 12px;
}

.docs-section code.inline {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: #eef2ff;
    padding: 2px 4px;
    border-radius: 4px;
}

.http-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    margin-right: 6px;
}
.nav-num {
    color: #94a3b8;
    font-weight: 700;
    margin-right: 4px;
    font-size: 0.9em;
}

/* Copy to Clipboard Button */
.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

pre {
    position: relative;
}

pre:hover .copy-code-btn {
    opacity: 1;
    pointer-events: auto;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-code-btn.copied {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}

/* --- Dark Mode Variables & Overrides --- */
body.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0;
}

body.dark-mode .bg-halo {
    display: none !important;
}

body.dark-mode .docs-sidebar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

body.dark-mode .docs-sidebar h3 {
    color: #94a3b8;
}

body.dark-mode .docs-nav a {
    color: #cbd5e1;
}

body.dark-mode .docs-nav a:hover {
    background: #334155;
    color: #f8fafc;
}

body.dark-mode .docs-nav a.active {
    background: #3b82f6;
    color: #ffffff;
}

body.dark-mode .docs-nav a.active svg {
    color: #ffffff;
}

body.dark-mode .docs-section {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}

body.dark-mode .docs-section h2 {
    background: linear-gradient(135deg, #f8fafc 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.dark-mode .docs-content > p,
body.dark-mode .docs-section p {
    color: #94a3b8;
}

body.dark-mode .docs-section h3 {
    color: #e2e8f0;
}

body.dark-mode .docs-table th {
    background: #0f172a !important;
    color: #f8fafc;
}

body.dark-mode .docs-table td {
    border-color: #334155;
}

body.dark-mode .docs-table td code {
    color: #93c5fd !important;
}

body.dark-mode .api-playground {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .api-playground > div:first-child {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .api-playground h3 {
    color: #e2e8f0 !important;
}

body.dark-mode .api-playground > div:nth-child(2) > div:first-child {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode #pg-param-container {
    background: #0f172a !important;
    border-color: #475569 !important;
}

body.dark-mode #pg-cif {
    background: #0f172a;
    color: #e2e8f0 !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .theme-toggle-btn {
    color: #94a3b8;
}

body.dark-mode .theme-toggle-btn:hover {
    background: #334155;
    color: #f8fafc;
}

/* --- Fix Dark Mode inline style overrides --- */
body.dark-mode .endpoint-header {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode *[style*="background: #ffffff"],
body.dark-mode *[style*="background: #f8fafc"],
body.dark-mode *[style*="background: #fff"],
body.dark-mode *[style*="background: #f1f5f9"],
body.dark-mode *[style*="background: #fef2f2"],
body.dark-mode *[style*="background: #fffbeb"],
body.dark-mode *[style*="background:#ffffff"],
body.dark-mode *[style*="background:#f8fafc"],
body.dark-mode *[style*="background:#fff"],
body.dark-mode *[style*="background:#f1f5f9"],
body.dark-mode *[style*="background:#fef2f2"],
body.dark-mode *[style*="background:#fffbeb"] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode *[style*="color: #0f172a"],
body.dark-mode *[style*="color:#0f172a"],
body.dark-mode *[style*="color: #334155"],
body.dark-mode *[style*="color:#334155"] {
    color: #e2e8f0 !important;
}

body.dark-mode *[style*="color: #475569"],
body.dark-mode *[style*="color:#475569"],
body.dark-mode *[style*="color: #64748b"],
body.dark-mode *[style*="color:#64748b"] {
    color: #cbd5e1 !important;
}

body.dark-mode *[style*="color: #dc2626"],
body.dark-mode *[style*="color:#dc2626"],
body.dark-mode *[style*="color: #d97706"],
body.dark-mode *[style*="color:#d97706"] {
    /* Mute bright reds and oranges in dark mode so they are readable on dark bg */
    color: #fca5a5 !important; 
}
body.dark-mode *[style*="color: #d97706"], body.dark-mode *[style*="color:#d97706"] { color: #fcd34d !important; }

body.dark-mode table.docs-table thead,
body.dark-mode table.docs-table thead th {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}
body.dark-mode table.docs-table td {
    border-color: #334155 !important;
}

/* 16-10-2026: en modo oscuro los enlaces del texto salían en azul marino (#133A82) sobre
   fondo pizarra y casi no se leían. Las etiquetas de plan y los botones conservan su estilo. */
body.dark-mode .docs-section p a:not(.plan-badge),
body.dark-mode .docs-section li a:not(.plan-badge),
/* 11-11-2026: también los enlaces de «Documentation by topic» (.docs-temas, fuera de .docs-section) */
body.dark-mode .docs-table td a:not(.plan-badge),
body.dark-mode .docs-temas a {
    color: #93c5fd;
}
body.dark-mode .docs-section p a:not(.plan-badge):hover,
body.dark-mode .docs-section li a:not(.plan-badge):hover,
body.dark-mode .docs-table td a:not(.plan-badge):hover,
body.dark-mode .docs-temas a:hover {
    color: #bfdbfe;
}

/* =========================================================================
   Barra lateral de la documentación (20-10-2026): agrupada por temas, sin
   números ni iconos, con buscador, etiquetas de plan discretas y la sección
   activa marcada con una línea a la izquierda. Clases .dsb-*.
   ========================================================================= */
.docs-layout {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 32px;
}

.docs-sidebar.dsb {
    --dsb-fg: #334155;
    --dsb-muted: #64748b;
    --dsb-faint: #94a3b8;
    --dsb-line: #e8edf5;
    --dsb-hover: #f4f7fb;
    --dsb-accent: #2563eb;
    --dsb-accent-bg: #eef4ff;
    --dsb-bg: rgba(255, 255, 255, 0.86);
    background: var(--dsb-bg);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    backdrop-filter: saturate(140%) blur(6px);
    border: 1px solid var(--dsb-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 0;
    top: 92px;
    max-height: calc(100vh - 116px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dsb,
.dsb *,
.dsb *::before {
    box-sizing: border-box;
}

.dsb-top {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--dsb-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dsb-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsb-lang {
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #f1f5f9;
    margin-right: auto;
}

.dsb-lang a {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dsb-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dsb-lang a:hover {
    color: var(--dsb-fg);
}

.dsb-lang a.is-on {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dsb-icon-btn.theme-toggle-btn {
    padding: 6px;
    border-radius: 8px;
    color: var(--dsb-muted);
}

.dsb-mobile-toggle {
    display: none;
}

.dsb-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--dsb-line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--dsb-faint);
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dsb-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dsb-search svg {
    flex: none;
}

.dsb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--dsb-fg);
    padding: 0;
}

.dsb-search input::placeholder {
    color: var(--dsb-faint);
}

.dsb-search input::-webkit-search-cancel-button {
    display: none;
}

.dsb-search kbd {
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    color: var(--dsb-faint);
    border: 1px solid var(--dsb-line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 6px;
    background: #f8fafc;
}

.dsb-search:focus-within kbd {
    visibility: hidden;
}

.dsb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: #dbe3ee transparent;
}

.dsb-nav::-webkit-scrollbar {
    width: 6px;
}

.dsb-nav::-webkit-scrollbar-thumb {
    background: #dbe3ee;
    border-radius: 3px;
}

.dsb-group {
    padding-top: 12px;
}

.dsb-label {
    padding: 0 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dsb-faint);
}

.dsb .docs-nav {
    font-size: 13.5px;
}

.dsb .docs-nav li {
    margin: 0;
}

.dsb .docs-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 7px;
    color: var(--dsb-fg);
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.12s, color 0.12s;
}

.dsb .docs-nav a:hover {
    background: var(--dsb-hover);
    color: #0f172a;
}

.dsb .docs-nav a.active {
    background: var(--dsb-accent-bg);
    color: var(--dsb-accent);
    font-weight: 600;
}

.dsb .docs-nav a.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--dsb-accent);
}

.dsb .docs-nav a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.dsb-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsb-ext {
    flex: none;
    color: var(--dsb-faint);
}

.dsb-tag {
    flex: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.dsb-tag.pro {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.dsb-tag.biz {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dsb .docs-nav a.active .dsb-tag {
    background: #ffffff;
}

.dsb-empty {
    margin: 16px 10px 4px;
    font-size: 13px;
    color: var(--dsb-muted);
}

.dsb-legend {
    padding: 9px 14px;
    border-top: 1px solid var(--dsb-line);
    font-size: 11.5px;
    color: var(--dsb-faint);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modo oscuro */
body.dark-mode .docs-sidebar.dsb {
    --dsb-fg: #cbd5e1;
    --dsb-muted: #94a3b8;
    --dsb-faint: #64748b;
    --dsb-line: #263244;
    --dsb-hover: #1e293b;
    --dsb-accent: #93c5fd;
    --dsb-accent-bg: rgba(59, 130, 246, 0.14);
    --dsb-bg: rgba(15, 23, 42, 0.88);
    background: var(--dsb-bg);
    border-color: var(--dsb-line);
}

body.dark-mode .dsb .docs-nav a:hover {
    background: var(--dsb-hover);
    color: #f8fafc;
}

body.dark-mode .dsb .docs-nav a.active {
    background: var(--dsb-accent-bg);
    color: var(--dsb-accent);
}

body.dark-mode .dsb-lang {
    background: #1e293b;
}

body.dark-mode .dsb-lang a.is-on {
    background: #334155;
    color: #f8fafc;
    box-shadow: none;
}

body.dark-mode .dsb-search {
    background: #0f172a;
    border-color: var(--dsb-line);
}

body.dark-mode .dsb-search kbd {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .dsb-tag.pro {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
}

body.dark-mode .dsb-tag.biz {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

body.dark-mode .dsb .docs-nav a.active .dsb-tag {
    background: transparent;
}

/* Móvil y tableta: la barra es un índice plegable arriba */
@media (max-width: 980px) {
    .docs-sidebar.dsb {
        position: static !important;
        max-height: none;
        padding: 0 !important;
        margin-bottom: 8px !important;
        border-radius: 12px;
    }

    .dsb-top {
        border-bottom: 0;
    }

    .dsb-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 1px solid var(--dsb-line);
        background: transparent;
        border-radius: 8px;
        padding: 5px 10px;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        color: var(--dsb-fg);
        cursor: pointer;
    }

    .dsb-mobile-toggle .dsb-chev {
        transition: transform 0.2s;
    }

    .dsb.is-open .dsb-mobile-toggle .dsb-chev {
        transform: rotate(180deg);
    }

    .dsb-nav,
    .dsb-legend {
        display: none;
    }

    .dsb.is-open .dsb-nav {
        display: block;
        max-height: 60vh;
        border-top: 1px solid var(--dsb-line);
    }

    .dsb.is-open .dsb-legend {
        display: flex;
    }

    .dsb-search kbd {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dsb *,
    .dsb *::before {
        transition: none !important;
    }
}

.dsb-sep {
    margin: 0 2px;
}

/* =========================================================================
   Registro de cambios (20-10-2026): sección #changelog, sale del changelog
   de la página de estado. Clases .chg-*.
   ========================================================================= */
.chg-hint {
    margin: 20px 0 0 !important;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    font-size: 13.5px !important;
}

.chg-note {
    font-size: 13px !important;
    color: #64748b !important;
}

.chg-list {
    position: relative;
    margin-top: 18px;
    padding-left: 22px;
    border-left: 2px solid #e8edf5;
}

.chg-entry {
    position: relative;
    padding-bottom: 22px;
}

.chg-entry:last-child {
    padding-bottom: 4px;
}

.chg-entry::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #3b82f6;
}

.chg-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.chg-meta time {
    font-weight: 600;
}

.chg-version {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
}

.docs-section .chg-entry h3 {
    margin: 4px 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.chg-entry h3 a {
    color: #0f172a;
    text-decoration: none;
}

.chg-entry h3 a:hover {
    color: #2563eb;
}

.chg-entry ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.chg-entry li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.chg-entry li code {
    font-size: 12.5px;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    color: #0f172a;
}

.chg-type {
    flex: none;
    min-width: 62px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 5px;
    position: relative;
    top: -1px;
}

.chg-type.new { background: #ecfdf5; color: #047857; }
.chg-type.improved { background: #eff6ff; color: #1d4ed8; }
.chg-type.changed { background: #fffbeb; color: #b45309; }
.chg-type.fixed { background: #f5f3ff; color: #6d28d9; }

.chg-more {
    margin-top: 12px !important;
    font-size: 13.5px !important;
}

body.dark-mode .chg-hint { background: #0f172a; border-color: #263244; }
body.dark-mode .chg-list { border-color: #263244; }
body.dark-mode .chg-entry::before { background: #1e293b; border-color: #60a5fa; }
body.dark-mode .chg-entry h3 a { color: #e2e8f0; }
body.dark-mode .chg-entry li { color: #cbd5e1; }
body.dark-mode .chg-entry li code { background: #0f172a; color: #93c5fd; }
body.dark-mode .chg-version { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
body.dark-mode .chg-type.new { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
body.dark-mode .chg-type.improved { background: rgba(59, 130, 246, 0.14); color: #93c5fd; }
body.dark-mode .chg-type.changed { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
body.dark-mode .chg-type.fixed { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }

@media (max-width: 640px) {
    .chg-list { padding-left: 16px; }
    .chg-entry::before { left: -23px; }
    .chg-entry li { flex-direction: column; gap: 4px; }
    .chg-type { align-self: flex-start; min-width: 0; }
}
