/* Shared MULTILAND design language: paper, evergreen, ochre, terracotta. */
:root { --observed: #55756b; --simulated: #d96c43; --danger: #9f3729; }
.hidden { display: none !important; }
.masthead-inner { grid-template-columns: minmax(0,1.45fr) minmax(320px,.8fr); gap: 40px; padding: 35px 0 30px; }
h1 { font-size: clamp(38px,5.5vw,77px); letter-spacing: -.047em; line-height: 1.12; margin-top: 7px; }
.title-block p { font-size: 14px; line-height: 1.65; }
.header-links { align-items: center; gap: 10px 17px; }
.engine-badge { padding: 3px 7px; border: 1px solid #71857a; font-size: 10px; color: #dfe8e0; }
.engine-badge.ready::before { content: '\25CF'; color: #9cc8a4; margin-right: 5px; }
.engine-badge.missing { border-color: #d8ac45; color: #f3d79c; }
.layout { grid-template-columns: 365px minmax(0,1fr); gap: 22px; }
.controls { max-height: calc(100vh - 28px); overflow: auto; scrollbar-width: thin; scrollbar-color: #aaa68f #e7e3d8; }
.control-section { padding: 18px; }
.step-number { color: #6a766b; border: 1px solid #adb2a2; padding: 3px 5px; margin-right: 6px; }
input[type='date'],input[type='text'] { width: 100%; min-width: 0; border: 1px solid #bdb8a9; background: #faf8f1; border-radius: 0; padding: 9px 8px; color: var(--ink); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
input[type='file'] { width: 100%; max-width: 100%; font-size: 11px; padding: 7px 0; }
input[type='file']::file-selector-button { border: 1px solid #bdb8a9; background: #faf8f1; padding: 6px; font: inherit; }
.example-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.example-actions button { font-size: 10px; min-height: 34px; padding: 5px; }
.full { width: 100%; margin-top: 12px; padding: 8px; }
.import-details, .advanced-details { margin-top: 15px; margin-bottom: 10px; }
.import-details summary, .advanced-details summary { font-size: 10px; line-height: 1.5; }
.import-details .detail-fields { display: grid; gap: 9px; }
.dataset-meta { margin-top: 12px; background: rgba(255,255,255,.35); border-left: 3px solid var(--green); padding: 9px 11px; font-size: 11px; line-height: 1.7; }
.dataset-meta strong { display: block; overflow-wrap: anywhere; }
.dataset-meta small { display: block; color: var(--muted); font-size: 10px; }
.data-warnings { font-size: 10px; color: #795a2d; line-height: 1.5; }
.data-warnings p { margin: 7px 0 0; padding-left: 9px; border-left: 2px solid #d8ac45; }
.variables-fieldset { padding: 0; border: 0; margin: 12px 0 14px; }
.variables-fieldset legend { font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.variable-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.variable-choices label { font-size: 10px; padding: 5px 7px; border: 1px solid #bab8a9; background: #f5f1e7; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.variable-choices label:has(input:checked) { border-color: var(--green); background: #edf0e6; }
input[type='checkbox'] { accent-color: var(--green); margin: 0; }
.check-field { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; font-size: 11px; }
.check-field input { margin-top: 3px; }
.check-field small { display: block; color: var(--muted); font-size: 10px; }
#fitBtn { margin-top: 8px; }
#modelHint { overflow-wrap: anywhere; }
.field small { line-height: 1.4; }
.primary-button, .secondary-button { font-size: 11px; }
.job-panel { border: 1px solid #c8c4b8; background: #eae7db; padding: 15px 18px; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.job-top strong { display: block; font-size: 12px; font-weight: 650; margin-top: 4px; }
.job-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.state-pill { font: 700 9px Consolas,monospace; padding: 5px 7px; border: 1px solid #a3aa9b; background: #f1f1e8; text-transform: uppercase; white-space: nowrap; }
.state-pill.running,.state-pill.queued { color: #805e24; border-color: #c7aa72; background: #f4e9d0; }
.state-pill.failed,.state-pill.interrupted { color: var(--danger); border-color: #c99388; background: #f3e0da; }
.state-pill.completed { color: #335c40; border-color: #9aae98; background: #e1ecd9; }
progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; background: #d2d1c4; margin: 14px 0 6px; }
progress::-webkit-progress-bar { background: #d2d1c4; }
progress::-webkit-progress-value { background: var(--green); transition: width .3s; }
progress::-moz-progress-bar { background: var(--green); }
.job-bottom { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 10px Consolas, monospace; }
.job-error { background: #f4e5dc; color: var(--danger); padding: 10px; font-size: 11px; overflow-wrap: anywhere; }
#logDetails { margin-top: 10px; }
#logDetails summary { font-size: 9px; }
#jobLog { max-height: 250px; overflow: auto; background: #20312a; color: #d4e3d8; padding: 12px; font: 10px/1.7 Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-panel,.history-panel { padding: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.analysis-panel .panel-heading { align-items: start; gap: 14px; }
.export-actions { justify-content: flex-end; gap: 5px; max-width: 360px; }
.export-actions button { font-size: 9px; min-height: 29px; padding: 6px 8px; }
.result-note { font-size: 11px; color: var(--muted); margin: 0 0 14px; line-height: 1.65; }
.welcome-state { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #d5d1c4; padding: 36px; background: linear-gradient(135deg,#f1eee4,#fbfaf6); }
.welcome-diagram { display: grid; grid-template-columns: repeat(3,14px); gap: 18px; padding: 23px; background: repeating-linear-gradient(0deg,transparent,transparent 31px,#dcded1 31px,#dcded1 32px),repeating-linear-gradient(90deg,transparent,transparent 31px,#dcded1 31px,#dcded1 32px); margin-bottom: 24px; transform: rotate(-8deg); }
.welcome-diagram span { width: 14px; height: 14px; background: var(--green); border-radius: 50%; border: 3px solid #e9eadc; }
.welcome-diagram span:nth-child(3n) { background: var(--accent); }
.welcome-state strong { font: 27px Georgia,serif; color: var(--dark); }
.welcome-state p { font-size: 12px; color: #787c72; max-width: 370px; line-height: 1.8; }
.welcome-state small { font-size: 10px; color: #818478; margin-top: 10px; }
.view-selectors { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; margin: 16px 0; }
.view-selectors select { font-size: 11px; padding: 8px; }
.view-selectors .field>span { font-size: 10px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 16px 0 18px; overflow-x: auto; }
.tab { border: 0; border-bottom: 3px solid transparent; padding: 11px 13px; white-space: nowrap; background: none; font-size: 11px; font-weight: 750; cursor: pointer; color: #73796e; }
.tab.active { border-bottom-color: var(--accent); color: var(--dark); background: #f0eee3; }
h3 { font: 500 16px Georgia,serif; margin: 0; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 7px 0; min-height: 24px; }
.chart-heading select { padding: 4px; font-size: 9px; width: auto; max-width: 135px; }
.chart-unit { font-size: 10px; color: var(--muted); }
canvas { display: block; width: 100%; height: 270px; }
#seriesChart { height: 290px; }
.chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e2dfd5; }
.chart-grid section { min-width: 0; }
.chart-caption { font-size: 10px; line-height: 1.65; color: #797f72; margin: 3px 0 8px; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 10px; color: #747a71; flex-wrap: wrap; }
.legend span::before { content: ''; display: inline-block; width: 13px; height: 3px; vertical-align: middle; margin-right: 5px; background: var(--observed); }
.legend span.sim::before { background: var(--simulated); }
.legend span.band::before { height: 8px; background: #55756b33; }
.diagnostic-notes { border-top: 1px dashed #d3d0c2; margin-top: 14px; padding-top: 10px; color: #7c8074; font-size: 10px; line-height: 1.7; }
.diagnostic-notes p { margin: 3px 0; }
.table-title { margin-top: 23px; margin-bottom: 10px; }
.diagnostic-table { width: 100%; }
.diagnostic-table th { font-size: 10px; padding: 9px; text-align: right; }
.diagnostic-table td { font: 11px Consolas,monospace; padding: 8px 9px; text-align: right; border-bottom: 1px solid #e5e2d9; }
.diagnostic-table th:first-child,.diagnostic-table td:first-child { text-align: left; font-family: 'Segoe UI',sans-serif; }
.matrix-type { display: grid; grid-template-columns: 215px 1fr; gap: 20px; align-items: center; margin-top: 17px; }
.matrix-type select { font-size: 11px; }
.realization-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 9px; }
.realization-card { border: 1px solid var(--line); background: #f5f3eb; text-align: left; padding: 10px; cursor: pointer; }
.realization-card.selected { border: 2px solid var(--accent); padding: 9px; background: #fcf5ea; }
.realization-card strong { font: 500 16px Georgia,serif; display: block; }
.realization-card small { color: var(--muted); font: 10px Consolas,monospace; }
.realization-card canvas { height: 42px; margin: 7px 0 4px; }
.history-list { display: grid; gap: 7px; }
.history-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #dfdbce; background: #f6f4ed; }
.history-row.selected { border-left: 3px solid var(--accent); padding-left: 10px; }
.history-open { display: block; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; min-width: 0; }
.history-open strong { display: block; font-size: 11px; color: var(--dark); }
.history-open small { display: block; color: var(--muted); font: 10px/1.8 Consolas,monospace; }
.history-delete { border: 0; background: none; font-size: 17px; color: #827f72; cursor: pointer; padding: 0 4px; }
.model-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.model-overview>div { padding: 11px; border: 1px solid #ded9cc; background: #f4f1e8; font-size: 10px; }
.model-overview strong { font: 500 22px Georgia,serif; display: block; color: var(--dark); }
.model-season { padding: 14px 0; border-top: 1px solid #ded9cc; }
.model-season h3 { margin-bottom: 10px; }
.weather-type-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0; }
.weather-type { background: #e7eadf; border: 1px solid #c5cebc; padding: 6px 8px; font-size: 10px; }
.model-transition { border-collapse: collapse; font: 10px Consolas,monospace; }
.model-transition th,.model-transition td { padding: 7px; border: 1px solid #dad7cb; text-align: center; }
.model-transition th { background: #eeece2; }
.model-note { margin: 12px 0; padding: 11px; background: #f1e7d1; border-left: 3px solid var(--yellow); font-size: 11px; line-height: 1.7; }
.model-actions { display: flex; gap: 10px; margin: 12px 0; }
.model-actions a { font-size: 11px; padding: 7px 10px; border: 1px solid var(--green); text-decoration: none; }
.toast { position: sticky; top: 0; z-index: 20; display: flex; gap: 18px; align-items: center; justify-content: space-between; width: min(100%,1480px); margin: 0 auto; background: #f6e5d9; border: 1px solid #be7f69; color: #852f21; padding: 12px 20px; font-size: 12px; overflow-wrap: anywhere; box-shadow: 0 3px 10px #3332; }
.toast button { background: none; border: 0; cursor: pointer; font-size: 23px; }
footer { font-size: 10px; line-height: 1.7; }
footer a { text-underline-offset: 3px; }
@media (max-width:1200px) { .layout { grid-template-columns: 335px minmax(0,1fr); gap: 16px; } .analysis-panel { padding: 15px; } .analysis-panel .panel-heading { flex-direction: column; } .export-actions { justify-content: flex-start; max-width: none; } .chart-grid { gap: 14px; } .masthead-inner { gap: 25px; } }
@media (max-width:960px) { .masthead-inner { grid-template-columns: 1fr; gap: 24px; } .header-notes { grid-template-columns: 30px 1fr 30px 1fr; } .header-links { grid-column: 1/-1; } .layout { grid-template-columns: 1fr; } .controls { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } .control-section { border-right: 1px solid #c8c4b8; border-bottom: 0; padding: 15px; } .control-section:last-child { border-right: 0; } .example-actions,.control-section .two-fields { grid-template-columns: 1fr; } .section-title { font-size: 10px; } .section-title .link-button { display: none; } }
@media (max-width:650px) { .masthead-inner { width: calc(100% - 32px); padding: 25px 0; } h1 { font-size: clamp(34px,9.4vw,58px); } .overline { font-size: 8px; } .header-notes { grid-template-columns: 30px 1fr; } .layout { width: calc(100% - 20px); margin-top: 15px; } .controls { display: block; } .control-section { border-right: 0; border-bottom: 1px solid #c8c4b8; padding: 18px; } .example-actions,.control-section .two-fields { grid-template-columns: 1fr 1fr; } .chart-grid { grid-template-columns: 1fr; } .view-selectors { grid-template-columns: 1fr 1fr; } .view-selectors label:last-child { grid-column: 1/-1; } .run-summary>div { padding: 11px 8px; } .run-summary strong { font-size: 23px; } .run-summary span { font-size: 8px; } .job-top { align-items: start; } .job-tools { flex-direction: column; align-items: end; gap: 8px; } .matrix-type { grid-template-columns: 1fr; gap: 7px; } .model-overview { grid-template-columns: 1fr; } .history-row { gap: 6px; padding: 9px; } .history-open small { font-size: 9px; } .welcome-state { padding: 25px 18px; } footer { flex-direction: column; gap: 10px; padding: 18px 15px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* v1.1.1 branding and numerical-diagnostic surfaces */
.geolearning-brand{display:inline-flex;align-items:center;gap:1rem;max-width:min(520px,92vw);margin:0 0 1.1rem;color:#f1f5f2;text-decoration:none}
.geolearning-brand:hover{color:#fff}
.geolearning-logo-card{display:inline-flex;align-items:center;justify-content:center;padding:.65rem .8rem;background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(0,0,0,.22);flex:0 0 auto}
.geolearning-logo-image{display:block;width:min(230px,42vw);height:auto}
.geolearning-brand-text{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.geolearning-brand-kicker{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#d9e6dc}
.geolearning-brand-name{font:700 clamp(1.05rem,2vw,1.35rem)/1.1 "Segoe UI",Arial,sans-serif;color:#fff}
.geolearning-brand-tagline{font-size:.82rem;color:#dbe6df}
.fit-mode-box,.season-diagnostic-box{margin:.8rem 0;padding:.8rem;border:1px solid var(--line,#d8d8d2);background:rgba(255,255,255,.45)}
.season-diagnostic-box{margin-top:1rem;background:rgba(0,0,0,.025)}
.calibration-diagnostics{margin-top:.8rem;display:grid;gap:.55rem}
.calibration-diagnostic{padding:.7rem .8rem;border:1px solid var(--line,#d8d8d2);background:#fff}
.calibration-diagnostic.ok{border-left:4px solid #41725b}
.calibration-diagnostic.failed{border-left:4px solid #a24a3a}
.calibration-diagnostic header{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;margin-bottom:.35rem}
.calibration-diagnostic strong{font-size:.88rem}
.calibration-diagnostic .diag-state{font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.calibration-diagnostic ul{margin:.35rem 0 0;padding-left:1.1rem;font-size:.78rem;line-height:1.45}
.calibration-diagnostic dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem .6rem;margin:.4rem 0 0;font-size:.76rem}
.calibration-diagnostic dt{font-weight:700}
.calibration-diagnostic dd{margin:0;overflow-wrap:anywhere}
@media(max-width:720px){.geolearning-brand{align-items:flex-start;gap:.8rem}.geolearning-logo-card{padding:.55rem .65rem}.geolearning-logo-image{width:min(176px,44vw)}.geolearning-brand-text{padding-top:.2rem}.calibration-diagnostic header{align-items:flex-start;flex-direction:column;gap:.15rem}}
