
        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --teal: #4CB5AE;
            --teal-dark: #2F8C86;
            --teal-light: #E8F6F5;
            --navy: #172634;
            --navy-soft: #23384B;
            --coral: #F2A09A;
            --coral-light: #FFF4F1;
            --text-dark: #243442;
            --text-gray: #5D6E7E;
            --text-light: #8493A3;
            --white: #FFFFFF;
            --border: #DFE8EE;
            --surface: rgba(255, 255, 255, 0.84);
            --shadow: 0 26px 60px rgba(23, 38, 52, 0.12);
            --amber: #C9821B;
            --amber-bg: #FBF1DE;
            --red: #C0473D;
            --red-bg: #FBE7E4;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background:
                radial-gradient(circle at top left, rgba(76, 181, 174, 0.18), transparent 28%),
                radial-gradient(circle at top right, rgba(242, 160, 154, 0.18), transparent 24%),
                linear-gradient(180deg, #F7FBFB 0%, #FFFFFF 20%, #FFF9F6 100%);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        h1, h2, h3 {
            font-family: 'DM Serif Display', Georgia, serif;
            font-weight: 400;
        }

        .doc-shell {
            max-width: 1160px;
            margin: 0 auto;
            padding: 124px 20px 96px;
        }

        .hero {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
            gap: 24px;
            align-items: start;
            margin-bottom: 26px;
        }

        .hero-panel,
        .toc-panel,
        .section-panel,
        .summary-card,
        .support-card {
            background: var(--surface);
            border: 1px solid rgba(255, 255, 255, 0.78);
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-radius: 30px;
        }

        .hero-panel { padding: 40px; }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(76, 181, 174, 0.14);
            color: var(--teal-dark);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .eyebrow::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--teal);
            box-shadow: 0 0 0 6px rgba(76, 181, 174, 0.14);
        }

        .hero h1 {
            font-size: clamp(2.4rem, 4.6vw, 3.9rem);
            line-height: 1.03;
            color: var(--navy);
            max-width: 18ch;
            margin-bottom: 18px;
        }

        .hero p {
            color: var(--text-gray);
            font-size: 1.05rem;
            max-width: 62ch;
        }

        .hero-points {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 24px;
        }

        .hero-pill {
            display: inline-flex;
            align-items: center;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(23, 38, 52, 0.06);
            color: var(--navy-soft);
            font-size: 0.92rem;
            font-weight: 600;
        }

        .toc-panel {
            padding: 28px;
            position: sticky;
            top: 100px;
        }

        .toc-panel h2 {
            font-size: 1.65rem;
            color: var(--navy);
            margin-bottom: 8px;
        }

        .toc-panel p {
            color: var(--text-gray);
            font-size: 0.94rem;
            margin-bottom: 18px;
        }

        .toc-list {
            list-style: none;
            display: grid;
            gap: 10px;
        }

        .toc-list a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 13px 16px;
            border-radius: 16px;
            background: rgba(23, 38, 52, 0.05);
            color: var(--navy);
            text-decoration: none;
            font-weight: 600;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .toc-list a:hover {
            transform: translateX(2px);
            background: rgba(76, 181, 174, 0.14);
        }

        .toc-list a span {
            font-size: 0.78rem;
            color: var(--text-light);
            font-weight: 700;
            letter-spacing: 0.06em;
        }

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

        .doc-main {
            display: grid;
            gap: 20px;
        }

        .section-panel {
            padding: 34px;
            scroll-margin-top: 108px;
        }

        .section-kicker {
            display: inline-block;
            margin-bottom: 14px;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--teal-dark);
        }

        .section-panel h2 {
            font-size: 2.1rem;
            line-height: 1.1;
            color: var(--navy);
            margin-bottom: 10px;
        }

        .section-panel h3 {
            font-size: 1.35rem;
            color: var(--navy);
            margin: 26px 0 8px;
        }

        .section-panel > p,
        .section-panel li,
        .section-panel .step-note {
            color: var(--text-gray);
        }

        .section-panel > p { margin-bottom: 18px; }

        .section-panel ul.bullets {
            list-style: none;
            display: grid;
            gap: 10px;
            margin: 6px 0 8px;
        }

        .section-panel ul.bullets li {
            position: relative;
            padding-left: 20px;
        }

        .section-panel ul.bullets li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.72em;
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--teal);
        }

        .steps {
            counter-reset: epcs-step;
            list-style: none;
            display: grid;
            gap: 14px;
        }

        .steps li {
            position: relative;
            padding: 18px 18px 18px 72px;
            border: 1px solid var(--border);
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.78);
        }

        .steps li::before {
            counter-increment: epcs-step;
            content: counter(epcs-step);
            position: absolute;
            left: 18px;
            top: 18px;
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: var(--navy);
            color: var(--white);
            font-weight: 700;
            font-size: 0.96rem;
        }

        .steps strong {
            display: block;
            margin-bottom: 6px;
            color: var(--navy);
            font-size: 1rem;
        }

        .callout {
            margin-top: 20px;
            padding: 18px 20px;
            border-radius: 22px;
            background: rgba(76, 181, 174, 0.1);
            border: 1px solid rgba(76, 181, 174, 0.18);
        }

        .callout.warn {
            background: var(--amber-bg);
            border-color: rgba(201, 130, 27, 0.28);
        }

        .callout strong { color: var(--navy); }

        .app-downloads {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .app-download-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 15px;
            border-radius: 999px;
            background: var(--navy);
            color: var(--white);
            font-size: 0.9rem;
            font-weight: 700;
            text-decoration: none;
        }

        .app-download-link:hover {
            background: var(--navy-soft);
        }

        .app-download-link:focus-visible {
            outline: 3px solid rgba(76, 181, 174, 0.42);
            outline-offset: 3px;
        }

        .note-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            margin-top: 20px;
        }

        .note-box {
            padding: 18px;
            border-radius: 22px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.76);
        }

        .note-box h3 {
            font-size: 1.2rem;
            color: var(--navy);
            margin: 0 0 8px;
        }

        .note-box p { font-size: 0.92rem; }

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

        .factor-card {
            padding: 18px 20px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(76, 181, 174, 0.10), rgba(255,255,255,0.6));
            border: 1px solid var(--border);
        }

        .factor-card .factor-tag {
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--teal-dark);
        }

        .factor-card h4 {
            margin: 6px 0 4px;
            font-size: 1.05rem;
            color: var(--navy);
            font-family: 'DM Serif Display', serif;
            font-weight: 400;
        }

        .factor-card p { margin: 0; font-size: 0.9rem; color: var(--text-gray); }

        .tab-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 14px 0 6px;
        }

        .tab-row span {
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(76, 181, 174, 0.12);
            color: var(--teal-dark);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .rules-table-wrap {
            margin-top: 18px;
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            background: rgba(255,255,255,0.82);
        }

        table.rules {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }

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

        table.rules thead th {
            background: rgba(23, 38, 52, 0.05);
            color: var(--navy);
            font-weight: 700;
            font-size: 0.78rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        table.rules tbody tr:last-child td { border-bottom: none; }
        table.rules td code { font-weight: 700; color: var(--navy); }
        table.rules td.rule-what { color: var(--text-gray); }

        .sev {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            white-space: nowrap;
        }

        .sev.critical { background: var(--red-bg); color: var(--red); }
        .sev.high { background: var(--amber-bg); color: var(--amber); }
        .sev.medium { background: rgba(76, 181, 174, 0.14); color: var(--teal-dark); }

        .sidebar {
            display: grid;
            gap: 18px;
            position: sticky;
            top: 100px;
        }

        .summary-card,
        .support-card { padding: 24px; }

        .summary-card h3,
        .support-card h3 {
            font-size: 1.4rem;
            color: var(--navy);
            margin-bottom: 12px;
        }

        .summary-card ul,
        .support-card ul {
            list-style: none;
            display: grid;
            gap: 12px;
        }

        .summary-card li,
        .support-card li {
            position: relative;
            padding-left: 18px;
            color: var(--text-gray);
            font-size: 0.92rem;
        }

        .summary-card li::before,
        .support-card li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.72em;
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--coral);
        }

        .support-card .support-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding: 11px 16px;
            border-radius: 999px;
            background: var(--navy);
            color: var(--white);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
        }

        a.inline-link {
            color: var(--teal-dark);
            font-weight: 700;
            text-decoration: none;
        }

        a.inline-link:hover { text-decoration: underline; }

        code {
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 0.9em;
            background: rgba(23, 38, 52, 0.06);
            border-radius: 8px;
            padding: 2px 6px;
        }

        .lead-note {
            margin-top: 4px;
            padding: 16px 18px;
            border-radius: 18px;
            background: var(--coral-light);
            border: 1px solid rgba(242, 160, 154, 0.32);
            font-size: 0.92rem;
            color: var(--text-gray);
        }

        @media (max-width: 980px) {
            .hero,
            .doc-grid,
            .note-grid,
            .factor-grid {
                grid-template-columns: 1fr;
            }

            .toc-panel,
            .sidebar { position: static; }

            .hero-panel,
            .toc-panel,
            .section-panel,
            .summary-card,
            .support-card { padding: 26px; }
        }

        @media (max-width: 600px) {
            .doc-shell { padding: 112px 16px 72px; }
            .hero h1 { font-size: 2.3rem; }
            .steps li { padding: 70px 16px 16px; }
            .steps li::before { left: 16px; top: 16px; }
            .rules-table-wrap { overflow-x: auto; }
            table.rules { min-width: 560px; }
        }
    