.home-time { margin: 0 0 19px; padding: clamp(14px,2vw,25px); color: #26493c; }
.home-time-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 14px; }
.home-time-heading h2 { margin: 0; color: #204e3e; font: 400 clamp(24px,2vw,31px)/1.2 Georgia,serif; letter-spacing: -.035em; }
.home-time-heading p { margin: 0; color: #567363; font-size: 12px; line-height: 1.5; }
.home-time-chooser { display: flex; flex-wrap: wrap; gap: 6px 13px; margin: 12px 0; align-items: center; }
.home-time label { display: block; color: #42624f; font: 600 12px/1.5 Inter,"Segoe UI",sans-serif; }
.home-time select, .home-time input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 33px; margin-top: 3px; padding: 5px 7px; font: 13px/1.4 Inter,"Segoe UI",sans-serif; color: #2c5041; background: white; border: 1px solid #c7d6ca; border-radius: 4px; }
.home-time-chooser label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.home-time-chooser select { width: auto; margin: 0; max-width: 320px; }
.home-time-body { display: grid; grid-template-columns: minmax(200px,.78fr) minmax(0,1.65fr); align-items: start; gap: clamp(12px,2.4vw,32px); border-top: 1px solid #dce5da; padding-top: 13px; }
.home-time-body > * { min-width: 0; }
.home-time-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 9px 0; }
.home-time-days label { display: flex; flex-direction: column; justify-content: space-between; }
.home-time-note, #home-time-status, #home-time-unavailable, #home-time-study-details { color: #506a5a; font-size: 12px; line-height: 1.55; }
.home-time-note { margin: 10px 0; }
#home-time-status { margin: 8px 0 0; }
#home-time-run { margin-top: 9px; min-height: 34px; padding: 7px 10px; font-size: 12px; }
#home-time-error { margin: 8px 0 0; }
#home-time-error button { background: none; color: inherit; border: 0; text-decoration: underline; font: inherit; }
#home-time-result-name { margin: 0; color: #365847; font: 600 14px/1.45 Inter,"Segoe UI",sans-serif; }
#home-time-output-label { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
#home-time-output-label select { flex: 1; margin: 0; }
#home-time-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; color: #52705d; font-size: 11px; }
#home-time-chart { display: block; width: 100%; height: 188px; background: #f7f9f4; border: 1px solid #d9e4d7; border-radius: 5px; }
#home-time-chart text { font: 10px ui-monospace,monospace; fill: #4e6655; }
#home-time-chart .time-transition-label { fill: #785b26; }
#home-time-chart.study-chart { height: 178px; }
#home-time-samples { margin: 8px 0 0; color: #41664e; font-size: 12px; }
#home-time-samples summary { width: fit-content; cursor: pointer; }
#home-time-table { max-height: min(45vh,350px); overflow: auto; }
#home-time-y { margin: 6px 0 3px; }
.home-time-downloads { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 9px; padding-top: 9px; border-top: 1px solid #dce5da; }
.home-time-downloads span { color: #486452; font-size: 11px; }
.home-time-downloads a { min-height: 26px; padding: 4px 7px; font-size: 11px; }
@media (max-width: 1050px) and (min-width: 721px) {
  .home-time-chooser label { display: block; }
  .home-time-chooser select { max-width: 220px; }
}
@media (max-width: 720px) {
  #home-time-title { scroll-margin-top: 60px; }
  .home-time-body { display: flex; flex-direction: column; gap: 12px; }
  .home-time-body > * { width: 100%; }
  .home-time:not(.home-study) #home-time-result { order: -1; }
  .home-time-chooser { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); gap: 6px; }
  .home-time-chooser label { display: block; }
  .home-time-chooser select { width: 100%; margin-top: 3px; }
  #home-time-chart { height: 165px; }
  #home-time-output-label { display: block; }
  #home-time-output-label select { margin-top: 2px; }
}
#home-time-projection { margin-top: 10px; border-top: 1px solid #dce5da; font-size: 12px; line-height: 1.6; color: #41624c; }
#home-time-projection > summary { padding: 6px 0; cursor: pointer; }
#home-time-projection-method { margin: 5px 0; }
#home-time-projection-values .study-table { font-size: 11px; }
@media (max-width: 720px) {
  .home-time:not(.home-study) { display: grid; gap: 8px; }
  .home-time:not(.home-study) #home-time-workspace,
  .home-time:not(.home-study) .home-time-body { display: contents; }
  .home-time:not(.home-study) .home-time-heading { order: 0; }
  .home-time:not(.home-study) #home-time-result { order: 1; display: grid; gap: 4px; }
  .home-time:not(.home-study) #home-time-result > .study-citation-host { order: 0; }
  .home-time:not(.home-study) #home-time-legend { order: 1; margin: 2px 0 0; }
  .home-time:not(.home-study) #home-time-chart { order: 2; }
  .home-time:not(.home-study) #home-time-output-label { order: 3; margin: 1px 0 0; }
  .home-time:not(.home-study) #home-time-samples { order: 4; margin: 0; }
  .home-time:not(.home-study) #home-time-downloads { order: 5; }
  .home-time:not(.home-study) .home-time-chooser { order: 2; margin: 2px 0 0; padding-top: 7px; border-top: 1px solid #dce5da; }
  .home-time:not(.home-study) #home-time-form { order: 3; }
}
