:root {
        --bg: #090b10;
        --panel: #111827;
        --panel2: #0f172a;
        --text: #e5e7eb;
        --muted: #9ca3af;
        --brand: #fb7185;
        --brand2: #a78bfa;
        --border: #273449;
        --card: #111827;
        --good: #34d399;
        --warn: #fbbf24;
    }

    * {
        box-sizing: border-box
    }

    html {
        scroll-behavior: smooth
    }

    body {
        margin: 0;
        background: radial-gradient(circle at 10% 0%, #4c1d95 0, #090b10 38%), var(--bg);
        color: var(--text);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        line-height: 1.65
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(9, 11, 16, .88);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 6px 18px
    }

    .brand {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        max-width: 1480px;
        margin: auto
    }

    .brand-logo {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain
    }

    .brand a {
        color: var(--text);
        text-decoration: none
    }

    .pill {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        padding: 6px 10px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--muted);
        font-size: .85rem
    }

    .layout {
        max-width: 1480px;
        margin: 0 auto;
        display: grid;
        grid-template-columns:360px 1fr;
        gap: 22px;
        padding: 22px 18px
    }

    .sidebar {
        position: sticky;
        top: 76px;
        align-self: start;
        max-height: calc(100vh - 98px);
        overflow: auto;
        background: rgba(17, 24, 39, .78);
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 14px;
        box-shadow: 0 18px 60px rgba(0, 0, 0, .25)
    }

    .sidebar h2 {
        font-size: .95rem;
        color: #fff;
        margin: 8px 8px 12px
    }

    .article-link {
        display: block;
        text-decoration: none;
        color: var(--text);
        padding: 13px;
        border-radius: 16px;
        border: 1px solid transparent;
        margin-bottom: 10px;
        background: rgba(15, 23, 42, .55)
    }

    .article-link:hover, .article-link.active {
        border-color: var(--brand);
        background: linear-gradient(135deg, rgba(251, 113, 133, .16), rgba(167, 139, 250, .11))
    }

    .topic {
        display: block;
        font-weight: 750;
        font-size: .95rem
    }

    .summary {
        display: block;
        color: var(--muted);
        font-size: .82rem;
        line-height: 1.45;
        margin-top: 4px
    }

    .content {
        min-width: 0
    }

    .hero {
        background: linear-gradient(135deg, rgba(251, 113, 133, .12), rgba(167, 139, 250, .10));
        border: 1px solid var(--border);
        border-radius: 28px;
        padding: 26px;
        margin-bottom: 20px
    }

    .hero h2 {
        font-size: clamp(1.5rem, 4vw, 2.8rem);
        line-height: 1.08;
        margin: 0 0 12px
    }

    .meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 16px 0
    }

    .meta span {
        padding: 7px 10px;
        border-radius: 999px;
        background: #0b1220;
        border: 1px solid var(--border);
        color: var(--muted);
        font-size: .85rem
    }

    .notice {
        color: var(--muted);
        font-size: .95rem
    }

    .grid-info {
        display: grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin: 18px 0
    }

    .info-box {
        background: rgba(17, 24, 39, .72);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px
    }

    .info-box strong {
        color: #fff
    }

    .sentence-card {
        background: rgba(17, 24, 39, .86);
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 18px;
        margin: 16px 0;
        box-shadow: 0 12px 36px rgba(0, 0, 0, .18)
    }

    .sentence-card h3 {
        margin: 0 0 12px;
        color: #fff
    }

    .template {
        display: grid;
        grid-template-columns:220px 1fr;
        gap: 8px 16px;
        margin: 0
    }

    .template dt {
        color: var(--brand);
        font-weight: 750
    }

    .template dd {
        margin: 0;
        color: var(--text);
        min-width: 0
    }

    .template ul, .template ol {
        margin: 6px 0 0 18px;
        padding: 0
    }

    .template li {
        margin: 4px 0
    }

    .mobile-menu-button {
        display: none;
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 12px 14px;
        background: linear-gradient(135deg, var(--brand), var(--brand2));
        color: #03101a;
        font-weight: 800;
        margin: 14px 0;
        cursor: pointer
    }

    .drawer-backdrop {
        display: none
    }

    .copyright-note {
        font-size: .85rem;
        color: var(--muted);
        border-top: 1px solid var(--border);
        padding: 18px 0 30px;
        margin-top: 20px
    }

    @media (max-width: 860px) {
        .layout {
            display: block;
            padding: 14px
        }

        .mobile-menu-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px
        }

        .sidebar {
            display: none;
            position: fixed;
            left: 12px;
            right: 12px;
            bottom: 12px;
            top: 74px;
            z-index: 60;
            overflow: auto;
            background: rgba(17, 24, 39, .98);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 14px;
            box-shadow: 0 18px 60px rgba(0, 0, 0, .35)
        }

        .sidebar.open {
            display: block
        }

        .drawer-backdrop.open {
            display: block;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .55);
            z-index: 50
        }

        .content {
            grid-template-columns:1fr
        }

        .grid-info {
            grid-template-columns:1fr
        }

        .template {
            grid-template-columns:1fr
        }

        .template dt {
            margin-top: 10px
        }

        .topbar {
            padding: 6px 18px
        }

        .pill {
            display: none
        }

        .footer-nav {
            flex-direction: column
        }
    }
