<style>
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; margin: 0; padding: 20px; }
    .container { max-width: 1400px; width: 100%; margin: 0 auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    h1 { text-align: center; color: #2c3e50; margin-bottom: 10px; }
    h1 + p { text-align: center; color: #6c757d; margin-top: 0; margin-bottom: 30px; }
    .presets-section { background-color: #fdfdfd; border: 1px solid #e0e0e0; padding: 20px; border-radius: 8px; margin-bottom: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
    .presets-section input, .presets-section select, .presets-section button { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 0.95rem; }
    .presets-section button { cursor: pointer; background-color: #6c757d; color: white; border-color: #6c757d; }
    .presets-section button.save-btn { background-color: #28a745; border-color: #28a745;}
    .presets-section button.delete-btn { background-color: #dc3545; border-color: #dc3545;}
    .comparison-section { background-color: #eaf5ff; border: 1px solid #bde0ff; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
    .comparison-controls { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
    .comparison-controls > div { display: flex; flex-direction: column; align-items: center; }
    .comparison-controls label { font-weight: bold; margin-bottom: 5px; }
    .comparison-controls select { min-width: 200px; padding: 10px; border-radius: 5px; }
    #compare-button { padding: 12px 25px; font-size: 1.1rem; font-weight: bold; color: #fff; background-color: #007bff; border: none; border-radius: 5px; cursor: pointer; }
    .inputs-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 20px; }
    @media (max-width: 1100px) { .inputs-container { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 768px) { .inputs-container { grid-template-columns: 1fr; } }
    .input-column { padding: 20px; border-radius: 8px; background-color: #fdfdfd; border: 1px solid #e0e0e0; }
    h2 { border-bottom: 2px solid #3498db; padding-bottom: 10px; margin-top: 0; color: #3498db; font-size: 1.5rem; }
    h3 { margin-top: 25px; color: #34495e; }
    .form-group { margin-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; }
    .form-group label { flex: 1 1 200px; font-weight: 600; margin-right: 15px; }
    .form-group .input-wrapper { flex: 1 1 150px; display: flex; align-items: center; }
    .form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
    .form-group .unit { margin-left: 10px; font-weight: 500; color: #555; }
    .form-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
    .form-actions button { padding: 15px 30px; font-size: 1.2rem; font-weight: bold; color: #fff; border: none; border-radius: 5px; cursor: pointer; }
    #calculate-button { background-color: #3498db; }
    .results-section { padding-top: 20px; border-top: 2px dashed #ccc; }
    #results-wrapper { margin-top: 20px; }
    #summary-verdicts { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
    .verdict-box { flex: 1; padding: 15px; border-radius: 8px; text-align: center; font-size: 1.2rem; font-weight: bold; min-width: 300px;}
    #comparison-table-container, #single-table-container { margin-bottom: 30px; }
    .results-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
    .results-table th, .results-table td { padding: 12px; text-align: right; border-bottom: 1px solid #ddd; }
    .results-table th { text-align: left; background-color: #f2f2f2; }
    .results-table .header-row th { text-align: center; font-size: 1.2rem; }
    .net-worth-row td { font-weight: bold; border-top: 2px solid #333; }
    .comparison-table { border-collapse: collapse; }
    .comparison-table th, .comparison-table td { border: 1px solid #ddd; }
    .comparison-table .header-row th { font-size: 1.2rem; }
    .highlight { background-color: #d4edda; font-weight: bold; }
    .chart-container { position: relative; min-height: 450px; }
    .positive { color: #27ae60; } .negative { color: #c0392b; }
    
    /* --- HINT/TOOLTIP STYLES --- */
    .hint-icon {
        display: inline-block;
        position: relative;
        margin-left: 5px;
        color: #007bff;
        cursor: pointer;
        font-weight: bold;
        font-family: serif;
        font-size: 0.9em;
    }
    .hint-text {
        visibility: hidden;
        width: 250px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 8px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -125px; /* Use half of the width to center */
        opacity: 0;
        transition: opacity 0.3s;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-size: 0.9rem;
        font-weight: normal;
    }
    .hint-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }
    .hint-icon:hover .hint-text {
        visibility: visible;
        opacity: 1;
    }
</style>