/* analysis.css — все стили только внутри .ia-app */
.ia-app {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 30px 32px 40px;
    box-sizing: border-box;
}
.ia-app * { box-sizing: border-box; margin: 0; padding: 0; }
.ia-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
    /* display: flex; */
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.ia-title i { color: #2b6cb0; }
.ia-sub {
    color: #4a5568;
    margin-bottom: 24px;
    font-size: 15px;
}
.ia-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}
@media (max-width: 720px) {
    .ia-grid { grid-template-columns: 1fr; gap: 20px; }
}
.ia-form {
    background: #f7fafc;
    padding: 20px;
    border-radius: 16px;
}
.ia-form h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}
.ia-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.ia-field label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}
.ia-field input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.2s;
    background: white;
    width: 100%;
}
.ia-field input:focus {
    border-color: #2b6cb0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.12);
}
.ia-hint {
    font-size: 13px;
    color: #718096;
}
.ia-results {
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
}
.ia-results h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}
.ia-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #cbd5e0;
}
.ia-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.ia-metric .ia-label {
    font-weight: 500;
    color: #2d3748;
}
.ia-metric .ia-value {
    font-weight: 600;
    font-size: 18px;
}
.ia-metric .ia-status {
    margin-left: 8px;
    font-size: 16px;
}
.ia-good { color: #48bb78; }
.ia-warn { color: #ecc94b; }
.ia-bad  { color: #e53e3e; }
.ia-recommend {
    background: #ebf8ff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #bee3f8;
    margin-top: 16px;
}
.ia-recommend h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
}
.ia-recommend ul {
    list-style: none;
    padding: 0;
}
.ia-recommend li {
    padding: 4px 0 4px 24px;
    position: relative;
    color: #2d3748;
    font-size: 14px;
}
.ia-recommend li::before {
    content: "→";
    color: #2b6cb0;
    font-weight: 600;
    position: absolute;
    left: 4px;
}
.ia-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.ia-btn {
    background: #edf2f7;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d3748;
    transition: 0.15s;
}
.ia-btn:hover { background: #e2e8f0; }
.ia-btn-primary { background: #2b6cb0; color: white; }
.ia-btn-primary:hover { background: #1a4f7a; }
.ia-btn-success { background: #48bb78; color: white; }
.ia-btn-success:hover { background: #38a169; }
.ia-history {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.ia-history h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 12px;
}
.ia-hist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.ia-hist-item {
    background: #edf2f7;
    padding: 4px 12px 4px 16px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ia-hist-item:hover { background: #e2e8f0; }
.ia-hist-item .ia-del {
    color: #a0aec0;
    font-size: 12px;
    cursor: pointer;
    transition: 0.1s;
    background: none;
    border: none;
    padding: 0 2px;
    line-height: 1;
}
.ia-hist-item .ia-del:hover { color: #e53e3e; }
.ia-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ia-toast.show { opacity: 1; }
.ia-toast i { color: white; font-size: 18px; }
.ia-warning {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
}
.ia-warning.visible { display: block; }
/* Всплывающее уведомление (зелёное, как в оригинальном коде) */
.incubator-calc__toast--success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--calc-font, 'Segoe UI', system-ui, sans-serif);
    font-size: 16px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.incubator-calc__toast--success.show {
    opacity: 1;
}
.incubator-calc__toast--success i {
    color: #ffffff;
    font-size: 18px;
}