 /* --- Theme Configuration --- */
        :root {
            /* Main Brand Colors */
            --main-color: #1A48EE;
            --secondary-color: #008AFF;
            --tertiary-color: #2c20E6;
            
            /* Backgrounds */
            --secondary-background: #f9f9f9;
            --main-background: #e5f3ff;
            --color-white: #ffffff;
            
            /* Feedback Colors (Optimized for Contrast) */
            --color-error-dark: #b91c1c; 
            --color-green: #15803d;      
            --color-green-dark: #064e3b;
            --color-light-green: #dcfce7;
            
            /* Grays (Strictly WCAG AA Compliance for Backgrounds) */
            --border-color: #94a3b8;      
            --color-gray: #111827;        /* Primary Text: High Contrast */
            --color-dark-gray: #374151;  /* Secondary Text: >7:1 ratio on white */
            --color-muted-text: #4b5563;  /* Small Text: >4.5:1 ratio on blue and white */
            
            /* Spacing & Radius */
            --radius-md: 8px;
            --radius-lg: 12px;
            --space-md: 16px;
            --space-lg: 24px;
        }

        #main.wrapper {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--main-background);
            color: var(--color-gray);
            line-height: 1.5;
            min-height: 80vh;
            padding-top: 20px;
            padding-bottom: 60px;
            overflow-x: hidden;
        }

        .gps-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 var(--space-md);
        }

        .gps-tool-header { text-align: center; margin-bottom: 40px; }
        .gps-title-group { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
        .gps-title { font-size: 2.2rem; font-weight: 800; margin: 0; color: #000000; letter-spacing: -0.02em; }
        .gps-subtitle { color: var(--color-dark-gray); margin: 0 auto; font-size: 1.1rem; max-width: 700px; }

        .gps-card {
            background: var(--color-white);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            margin-bottom: var(--space-md);
        }
        .gps-card.dark { background: var(--tertiary-color); color: var(--color-white); border: none; }
        .gps-card.dark>h3{ color: var(--color-white); }
        
        .gps-grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
        @media (min-width: 768px) { .gps-grid-4 { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .gps-grid-4 { grid-template-columns: repeat(4, 1fr); } }

        /* Main Layout Grid for Results Section */
        .gps-main-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-lg);
            align-items: start;
        }
        @media (min-width: 992px) {
            .gps-main-layout { 
                grid-template-columns: 1.8fr 1fr; 
            }
        }

        .gps-summary-card { padding: var(--space-md); border-left: 4px solid var(--main-color); }
        .gps-summary-card.green { border-left-color: var(--color-green); background: var(--color-light-green); }
        .gps-summary-card.blue { border-left-color: var(--secondary-color); }
        .gps-summary-card.tertiary { border-left-color: var(--tertiary-color); }
        .gps-summary-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--color-dark-gray); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
        .gps-summary-value { font-size: 1.4rem; font-weight: 700; color: var(--main-color); }
        .gps-summary-sub { font-size: 0.85rem; color: var(--color-dark-gray); }

        .gps-form-group { display: flex; flex-direction: column; gap: 6px; }
        .gps-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--color-gray); }
        .gps-input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
        .gps-input-prefix, .gps-input-suffix { position: absolute; color: var(--color-gray); font-weight: 600; pointer-events: none; z-index: 2; }
        .gps-input-prefix { left: 12px; }
        .gps-input-suffix { right: 12px; }
        .gps-input { width: 100%; padding: 10px 16px; padding-left: 28px; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; color: #000; background: var(--color-white); }
        .gps-input.no-prefix { padding-left: 16px; }

        /* --- Responsive Table Styling --- */
        .gps-table-wrapper { 
            overflow-x: auto; 
            border: 1px solid var(--border-color); 
            border-radius: var(--radius-md); 
            background: white; 
        }
        .gps-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
        .gps-table th { background: var(--secondary-background); padding: 12px 16px; font-size: 0.8rem; text-transform: uppercase; color: var(--color-gray); border-bottom: 1px solid var(--border-color); font-weight: 800; }
        .gps-table td { padding: 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--color-gray); }
        .gps-table-input, .gps-table-input-sm { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.95rem; color: #000; background-color: var(--color-white); }
        
        .gps-table-label {
            display: block;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--color-muted-text);
            margin-bottom: 4px;
        }

        /* Mobile specific layout transformation */
        @media (max-width: 767px) {
            .gps-table-wrapper {
                border: none;
                background: transparent;
                overflow-x: hidden;
            }
            .gps-table, .gps-table thead, .gps-table tbody, .gps-table th, .gps-table td, .gps-table tr {
                display: block;
                width: 100% !important;
            }
            .gps-table thead {
                display: none;
            }
            .gps-table tr {
                background: var(--color-white);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-md);
                padding: var(--space-md);
                margin-bottom: var(--space-md);
                box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            }
            .gps-table td {
                padding: 8px 0;
                border: none;
                border-bottom: 1px solid var(--secondary-background);
            }
            .gps-table td:last-child {
                border-bottom: none;
                padding-top: 12px;
                text-align: right;
            }
            .gps-table-input, .gps-table-input-sm {
                max-width: 100%;
                box-sizing: border-box;
            }
        }

        .gps-tabs { display: flex; gap: var(--space-lg); border-bottom: 2px solid var(--border-color); margin-bottom: var(--space-lg); }
        .gps-tab-btn { background: none; border: none; padding-bottom: 12px; font-size: 1rem; font-weight: 700; color: var(--color-dark-gray); cursor: pointer; border-bottom: 3px solid transparent; }
        .gps-tab-btn.active { color: var(--main-color); border-bottom-color: var(--main-color); }
        .gps-tab-btn:disabled { color: var(--color-muted-text); cursor: not-allowed; border-bottom-color: transparent; }

        .gps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
        .gps-btn-primary { background: var(--main-color); color: white; }
        .gps-btn-primary:hover { transform: translateY(-1px); background: var(--tertiary-color); }
        .gps-btn-secondary { background: white; border: 2px solid var(--border-color); color: var(--color-gray); }
        .gps-btn-danger { background: #FEF2F2; color: var(--color-error-dark); border: 2px solid #FECACA; }
        .gps-icon-btn { background: none; border: 1px solid transparent; color: var(--color-dark-gray); cursor: pointer; padding: 8px; border-radius: 4px; }
        .gps-icon-btn:hover { color: var(--color-error-dark); background: #FEF2F2; }

        .gps-list-item { position: relative; padding: var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: white; margin-bottom: var(--space-md); }
        .gps-list-item.highlight { border-color: var(--main-color); box-shadow: 0 0 0 2px var(--main-color); }
        .gps-badge-priority { position: absolute; top: -12px; right: -10px; background: var(--main-color); color: white; font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
        .gps-rank-circle { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; color: var(--color-gray); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-right: 12px; }
        .gps-list-item.highlight .gps-rank-circle { background: var(--main-color); color: white; }

        .gps-action-plan-highlight { color: #ffffff; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
        .gps-footer-text { text-align: center; font-size: 0.85rem; color: var(--color-dark-gray); margin-top: 30px; }
        
        .animate-in { animation: fadeIn 0.4s ease-out forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .justify-end { justify-content: flex-end; }
        .hidden { display: none !important; }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }