        /* ===== LOCAL CSS VARIABLES ===== */
        :root {
            --color-cta:           #F97316;
            --color-cta-hover:     #EA580C;
            --color-success:       #16A34A;
            --color-success-bg:    #DCFCE7;
            --color-warning:       #EAB308;
            --color-warning-bg:    #FEF9C3;
            --color-border-light:  #F1F5F9;
        }
        [data-theme="dark"] {
            --color-cta:           #FB923C;
            --color-cta-hover:     #F97316;
            --color-success:       #4ADE80;
            --color-success-bg:    rgba(22,163,74,0.08);
            --color-warning:       #FACC15;
            --color-warning-bg:    rgba(234,179,8,0.08);
            --color-border-light:  #1E293B;
        }

        /* ===== HERO ===== */
        .calc-hero {
            background: var(--color-primary);
            color: #fff;
            padding: 2.5rem 1.5rem 2rem;
            text-align: center;
        }
        .calc-hero h1 {
            font-size: clamp(1.5rem, 4vw, 2.25rem);
            margin: 0 0 0.5rem;
            font-weight: 800;
        }
        .calc-hero p {
            opacity: 0.85;
            max-width: 600px;
            margin: 0 auto 1.25rem;
            font-size: 1rem;
            line-height: 1.6;
        }
        .hero-callout {
            display: inline-block;
            background: rgba(249,115,22,0.15);
            border: 1px solid rgba(249,115,22,0.4);
            border-radius: 10px;
            padding: 0.75rem 1.25rem;
            font-size: 0.9rem;
            line-height: 1.5;
            max-width: 600px;
            text-align: left;
        }
        .hero-callout strong {
            color: #FB923C;
            display: block;
            margin-bottom: 0.2rem;
            font-size: 0.95rem;
        }

        /* ===== RANK TOGGLE ===== */
        .rank-toggle-wrap {
            display: flex;
            justify-content: center;
            gap: 0;
            margin: 1.5rem auto 0;
        }
        .rank-btn {
            background: rgba(255,255,255,0.12);
            color: rgba(255,255,255,0.75);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 0.6rem 2rem;
            font-size: 1rem;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.15s;
        }
        .rank-btn:first-child { border-radius: 8px 0 0 8px; }
        .rank-btn:last-child  { border-radius: 0 8px 8px 0; }
        .rank-btn.active {
            background: #fff;
            color: var(--color-primary);
            border-color: #fff;
        }

        /* ===== MAIN LAYOUT ===== */
        .calc-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: 1.5rem 1.25rem 6rem;
        }

        /* ===== ACCORDION SECTIONS ===== */
        .promo-section {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 14px;
            margin-bottom: 1rem;
            overflow: hidden;
        }
        .section-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s;
        }
        .section-header:hover {
            background: var(--color-bg);
        }
        .section-icon {
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        .section-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--color-text);
            flex: 1;
        }
        .section-subtitle {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--color-text-light);
            white-space: nowrap;
        }
        .section-arrow {
            color: var(--color-text-light);
            font-size: 0.85rem;
            transition: transform 0.2s;
            flex-shrink: 0;
        }
        .section-header[aria-expanded="true"] .section-arrow {
            transform: rotate(180deg);
        }
        .section-body {
            display: none;
            padding: 0 1.25rem 1.25rem;
        }
        .section-body.open {
            display: block;
        }

        /* ===== PROGRESS BAR ===== */
        .progress-wrap {
            margin: 0.75rem 0 0;
        }
        .progress-bar-bg {
            width: 100%;
            height: 6px;
            background: var(--color-border);
            border-radius: 3px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s, background 0.3s;
            background: var(--color-warning);
        }
        .progress-bar-fill.maxed {
            background: var(--color-success);
        }
        .progress-bar-fill.empty {
            background: var(--color-border);
        }

        /* ===== FORM ELEMENTS ===== */
        .field-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.85rem;
            flex-wrap: wrap;
        }
        .field-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-text);
            min-width: 120px;
        }
        .field-label-full {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-text);
            width: 100%;
            margin-bottom: 0.35rem;
        }
        .field-hint {
            font-size: 0.78rem;
            color: var(--color-text-light);
            margin-top: -0.5rem;
            margin-bottom: 0.75rem;
        }
        .field-input, .field-select {
            font-size: 0.875rem;
            font-family: inherit;
            color: var(--color-text);
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 0.55rem 0.75rem;
            outline: none;
            transition: border-color 0.15s;
        }
        .field-input:focus, .field-select:focus {
            border-color: var(--color-accent);
        }
        .field-input[type="number"] {
            width: 80px;
            text-align: center;
        }
        .field-input[type="range"] {
            flex: 1;
            min-width: 120px;
            accent-color: var(--color-accent);
        }
        .field-select {
            cursor: pointer;
        }
        .conversion-display {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--color-cta);
            white-space: nowrap;
        }

        /* ===== COUNTER (for awards) ===== */
        .counter-grid {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .counter-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .counter-name {
            font-size: 0.82rem;
            color: var(--color-text);
            flex: 1;
            min-width: 140px;
        }
        .counter-pts {
            font-size: 0.72rem;
            color: var(--color-text-light);
            font-weight: 600;
            white-space: nowrap;
        }
        .counter-controls {
            display: flex;
            align-items: center;
            gap: 0;
            flex-shrink: 0;
        }
        .counter-btn {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 700;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            color: var(--color-text);
            cursor: pointer;
            transition: background 0.1s;
            font-family: inherit;
        }
        .counter-btn:first-child { border-radius: 6px 0 0 6px; }
        .counter-btn:last-child  { border-radius: 0 6px 6px 0; }
        .counter-btn:hover { background: var(--color-border); }
        .counter-val {
            width: 34px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--color-text);
            background: var(--color-card);
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
        }

        /* ===== BADGE CHECKBOXES ===== */
        .badge-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 0.4rem;
        }
        .badge-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.82rem;
            color: var(--color-text);
            cursor: pointer;
            padding: 0.3rem 0;
        }
        .badge-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--color-accent);
            cursor: pointer;
            flex-shrink: 0;
        }
        .badge-pts {
            font-size: 0.72rem;
            color: var(--color-text-light);
            font-weight: 600;
        }

        /* ===== SUB-SECTION DIVIDER ===== */
        .sub-divider {
            border: none;
            border-top: 1px solid var(--color-border);
            margin: 1rem 0;
        }
        .sub-label {
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--color-text-light);
            margin: 0 0 0.65rem;
        }

        /* ===== DEGREE CHECKBOX ===== */
        .checkbox-field {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.85rem;
            padding: 0.65rem 0.85rem;
            background: var(--color-success-bg);
            border: 1px solid rgba(22,163,74,0.2);
            border-radius: 8px;
            cursor: pointer;
        }
        [data-theme="dark"] .checkbox-field {
            background: rgba(22,163,74,0.08);
            border-color: rgba(74,222,128,0.15);
        }
        .checkbox-field input[type="checkbox"] {
            width: 18px; height: 18px;
            flex-shrink: 0;
            accent-color: var(--color-success);
            cursor: pointer;
        }
        .checkbox-field label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-text);
            cursor: pointer;
        }

        /* ===== STICKY RESULTS BAR ===== */
        .results-bar {
            position: fixed;
            bottom: 60px; /* above tab bar */
            left: 0;
            right: 0;
            background: var(--color-primary);
            color: #fff;
            padding: 0.75rem 1.25rem;
            z-index: 90;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
        }
        .results-bar-total {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }
        .results-bar-total small {
            font-size: 0.85rem;
            opacity: 0.7;
            font-weight: 600;
        }
        .results-bar-cats {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .cat-pill {
            font-size: 0.68rem;
            font-weight: 600;
            background: rgba(255,255,255,0.15);
            border-radius: 6px;
            padding: 0.25rem 0.5rem;
            white-space: nowrap;
        }

        /* ===== RESULTS DETAIL SECTION ===== */
        .results-detail {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 14px;
            padding: 1.5rem 1.25rem;
            margin-bottom: 1rem;
        }
        .results-detail h2 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-text);
            margin: 0 0 1rem;
        }
        .cat-breakdown {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        .cat-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .cat-row-label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--color-text);
            min-width: 130px;
        }
        .cat-row-bar {
            flex: 1;
            height: 10px;
            background: var(--color-border);
            border-radius: 5px;
            overflow: hidden;
        }
        .cat-row-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.3s, background 0.3s;
        }
        .cat-row-fill.green  { background: var(--color-success); }
        .cat-row-fill.yellow { background: var(--color-warning); }
        .cat-row-fill.gray   { background: #94A3B8; }
        .cat-row-value {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--color-text);
            min-width: 70px;
            text-align: right;
        }

        /* Points Left on the Table */
        .points-left {
            margin-top: 1rem;
            padding: 1rem;
            background: var(--color-warning-bg);
            border: 1px solid rgba(234,179,8,0.3);
            border-radius: 10px;
        }
        [data-theme="dark"] .points-left {
            background: rgba(234,179,8,0.06);
            border-color: rgba(250,204,21,0.15);
        }
        .points-left h3 {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--color-text);
            margin: 0 0 0.5rem;
        }
        .points-left-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        .points-left-list li {
            font-size: 0.82rem;
            color: var(--color-text-light);
        }
        .points-left-list li strong {
            color: var(--color-cta);
        }

        /* ===== SAVE/RESET BUTTONS ===== */
        .action-row {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        .btn-action {
            flex: 1;
            padding: 0.75rem 1rem;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            transition: background 0.15s, transform 0.1s;
            text-align: center;
        }
        .btn-action:active { transform: scale(0.98); }
        .btn-save {
            background: var(--color-cta);
            color: #fff;
            border: none;
        }
        .btn-save:hover { background: var(--color-cta-hover); }
        .btn-reset {
            background: var(--color-bg);
            color: var(--color-text);
            border: 1px solid var(--color-border);
        }
        .btn-reset:hover { background: var(--color-border); }
        .btn-print {
            background: var(--color-accent);
            color: #fff;
            border: none;
        }
        .btn-print:hover { opacity: 0.9; }

        /* ===== DISCLAIMER ===== */
        .calc-disclaimer {
            font-size: 0.78rem;
            color: var(--color-text-light);
            line-height: 1.55;
            text-align: center;
            padding: 1rem 0 0;
            margin-bottom: 1rem;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 600px) {
            .results-bar-cats { display: none; }
            .badge-grid { grid-template-columns: 1fr; }
            .cat-row-label { min-width: 90px; font-size: 0.75rem; }
        }

        /* ===== PRINT STYLES ===== */
        @media print {
            .bottom-tab-bar, .mobile-overlay, .results-bar, .action-row,
            .header, .rank-toggle-wrap, .calc-hero { display: none !important; }
            .promo-section { break-inside: avoid; }
            .section-body { display: block !important; }
            body { padding: 0; font-size: 11pt; }
            .calc-wrapper { padding: 0; max-width: 100%; }
        }
