    /* Base Global Framework & Variable Tokens */
    .loan-calculator-wrapper {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        width: 100%;
        max-width: 1200px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    .calculator-introduction {
        background-color: #f8fafc;
        border-left: 4px solid #1e3a8a;
        padding: 16px 20px;
        border-radius: 0 8px 8px 0;
        margin-bottom: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .calculator-introduction p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #475569;
    }
    
    .loan-calculator-container {
        display: flex;
        align-items: stretch;
        gap: 30px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        padding: 30px;
        box-sizing: border-box;
    }

    .calculator-inputs {
        flex: 1.2;
        min-width: 0;
    }

    /* Scroll Responsive Panel Rules */
    .calculator-summary {
        flex: 1;
        min-width: 0;
    }
    
    .sticky-summary-content {
        position: -webkit-sticky;
        position: sticky;
        top: 24px; /* Pins panel dynamically as you scroll up or down */
        align-self: start;
    }

    .summary-inner-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
    }

    .loan-calculator-wrapper h2, .loan-calculator-wrapper h3 {
        margin-top: 0;
        margin-bottom: 24px;
        color: #0f172a;
        font-size: 1.25rem;
        font-weight: 700;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 12px;
    }

    .form-group {
        margin-bottom: 16px;
        position: relative;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
        font-size: 0.85rem;
        color: #475569;
    }

    .form-group select, .form-group input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        box-sizing: border-box;
        font-size: 0.95rem;
        color: #0f172a;
        background-color: #f8fafc;
        transition: all 0.2s ease;
    }

    .form-group select:focus, .form-group input:focus {
        outline: none;
        border-color: #2563eb;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    }

    .form-group input.input-error {
        border-color: #d97706;
        background-color: #fffbeb;
    }

    .alert-badge {
        background-color: #fef3c7;
        color: #92400e;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        margin-top: 6px;
        border-left: 3px solid #d97706;
        animation: fadeIn 0.2s ease-in-out;
    }

    .help-text {
        display: block;
        color: #64748b;
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .results-box {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .result-card {
        background: #f8fafc;
        padding: 14px 16px;
        border-radius: 8px;
        border-left: 4px solid #cbd5e1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .result-card.primary-card {
        border-left-color: #2563eb;
        background: #eff6ff;
    }

    .result-card.transparent-card {
        border-left: 4px solid #e2e8f0;
        background: transparent;
    }

    .result-label {
        font-size: 0.85rem;
        font-weight: 500;
        color: #475569;
    }

    .result-value {
        font-weight: 700;
        font-size: 1.05rem;
        color: #0f172a;
    }

    .result-value.primary {
        color: #2563eb;
        font-size: 1.25rem;
    }

    .schedule-actions {
        display: flex;
        gap: 12px;
        margin-top: auto;
    }

    .btn {
        padding: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
        text-align: center;
    }

    .btn-block {
        display: block;
        width: 100%;
    }

    .btn-primary {
        background: #2563eb;
        color: white;
    }

    .btn-primary:hover {
        background: #1d4ed8;
    }

    .btn-secondary {
        flex: 1;
        background: #e2e8f0;
        color: #334155;
    }

    .btn-secondary:hover:not([disabled]) {
        background: #cbd5e1;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .schedule-container {
        margin-top: 30px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        padding: 30px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .schedule-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        font-size: 0.9rem;
    }

    .schedule-table th, .schedule-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #e2e8f0;
    }

    .schedule-table th {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
    }

    .schedule-table tr:hover {
        background: #f8fafc;
    }

    .calculator-disclaimer-box {
        margin-top: 24px;
        background-color: #f1f5f9;
        border: 1px solid #e2e8f0;
        padding: 15px 20px;
        font-size: 0.825rem;
        line-height: 1.5;
        color: #64748b;
        text-align: justify;
        border-radius: 8px;
    }

    #compliance-calculator-container {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      max-width: 1200px;
      margin: 40px auto 20px auto;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid #e2e8f0;
      overflow: hidden;
    }
    .calc-header {
      background: #00dd49;
      color: #ffffff;
      padding: 20px 30px;
      text-align: left;
    }
    .calc-header h2 {
      margin: 0;
      font-size: 1.6rem;
      font-weight: 600;
    }
    .calc-header p {
      margin: 5px 0 0 0;
      font-size: 0.9rem;
      opacity: 0.85;
    }
    
    .calc-split-body {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 30px;
      padding: 30px;
    }
    
    .inputs-column {
        min-width: 0;
    }

    /* Scroll Responsive Right Column Rules */
    .results-column {
        min-width: 0;
    }
    
    .sticky-results-content {
        position: -webkit-sticky;
        position: sticky;
        top: 24px;
        align-self: start;
    }

    .calc-section-title {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #64748b;
      margin-top: 0;
      margin-bottom: 16px;
      border-bottom: 2px solid #f1f5f9;
      padding-bottom: 6px;
      font-weight: 700;
    }
    .calc-block {
      margin-bottom: 24px;
    }
    .calc-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    .calc-group {
      display: flex;
      flex-direction: column;
    }
    .calc-group.full-width {
      grid-column: span 2;
    }
    .calc-group label {
      font-size: 0.85rem;
      font-weight: 600;
      color: #475569;
      margin-bottom: 6px;
    }
    .calc-group input {
      padding: 10px 12px;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      font-size: 0.95rem;
      color: #0f172a;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .calc-group input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }
    .calc-group input[readonly] {
      background-color: #f8fafc;
      color: #1e293b;
      font-weight: 700;
      border-color: #e2e8f0;
    }
    .dashboard-panel {
      background: #f8fafc;
      border-radius: 10px;
      padding: 24px;
      border: 1px solid #e2e8f0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .result-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      font-size: 0.95rem;
      color: #475569;
      border-bottom: 1px dashed #e2e8f0;
    }
    .result-row:last-of-type {
      border-bottom: none;
    }
    .result-row span:last-child {
      font-weight: 600;
      color: #0f172a;
    }
    .result-row.total {
      font-weight: 700;
      font-size: 1.15rem;
      color: #0f172a;
      border-top: 2px solid #cbd5e1;
      border-bottom: 2px solid #cbd5e1;
      margin: 10px 0;
      padding: 14px 0;
    }
    .result-row.total span:last-child {
      font-size: 1.25rem;
      color: #1e3a8a;
    }
    #status-badge {
      display: block;
      text-align: center;
      padding: 16px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 1.2rem;
      margin-top: 20px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .status-pass {
      background-color: #dcfce7;
      color: #15803d;
      border: 1px solid #bbf7d0;
    }
    .status-fail {
      background-color: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Media Queries for Viewports and Devices */
    @media (max-width: 768px) {
        .loan-calculator-container {
            flex-direction: column;
            align-items: stretch;
            gap: 24px;
            padding: 20px;
        }
        .calc-split-body {
            grid-template-columns: 1fr;
            padding: 20px;
        }
        .schedule-actions {
            flex-direction: column;
        }
        /* Releases sticky properties on small devices to guarantee clear screen real estate */
        .sticky-summary-content, .sticky-results-content {
            position: static;
        }
    }

    @media print {
        body * {
            visibility: hidden;
        }
        #printableScheduleTable, #printableScheduleTable * {
            visibility: visible;
        }
        #printableScheduleTable {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            border: 1px solid #000;
        }
        .schedule-table th {
            background: #e2e8f0 !important;
            color: #000 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
    }