.tsc-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.tsc-chart-container {
    position: relative;
    width: 100%;
    height: 420px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Calculator */
.tsc-calculator {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tsc-calc-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tsc-calc-field {
    flex: 1;
    min-width: 160px;
}

.tsc-calc-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.tsc-calc-field input,
.tsc-calc-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tsc-calc-field input:focus,
.tsc-calc-field select:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
}

.tsc-calc-btn-wrap {
    flex: 0 0 auto;
    min-width: 140px;
}

#tsc-calculate {
    width: 100%;
    padding: 10px 24px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#tsc-calculate:hover {
    background: #43A047;
}

#tsc-calculate:active {
    background: #388E3C;
}

/* Results */
.tsc-results {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tsc-result-card {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.tsc-result-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.tsc-result-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tsc-result-pct {
    font-size: 16px;
    font-weight: 600;
}

.tsc-positive {
    color: #4CAF50;
}

.tsc-negative {
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .tsc-chart-container {
        height: 300px;
        padding: 10px;
    }

    .tsc-calculator {
        padding: 16px;
    }

    .tsc-calc-row {
        flex-direction: column;
        gap: 12px;
    }

    .tsc-calc-field {
        min-width: 100%;
    }

    .tsc-calc-btn-wrap {
        min-width: 100%;
    }

    .tsc-result-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tsc-chart-container {
        height: 240px;
    }

    .tsc-results {
        flex-direction: column;
    }
}
