body.saecanet-page-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}
.saecanet-container.saecanet-main-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 30px auto;
}
div.saecanet-main-heading {
    text-align: center;
    color: #343a40;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: bold;
}
.saecanet-description-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.saecanet-description-paragraph {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.7;
}
div.saecanet-sub-heading {
    font-size: 1.4em;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
    font-weight: bold;
}
.saecanet-formulas-section {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.saecanet-formula-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ced4da;
}
.saecanet-formula-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
div.saecanet-formula-title {
    font-size: 1.1em;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: bold;
}
.saecanet-formula-latex {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1em; 
    margin-bottom: 8px;
    overflow-x: auto;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center; 
    white-space: pre; 
}
.saecanet-input-section {
    margin-bottom: 20px;
}
.saecanet-input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.saecanet-input-label {
    flex-basis: 120px; 
    flex-shrink: 0;
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    color: #495057;
}
.saecanet-input-field,
.saecanet-select-unit {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.saecanet-input-field {
    flex: 2 1 auto;
}
.saecanet-select-unit {
    flex: 1 1 auto;
    min-width: 100px;
}
.saecanet-antoine-constants-section,
.saecanet-tetens-constants-section,
.saecanet-buck-constants-section {
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 6px;
    border: 1px solid #ced4da;
}
.saecanet-constants-heading.saecanet-antoine-constants-heading,
.saecanet-constants-heading.saecanet-tetens-constants-heading,
.saecanet-constants-heading.saecanet-buck-constants-heading {
    font-size: 1.2em; color: #495057; margin-top: 0; margin-bottom: 15px; font-weight: bold;
}
.saecanet-antoine-constants-inputs-container,
.saecanet-tetens-constants-inputs-container,
.saecanet-buck-constants-inputs-container {
    display: flex; flex-direction: row; gap: 15px; align-items: flex-end; 
}
.saecanet-input-group.saecanet-antoine-constant-group,
.saecanet-input-group.saecanet-tetens-constant-group,
.saecanet-input-group.saecanet-buck-constant-group {
    margin-bottom: 0; flex: 1 1 auto; 
}
.saecanet-input-group.saecanet-antoine-constant-group .saecanet-input-label.saecanet-antoine-label,
.saecanet-input-group.saecanet-tetens-constant-group .saecanet-input-label.saecanet-tetens-label,
.saecanet-input-group.saecanet-buck-constant-group .saecanet-input-label.saecanet-buck-label {
    flex-basis: auto; margin-right: 5px; margin-bottom: 0; font-weight: normal; flex-shrink: 0;
}
.saecanet-input-group.saecanet-antoine-constant-group .saecanet-input-field.saecanet-antoine-input,
.saecanet-input-group.saecanet-tetens-constant-group .saecanet-input-field.saecanet-tetens-input,
.saecanet-input-group.saecanet-buck-constant-group .saecanet-input-field.saecanet-buck-input {
    width: 100%;
}
.saecanet-buck-constants-inputs-container {
    flex-wrap: nowrap; 
}
.saecanet-input-group.saecanet-buck-constant-group {
    flex: 1 1 auto; 
}
button#calculateButton.saecanet-main-button.saecanet-calculate-action-button {
    display: block; width: 100%; padding: 12px 20px; font-size: 1.1em; color: #fff;
    background-color: #007bff; border: none; border-radius: 5px; cursor: pointer;
    transition: background-color 0.3s ease; margin-bottom: 20px;
}
button#calculateButton.saecanet-main-button.saecanet-calculate-action-button:hover { background-color: #0056b3; }
.saecanet-result-container {
    background-color: #fff; border-radius: 8px; margin-bottom: 20px;
    border: 1px solid #e0e0e0; padding: 15px;
}
.saecanet-result-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px;
}
div.saecanet-anchored.saecanet-result-title { margin: 0; color: #0056b3; font-size: 1.3em; font-weight: bold; }
.saecanet-header-buttons.saecanet-result-actions { display: flex; align-items: center; }
.saecanet-header-buttons.saecanet-result-actions button.saecanet-header-button {
    width: auto; height: 32px; padding: 5px 10px; color: white; border: none;
    border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; transition: background-color 0.3s ease; position: relative;
    flex-shrink: 0; gap: 5px;
}
.saecanet-header-buttons.saecanet-result-actions button.saecanet-header-button svg.saecanet-button-icon { width: 18px; height: 18px; fill: white; }
.saecanet-header-buttons.saecanet-result-actions button.saecanet-header-button span:not(.saecanet-copy-tooltip) { font-size: 0.9em; line-height: 1; }
button#copyBtn.saecanet-header-button.saecanet-copy-button { background-color: #6c757d; margin-right: 10px; }
button#copyBtn.saecanet-header-button.saecanet-copy-button:hover { background-color: #5a6268; }
button#copyBtn.saecanet-header-button.saecanet-copy-button .saecanet-copy-tooltip.saecanet-button-tooltip {
    visibility: hidden; width: 80px; background-color: #555; color: #fff;
    text-align: center; border-radius: 6px; padding: 5px 0; position: absolute;
    z-index: 1; bottom: 110%; left: 50%; transform: translateX(-50%);
    opacity: 0; transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    font-size: 0.8em; white-space: nowrap; pointer-events: none;
}
button#copyBtn.saecanet-header-button.saecanet-copy-button.copied .saecanet-copy-tooltip.saecanet-button-tooltip { visibility: visible; opacity: 1; background-color: #28a745; }
button#copyBtn.saecanet-header-button.saecanet-copy-button.copied[data-copy-state="error"] .saecanet-copy-tooltip.saecanet-button-tooltip { background-color: #dc3545; }
button#resetBtn.saecanet-header-button.saecanet-reset-button { background-color: #dc3545; }
button#resetBtn.saecanet-header-button.saecanet-reset-button:hover { background-color: #c82333; }
textarea#result.saecanet-result-textarea {
    width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px;
    box-sizing: border-box; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9rem; background-color: #e9ecef; resize: vertical;
    line-height: 1.5; overflow-y: auto;
}
textarea#result.saecanet-result-textarea.saecanet-error-message {
    color: #dc3545; font-weight: bold; background-color: #f8d7da; border-color: #f5c6cb;
}
@media (max-width: 768px) {
    .saecanet-antoine-constants-inputs-container,
    .saecanet-tetens-constants-inputs-container,
    .saecanet-buck-constants-inputs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .saecanet-input-group.saecanet-antoine-constant-group,
    .saecanet-input-group.saecanet-tetens-constant-group,
    .saecanet-input-group.saecanet-buck-constant-group {
        flex-direction: column; 
        align-items: stretch; 
        flex-basis: auto !important;
    }
    .saecanet-input-group.saecanet-antoine-constant-group .saecanet-input-label.saecanet-antoine-label,
    .saecanet-input-group.saecanet-tetens-constant-group .saecanet-input-label.saecanet-tetens-label,
    .saecanet-input-group.saecanet-buck-constant-group .saecanet-input-label.saecanet-buck-label {
        margin-bottom: 5px; 
        margin-right: 0;
        flex-basis: auto;
    }
}
@media (max-width: 600px) {
    .saecanet-input-section > .saecanet-input-group:not(.saecanet-antoine-constant-group):not(.saecanet-tetens-constant-group):not(.saecanet-buck-constant-group) {
        flex-direction: column;
        align-items: stretch;
    }
    .saecanet-input-section > .saecanet-input-group:not(.saecanet-antoine-constant-group):not(.saecanet-tetens-constant-group):not(.saecanet-buck-constant-group) .saecanet-input-label {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 5px;
    }
    .saecanet-input-section > .saecanet-input-group:not(.saecanet-antoine-constant-group):not(.saecanet-tetens-constant-group):not(.saecanet-buck-constant-group) .saecanet-input-field,
    .saecanet-input-section > .saecanet-input-group:not(.saecanet-antoine-constant-group):not(.saecanet-tetens-constant-group):not(.saecanet-buck-constant-group) .saecanet-select-unit {
        width: 100%;
    }
    .saecanet-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .saecanet-header-buttons.saecanet-result-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }
}