        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
            margin: 0;
            padding: 20px;
            min-height: 100vh;
        }
        h1 {
            font-family: 'Lora', serif;
            color: #1a3c5e;
            text-align: center;
            margin-bottom: 20px;
        }
        form {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin: 0 auto;
        }
        label {
            font-weight: 700;
            color: #333;
        }
        input, textarea {
            width: 100%;
            padding: 8px;
            margin: 8px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-family: 'Roboto', sans-serif;
        }
        button {
            background-color: #1a3c5e;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-family: 'Roboto', sans-serif;
            font-weight: 700;
        }
        button:hover {
            background-color: #2a5d8e;
        }
        #tracker {
            margin: 20px auto;
            max-width: 1123px;
            text-align: center;
        }
        #ad-container {
            margin: 20px auto;
            text-align: center;
            max-width: 728px;
        }
        #trackerInsights {
            max-width: 800px;
            margin: 20px auto;
            padding: 24px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }
        #trackerInsights h3 {
            font-family: 'Lora', serif;
            color: #1a3c5e;
            margin: 0 0 16px 0;
            font-size: 1.3rem;
        }
        .insights-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .insight-card {
            padding: 16px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #2a5d8e;
        }
        .insight-card h4 {
            margin: 0 0 10px 0;
            color: #1a3c5e;
            font-size: 0.95rem;
        }
        .insight-card ul {
            margin: 0;
            padding-left: 18px;
        }
        .insight-card li {
            margin-bottom: 6px;
            line-height: 1.5;
            font-size: 0.9rem;
            color: #374151;
        }
        .insight-card a {
            color: #2a5d8e;
            text-decoration: none;
        }
        .insight-card a:hover {
            text-decoration: underline;
        }
        .insight-fact {
            margin-top: 16px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #e0f7fa, #f0f4ff);
            border-radius: 8px;
            font-size: 0.9rem;
            color: #374151;
            line-height: 1.5;
        }
        .insight-fact strong {
            color: #1a3c5e;
        }
        @media print {
            @page {
                size: landscape;
                margin: 0.5cm;
            }

            html, body {
                margin: 0 !important;
                padding: 0 !important;
                background: none !important;
                width: 100%;
                height: 100%;
            }

            /* Hide all non-tracker content */
            nav, h1, form, #actionBtns, #shareBtns, #trackerGallery, #onboardingOverlay, #ad-container, .ads,
            #recentTrackers, .content-section, #trackerInsights,
            footer, .skip-link, div[style*="background: #f0f8ff"] {
                display: none !important;
            }

            /* Keep main visible but hide its children except the tracker */
            #main-content > *:not(#tracker) {
                display: none !important;
            }

            /* Center the tracker on the printed page */
            #tracker {
                display: flex !important;
                justify-content: center;
                align-items: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                margin: 0 !important;
                padding: 0 !important;
                page-break-inside: avoid;
            }

            #tracker svg {
                width: auto !important;
                height: auto !important;
                max-width: 100vw;
                max-height: 100vh;
            }
        }
        nav {
            background: #1a3c5e;
            padding: 1rem 0;
            margin-bottom: 2rem;
        }
        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }
        nav li {
            margin: 0 1rem;
        }
        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
        }
        nav a:hover {
            text-decoration: underline;
        }
        .preset-btns {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin: 8px 0;
        }
        .preset-btn {
            background: #fff;
            color: #1a3c5e;
            border: 2px solid #1a3c5e;
            padding: 6px 14px;
            font-size: 13px;
            border-radius: 20px;
            cursor: pointer;
            font-family: 'Roboto', sans-serif;
            font-weight: 500;
        }
        .preset-btn:hover {
            background: #e0f7fa;
        }
        .preset-btn.active {
            background: #1a3c5e;
            color: #fff;
        }
        .theme-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            vertical-align: middle;
            margin-right: 2px;
        }
        .preset-btn.active .theme-dot {
            border: 1px solid #fff;
        }
        #customColorPanel {
            margin: 8px 0;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }
        .color-picker-row {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-bottom: 8px;
        }
        .color-picker-group {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .color-picker-group label {
            font-size: 13px;
            font-weight: 500;
        }
        .color-picker-group input[type="color"] {
            width: 36px;
            height: 28px;
            border: 1px solid #ccc;
            border-radius: 4px;
            cursor: pointer;
            padding: 0;
        }
        .color-preview {
            display: flex;
            gap: 4px;
            align-items: center;
        }
        .color-preview-dot {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1px solid rgba(0,0,0,0.1);
        }
        .color-preview-label {
            font-size: 11px;
            color: #6b7280;
            margin-left: 4px;
        }
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: #1a3c5e;
            color: #fff;
            padding: 8px 16px;
            z-index: 100;
            font-size: 14px;
            text-decoration: none;
        }
        .skip-link:focus {
            top: 0;
        }
        a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
            outline: 3px solid #2a5d8e;
            outline-offset: 2px;
        }
        .preset-btn:focus-visible {
            outline: 3px solid #2a5d8e;
            outline-offset: 2px;
        }
        #actionBtns {
            flex-wrap: wrap;
        }
        #recentTrackers {
            max-width: 600px;
            margin: 20px auto;
            background: #fff;
            padding: 16px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        #recentTrackers h3 {
            margin: 0 0 12px 0;
            color: #1a3c5e;
            font-size: 16px;
        }
        .history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }
        .history-item:last-of-type {
            border-bottom: none;
        }
        .history-info {
            font-size: 14px;
            color: #333;
        }
        .history-info .history-meta {
            font-size: 12px;
            color: #888;
        }
        .history-load-btn {
            background: #1a3c5e;
            color: #fff;
            border: none;
            padding: 5px 14px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            font-family: 'Roboto', sans-serif;
        }
        .history-load-btn:hover {
            background: #2a5d8e;
        }
        .history-clear {
            display: inline-block;
            margin-top: 10px;
            font-size: 12px;
            color: #888;
            cursor: pointer;
            background: none;
            border: none;
            text-decoration: underline;
            padding: 0;
            font-family: 'Roboto', sans-serif;
        }
        .history-clear:hover {
            color: #b91c1c;
        }
        .content-section {
            max-width: 800px;
            margin: 40px auto;
            padding: 0 20px;
        }
        .content-section h2 {
            font-family: 'Lora', serif;
            color: #1a3c5e;
            font-size: 1.6rem;
            margin-bottom: 16px;
        }
        .content-section p {
            color: #333;
            line-height: 1.7;
            margin-bottom: 14px;
            font-size: 15px;
        }
        .content-section cite {
            font-style: normal;
            color: #555;
            font-size: 13px;
        }
        .how-steps {
            display: flex;
            gap: 24px;
            margin: 24px 0;
        }
        .how-step {
            flex: 1;
            text-align: center;
            background: #fff;
            padding: 20px 16px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .how-step .step-num {
            display: inline-block;
            width: 36px;
            height: 36px;
            line-height: 36px;
            border-radius: 50%;
            background: #1a3c5e;
            color: #fff;
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 10px;
        }
        .how-step h3 {
            color: #1a3c5e;
            font-size: 15px;
            margin: 8px 0 6px;
        }
        .how-step p {
            font-size: 13px;
            color: #555;
            margin: 0;
            line-height: 1.5;
        }
        .blog-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin: 24px 0;
        }
        .blog-card {
            background: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .blog-card h3 {
            font-size: 15px;
            margin: 0 0 8px;
        }
        .blog-card h3 a {
            color: #1a3c5e;
            text-decoration: none;
        }
        .blog-card h3 a:hover {
            text-decoration: underline;
        }
        .blog-card p {
            font-size: 13px;
            color: #555;
            margin: 0 0 8px;
            line-height: 1.5;
        }
        .blog-card .read-time {
            font-size: 12px;
            color: #888;
        }
        *, *::before, *::after {
            box-sizing: border-box;
        }
        #tracker svg {
            max-width: 100%;
            height: auto;
        }
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            h1 {
                font-size: 1.5rem;
            }
            form {
                padding: 15px;
            }
            nav li {
                margin: 0.25rem 0.5rem;
            }
            .preset-btn {
                padding: 5px 10px;
                font-size: 12px;
            }
            .color-picker-row {
                flex-direction: column;
                gap: 8px;
            }
            .insights-grid {
                grid-template-columns: 1fr;
            }
            #actionBtns button {
                flex: 1 1 calc(50% - 10px);
                min-width: 140px;
                font-size: 13px;
                padding: 8px 10px;
            }
            .how-steps {
                flex-direction: column;
                gap: 14px;
            }
            .blog-cards {
                grid-template-columns: 1fr;
            }
        }
        footer {
            text-align: center;
            padding: 2rem;
            background: #1a3c5e;
            color: white;
            margin-top: 2rem;
        }
        footer a {
            color: #e0f7fa;
            text-decoration: none;
        }
