.card {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    max-width: 520px;
    margin: auto;
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.h2_calc { margin-bottom: 20px; }

.section, .section_age { margin-bottom: 20px; position: relative; }

.section-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.inputs { display: flex; gap: 10px; }

.input_calc {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    text-align: center;
}

.result {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.result span { font-weight: 600; }

.button_row { display: flex; gap: 10px; margin-top: 10px; }

.button_calc {
    padding: 14px;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex: 1;
    color: white;
}

.button_row {
    margin-bottom: 10px;
}

.subsection {
    margin-top: 10px;
}

.subsection-title {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    font-weight: 500;
}

.inputs {
    display: flex;
    gap: 10px;
}

.doc-calendar-info {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
}

.doc-calendar-info.pre-julian {
    color: #b00020;
}

.doc-calendar-info.julian {
    color: #e65100;
}

.doc-calendar-info.gregorian {
    color: #2e7d32;
}

.calendar-warning {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    color: #856404;
    border-radius: 6px;
}


.button_add { background: #2563eb; }
.button_add:hover { background: #1e40af; }

.button_calc_green { background: #22c55e; }
.button_calc_green:hover { background: #16a34a; }

.button_calc_red { background: #ef4444; }
.button_calc_red:hover { background: #b91c1c; }

.remove-doc {
    background: none;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
    float: right;
    line-height: 1;
    padding: 0 5px;
}
.remove-doc:hover { color: darkred; }

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fee2e2;
    color: #7f1d1d;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    opacity: 0;
    transform: translateX(20px);
    animation: toast-in .3s ease forwards, toast-out .3s ease forwards 3.2s;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}