body { background:#fff; color:#212529; scroll-behavior:smooth; }
.site-header { background:#fff; border-bottom:1px solid #e9ecef; position:sticky; top:0; z-index:1030; }
.brand { display:flex; align-items:center; gap:.75rem; }
.brand img { height:80px; width:auto; object-fit:contain; }
@media (min-width:768px){ .brand img{ height:100px; } }
.site-title { font-weight:700; letter-spacing:.3px; margin:0; font-size:1.45rem; }
.site-subtitle { margin:0; color:#6c757d; font-size:.95rem; }
.lang-switch .btn { padding:.25rem .6rem; border-radius:999px; }
.lang-switch .btn.active { background:#0d6efd; color:#fff; }
.site-footer { background:#fff; border-top:1px solid #e9ecef; }
.footer-logos img { height:44px; width:auto; object-fit:contain; }
.footer-credit { font-size:.95rem; color:#495057; }
.footer-links a { color:#0d6efd; text-decoration:none; }
.footer-links a:hover { text-decoration:underline; }
.color1 { background-color:#f0eeeb; }
.color2 { background-color:#d9e6f0; }
.color3 { background-color:#f9f9f8; }
.color5 { background-color:#d3d9ec; }
.section-box { position:relative; padding:1rem; border-radius:10px; margin-bottom:1.5rem; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.section-title { font-weight:700; font-size:1.15rem; margin-bottom:.9rem; padding-bottom:.45rem; border-bottom:3px solid #cfcfcf; }
.color1 .section-title { border-bottom-color:#d4cdc5; }
.color2 .section-title { border-bottom-color:#5b88a5; }
.color3 .section-title { border-bottom-color:#bfc0bd; }
.color5 .section-title { border-bottom-color:#243a69; }
.card { background:#fff; border-color:#e9ecef; }
.summary-card { height:100%; background:#fff; border:1px solid #e9ecef; border-radius:12px; padding:1rem .75rem; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.summary-value { font-size:1.55rem; line-height:1.1; font-weight:700; color:#243a69; }
.summary-value.small-value { font-size:1.05rem; padding-top:.2rem; }
.summary-label { margin-top:.35rem; color:#6c757d; font-size:.82rem; }
.model-meta { display:flex; flex-wrap:wrap; gap:.5rem; }
.model-plot { width:100%; min-height:440px; }
.empty-state { text-align:center; color:#6c757d; padding:2rem 1rem; font-weight:500; }
@media (max-width:900px){ .model-plot{ min-height:330px; } .site-title{font-size:1.2rem;} }
.settings-card { background:#fff; border:1px solid #e9ecef; border-radius:12px; padding:1rem; }
.settings-card .form-label { font-size:.88rem; font-weight:600; }
.accordion-item { border-color:#dee2e6; }
.accordion-button:not(.collapsed) { background:#eef4fb; color:#212529; box-shadow:none; }
.progress { height:.65rem; }
#settingsSection input:disabled, #settingsSection select:disabled { background-color:#f1f3f5; }
.bootstrap-legend-note { font-size:.8rem; color:#6c757d; }
.parameter-guide-section { padding:.75rem 1rem; }
.parameter-guide-accordion-item { background:transparent; border:0; }
.parameter-guide-toggle { background:transparent; padding:.35rem 0 .55rem; font-weight:700; font-size:1.15rem; border-bottom:3px solid #243a69; box-shadow:none !important; }
.parameter-guide-toggle:not(.collapsed) { background:transparent; color:#212529; }
.parameter-guide-toggle::after { margin-left:auto; }
.parameter-guide-section .accordion-body { padding-left:0; padding-right:0; padding-bottom:.35rem; }
.parameter-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.parameter-help-btn { width:100%; min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:.75rem; text-align:left; background:#fff; border:1px solid #e3e7ef; border-radius:10px; padding:.75rem .9rem; font-weight:600; color:#212529; transition:border-color .15s ease, background-color .15s ease, transform .15s ease; }
.parameter-help-btn:hover { background:#f8faff; border-color:#9fb0d4; }
.parameter-help-btn:focus-visible { outline:3px solid rgba(13,110,253,.22); outline-offset:2px; }
.help-chevron { flex:0 0 auto; color:#5b6f9a; font-size:1.35rem; line-height:1; }
.parameter-help-modal-content { border:0; border-radius:14px; box-shadow:0 12px 36px rgba(31,45,74,.18); }
.parameter-help-modal-content .modal-header { background:#eef2fb; border-bottom:1px solid #dce3f1; border-radius:14px 14px 0 0; }
.parameter-help-modal-content .modal-title { font-weight:700; color:#243a69; }
.parameter-help-modal-content .modal-body { font-size:1rem; line-height:1.6; }
@media (max-width:767.98px){ .parameter-guide-grid{grid-template-columns:1fr;} .parameter-guide-toggle{font-size:1.05rem;} }

.model-caution { display:flex; align-items:flex-start; gap:.85rem; padding:1rem 1.1rem; background:#fff8e8; border:1px solid #ead8a6; border-left:5px solid #c79a2b; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.model-caution-icon { flex:0 0 28px; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#c79a2b; color:#fff; font-weight:700; font-family:Georgia,serif; font-size:1rem; line-height:1; margin-top:.05rem; }
.model-caution-title { margin:0 0 .3rem; font-size:1rem; font-weight:700; color:#5d4918; }
.model-caution-text { color:#554b32; line-height:1.5; font-size:.92rem; }
@media (max-width:575.98px){ .model-caution{padding:.9rem;gap:.7rem;} .model-caution-text{font-size:.88rem;} }

/* Data source / external CSV */
.source-choice-card { min-height:94px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.85rem; padding:1rem; border:1px solid #dfe4ea; border-radius:12px; background:#fff; color:#212529; transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.source-choice-card:hover { border-color:#9fb0d4; background:#fbfcff; }
.source-choice-card.active { border-color:#46679f; box-shadow:0 0 0 2px rgba(70,103,159,.10); background:#f7f9fd; }
.source-choice-card:focus-visible { outline:3px solid rgba(13,110,253,.22); outline-offset:2px; }
.source-choice-card strong { display:block; font-size:1rem; margin-bottom:.2rem; }
.source-choice-card small { display:block; color:#6c757d; line-height:1.35; }
.source-choice-icon { display:flex; align-items:center; justify-content:center; min-width:48px; height:48px; padding:0 .5rem; border-radius:10px; background:#eef2fb; color:#243a69; font-weight:800; font-size:.8rem; letter-spacing:.02em; }
.source-choice-state { width:12px; height:12px; border-radius:50%; background:#ced4da; }
.source-choice-card.active .source-choice-state { background:#198754; box-shadow:0 0 0 4px rgba(25,135,84,.12); }
.source-panel { border-top:1px solid #e2e6ea; padding-top:1rem; }
.upload-zone { padding:1rem; background:#fff; border:1px dashed #9eabc2; border-radius:12px; }
.required-columns { display:flex; flex-wrap:wrap; gap:.45rem .6rem; align-items:center; }
.required-columns code { color:#243a69; background:#f4f6fa; padding:.35rem .5rem; border-radius:6px; font-size:.82rem; word-break:break-word; }
.upload-stat { height:100%; padding:.75rem .65rem; background:#fff; border:1px solid #e5e8ed; border-radius:9px; text-align:center; }
.upload-stat strong { display:block; color:#243a69; font-size:1.05rem; line-height:1.2; }
.upload-stat span { display:block; color:#6c757d; font-size:.76rem; margin-top:.2rem; }
.upload-preview-wrap { border:1px solid #e4e7eb; border-radius:9px; background:#fff; }
.upload-preview-table { font-size:.8rem; white-space:nowrap; }
.upload-preview-table thead th { background:#f5f6f8; color:#495057; font-weight:700; }
.dataset-file-line { display:flex; align-items:center; flex-wrap:wrap; gap:.2rem; }
@media (max-width:575.98px){ .source-choice-card{grid-template-columns:auto 1fr;}.source-choice-state{display:none;}.upload-zone{padding:.85rem;} }


/* Manual inclusion / exclusion of model records */
.selection-status { display:flex; align-items:center; gap:.35rem; color:#495057; font-size:.9rem; }
.selection-status strong { color:#243a69; }
.manual-selection-wrap { max-height:390px; overflow-x:auto; overflow-y:auto; border:1px solid #e2e6ea; border-radius:10px; background:#fff; }
.manual-selection-table { font-size:.82rem; white-space:nowrap; }
.manual-selection-table thead th { background:#f3f5f8; color:#495057; font-weight:700; z-index:2; }
.manual-selection-table tbody tr.is-excluded { opacity:.48; background:#f8f9fa; }
.manual-selection-table .model-row-checkbox { cursor:pointer; }
.manual-selection-table td, .manual-selection-table th { padding:.42rem .55rem; }
@media (max-width:767.98px){ .manual-selection-wrap{max-height:390px;} }
