h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color, #1e293b);
    margin-bottom: 25px;
    font-weight: 800;
}

.description {
    margin-bottom: 30px;
    color: #64748b;
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.sim-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 20px 0 !important;
    overflow: visible !important;
}
.container { margin: 20px; }
:root {
            --primary-color: #3b82f6;
            --primary-hover: #2563eb;
            --bg-color: #f1f5f9;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            }

        .card {
            background: var(--card-bg);
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 24px;
            flex-direction: column;
            gap: 20px;
        }

        .header-deprecated {
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 16px;
            margin-bottom: 8px;
        }

        .header-deprecated {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-main);
            margin: 0;
        }

        .header-deprecated {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .description {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-main);
            background: #f8fafc;
            padding: 16px;
            border-radius: 8px;
            border-left: 4px solid var(--primary-color);
        }

        #total {
            width: 420px;
            height: 420px;
            position: relative;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            flex-shrink: 0;
        }

        #canvas {
            width: 420px;
            height: 420px;
        }

/* Mobile full-width adaptation */
@media (max-width: 600px) {
    .container { margin: 0 !important; padding: 0 !important; }
    .card { padding: 15px 10px !important; border-radius: 0 !important; }
    .sim-wrapper { margin: 10px 0 !important; }
}

        .footer-info {
            margin-top: 12px;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Responsive Scaling */
        @media (max-width: 460px) {
            #total { /* scale removed */ margin-bottom: -84px; }
        }
        @media (max-width: 380px) {
            #total { /* scale removed */ margin-bottom: -126px; }
        }
