/* Educational, multi-result workspace for calibrated Solow phase diagrams. */
.run-model-lab { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.run-model-lab [hidden] { display: none !important; }
.run-model-lab :is(button, select, summary) { outline-offset: 3px; }
.run-model-lab :disabled { opacity: .55; cursor: not-allowed; }
.run-model-inputs { padding: 22px; }
.run-model-inputs select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #bdcfe1; border-radius: 9px; background: white; color: #243d60; font-size: .88rem; }
.run-model-inputs .input-field { margin-bottom: 12px; }
.run-model-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#runModelButton { width: 100%; }
.run-model-clear { width: 100%; margin-top: 5px; padding: 9px; border: 0; background: transparent; color: var(--model-strong); text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; font-weight: 650; }
.run-model-status { margin: 8px 0 0; color: #45607b; font-size: .78rem; line-height: 1.5; }
.run-model-error { margin: 12px 0 0; padding: 12px; border: 1px solid #edc9c6; border-radius: 9px; background: #fff3f1; color: #8b302b; font-size: .82rem; }
.run-model-workspace { min-width: 0; }
.run-model-empty { display: grid; min-height: 540px; padding: 32px; place-content: center; justify-items: center; text-align: center; background: radial-gradient(ellipse at top, var(--model-page), white 70%); }
.run-model-empty > span { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 20px; border-radius: 20px; background: var(--model-soft); color: var(--model-accent); font-size: 2.4rem; }
.run-model-empty h3 { margin: 0; color: #172b48; font-size: 1.5rem; }
.run-model-empty > p:last-child { max-width: 440px; margin: 13px 0 0; color: #586b83; line-height: 1.65; }
.run-model-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.run-model-result { min-width: 0; overflow: hidden; border-top: 4px solid #326eaf; }
.run-model-result.position-above { border-top-color: #b75c20; }
.run-model-result.position-near { border-top-color: #138667; }
.run-model-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e5edf4; border-bottom: 1px solid #e5edf4; }
.run-model-flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.run-model-flow-grid > div { padding: 12px; border-left: 4px solid var(--flow-color); border-radius: 8px; background: #f5f8fb; }
.run-model-details summary { cursor: pointer; color: #2a496d; font-weight: 700; }
.run-model-details > h4 { margin-top: 18px; }
.run-model-parameters { display: grid; gap: 8px; margin-top: 12px; }
.run-model-parameter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px; border: 1px solid #e1e9f1; border-radius: 9px; }
.run-model-parameter > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.run-model-parameter strong { color: #2e4967; font-size: .9rem; }
.run-model-parameter b { color: #173760; }
.run-model-parameter p { grid-column: 1 / -1; margin: 0; color: #5b6c7e; font-size: .88rem; line-height: 1.5; }
.run-model-source { padding: 2px 5px; border-radius: 10px; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.source-estimated { background: #e7f0ff; color: #174b91; }
.source-assumed { background: #fff0e1; color: #96500b; }
.run-model-result-header { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 10px; align-items: center; padding: 18px 18px 0; }
.run-model-result-header .eyebrow { grid-column: 2; margin: 0; font-size: .72rem; text-align: center; }
.run-model-result-header .remove-button { grid-column: 3; }
.run-model-chart { width: 100%; height: 380px; min-width: 0; padding: 0 8px; }
.run-model-position { padding: 6px 22px 20px; border-bottom: 1px solid #e4ebf2; text-align: center; }
.run-model-position .hero-status { margin-top: 0; }
.run-model-position p { max-width: 640px; margin: 10px auto 0; color: #3f526d; font-size: 1.02rem; line-height: 1.65; }
.run-model-metric { display: grid; min-width: 0; padding: 18px; place-items: center; background: white; text-align: center; }
.run-model-metric h4 { margin: 0; color: #52647c; font-size: .86rem; font-weight: 650; }
.run-model-metric strong { display: block; margin: 8px 0 0; color: var(--model-strong); overflow-wrap: anywhere; font-size: 2rem; font-weight: 750; letter-spacing: -.03em; }
.run-model-flow, .run-model-story { padding: 22px; border-bottom: 1px solid #e4ebf2; }
.run-model-flow h4, .run-model-story > h4, .run-model-details h4 { margin: 0; color: #172b48; font-size: 1.12rem; font-weight: 650; }
.run-model-flow-grid span { display: block; color: #5b6c7e; font-size: .86rem; }
.run-model-flow-grid strong { display: block; margin-top: 6px; color: #263f5f; font-size: 1.5rem; font-weight: 750; }
.run-model-flow-note { margin: 12px 0 0; color: #3f526d; font-size: .98rem; }
.run-model-details { padding: 18px 22px 22px; color: #52647c; font-size: .9rem; }
@media (max-width: 1180px) { .run-model-results { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .run-model-lab { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
    .run-model-inputs { padding: 16px; }
    .run-model-metrics { grid-template-columns: 1fr; }
    .run-model-empty { min-height: 340px; padding: 24px; }
    .run-model-chart { height: 350px; }
    .run-model-flow, .run-model-story, .run-model-details, .run-model-position { padding-left: 16px; padding-right: 16px; }
}
/* Eco helper guidance shown once above the saved results (two short notes side by side). */
.run-model-guidance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
[data-eco="on"] .run-model-guidance:not([hidden]) { margin-bottom: 16px; padding: 14px 18px; border: 1px solid var(--model-helper); border-radius: var(--radius); background: var(--model-page); }
.run-model-guidance h4 { margin: 0 0 4px; color: var(--model-strong); font-size: .95rem; font-weight: 700; }
.run-model-guidance p { margin: 0; }
@media (max-width: 900px) { .run-model-guidance { grid-template-columns: 1fr; } [data-eco="on"] .run-model-guidance section + section { margin-top: 10px; } }
