.time-source-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 17px; margin: 0 0 14px; padding: 0; border: 0; color: #3d594b; font-size: 12px; }
.time-source-mode legend { float: left; padding: 0; margin-right: 15px; font-weight: 650; }
.time-source-mode label { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; cursor: pointer; }
.time-source-mode input { accent-color: #205744; margin: 0; }
#study-context, #study-status, #study-limitations, #study-projection-method { color: #4d6757; font-size: 12px; line-height: 1.65; }
#study-controls label, #study-projection label { color: #405a49; font-size: 12px; font-weight: 650; }
#study-select, #study-projection-output { display: block; max-width: 100%; width: min(100%,700px); min-width: 0; margin-top: 4px; padding: 7px 8px; border: 1px solid #c7d6ca; border-radius: 4px; color: #294d3e; background: white; font: 13px/1.4 Inter, "Segoe UI", sans-serif; min-height: 34px; }
#study-run { min-height: 34px; padding: 7px 13px; font-size: 12px; }
#study-run:disabled { opacity: .65; }
#study-error { margin: 10px 0 0; }
#study-error button { margin-left: 5px; }
.study-citation-host { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.study-citation-host h4 { margin-bottom: 0; }
.study-citation summary { display: inline-flex; box-sizing: border-box; align-items: center; justify-content: center; vertical-align: middle; width: 21px; height: 21px; border: 1px solid #9ab09f; border-radius: 50%; background: #f4f8f1; color: #285440; font: 650 12px/1 Inter,"Segoe UI",sans-serif; cursor: pointer; list-style: none; }
.study-citation summary::-webkit-details-marker { display: none; }
.study-citation[open] summary { color: white; background: #2f5945; }
.study-bubble { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; box-sizing: border-box; width: min(100%,500px); padding: 12px 15px; background: #fbfcf8; border: 1px solid #acbfac; border-radius: 5px; box-shadow: 0 5px 18px #183b2526; font-size: 12px; color: #40594a; line-height: 1.6; overflow-wrap: anywhere; }
.study-bubble a { color: #285d43; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.study-bubble p { margin: 6px 0 0; }
.study-description { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 14px; margin: 15px 0; color: #40594a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.study-description dt { font-weight: 650; }
.study-description dd { margin: 0; }
.study-description dt:first-child + dd { text-transform: capitalize; }
.study-native-scale { color: #456751; font-size: 12px; line-height: 1.5; }
#study-y-label { margin: 15px 0 5px; }
#study-x-label { margin: 5px 0 13px; }
#study-chart { display: block; box-sizing: border-box; width: 100%; height: 178px; border: 1px solid #d9e4d7; border-radius: 6px; background: #f7f9f4; }
#study-chart[hidden] { display: none; }
#study-chart text { font: 10px ui-monospace,monospace; fill: #4d6653; }
.study-point { fill: #216b53; stroke: #fff; stroke-width: 1.3; }
.study-table { table-layout: fixed; }
.study-table caption { text-align: left; padding: 8px 0 4px; font-weight: 650; color: #3d5f4a; }
.study-table th, .study-table td { overflow-wrap: anywhere; }
.study-table th { vertical-align: bottom; }
#study-limitations { padding: 11px 12px; margin: 13px 0; background: #f4f5eb; border-left: 3px solid #b9bc8f; }
#study-downloads { border-top: 1px solid #dce4d9; padding-top: 12px; }
.study-output-group, #study-projection { margin-top: 8px; border-top: 1px solid #dce4d9; }
.study-output-group > summary, #study-projection > summary { padding: 10px 4px; color: #315c46; font-size: 12px; line-height: 1.55; cursor: pointer; }
#study-projection { background: #f4f7f1; padding: 0 12px; border: 1px solid #d6e1d3; border-radius: 5px; }
#study-projection[open] { padding-bottom: 12px; }
#study-projection .study-citation-host h4 { margin: 5px 0; }
@media (max-width: 920px) {
  :is(#study-title,#study-observations,#study-model-title,#study-downloads) { scroll-margin-top: 60px; }
}
@media (max-width: 540px) {
  .time-source-mode { gap: 0 12px; }
  .time-source-mode legend { float: none; }
  .study-description { gap: 4px 8px; }
  #study-projection { padding-inline: 6px; }
  #study-projection-values .study-table { font-size: 11px; }
}
