.study { max-width: 1230px; padding-bottom: 32px; }
.study-status { font-size: 13px; color: var(--muted); padding: 6px 0; }
.study-top-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.study-lot-picker { max-width: 490px; flex: 1 1 300px; }
.study-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.study-presets button { min-height: 40px; }
.study-lot-picker label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.study-lot-picker small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.study-lot-condition {
  margin-bottom: 14px; padding: 11px 13px; border: 1px solid #ba8958;
  border-radius: 7px; background: #fff3df; color: #533517; font-size: 13px; line-height: 1.45;
}
.study-lot-condition p { margin: 4px 0 0; }
#study-lot-references { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
#study-lot-references li + li { margin-top: 7px; }
.study-results, .study-property-inputs {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px;
}
.study-result { padding: 16px; }
.study-result h2 { font-size: 22px; }
.study-result > p { margin-bottom: 11px; }
.study-break-even {
  border-radius: 7px; background: #e7f0e8; border: 1px solid var(--line);
  padding: 10px 12px; display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 2px 10px;
}
.study-break-even span { grid-column: 1/-1; font-size: 12px; color: var(--muted); font-weight: 700; }
.study-break-even strong { font-size: clamp(23px,3.2vw,38px); letter-spacing: -.055em; color: var(--teal); }
.study-break-even small { font-size: 12px; color: var(--muted); }
.study-track { height: 7px; background: #d3e3d6; border-radius: 7px; position: relative; margin: 13px 3px 7px; }
.study-track i { height: 13px; width: 3px; background: var(--teal); display: block; position: absolute; top: -3px; transform: translateX(-50%); }
.study-track .reference { background: #a84028; }
.study-result dl { margin: 12px 0 0; }
.study-result dl div { display: flex; justify-content: space-between; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.study-result dl div:last-child { border-bottom: 0; }
.study-result dt { font-size: 13px; color: var(--muted); }
.study-result dd { margin: 0; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.study-result .deficit { color: #9f3f28; }
.study-form, .study-method, .study-sources { margin-top: 16px; }
.study-form .panel-title { min-height: 0; }
.study-fields {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px 12px;
  padding: 0 14px 13px;
}
.study-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.study-fields input {
  border: 1px solid #cbd8d1; border-radius: 6px; width: 100%; height: 40px;
  padding: 0 9px; font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.study-fields select { height: 40px; }
.study-property-inputs { padding: 2px 14px 11px; }
.study-property-inputs fieldset { border: 1px solid var(--line); min-width: 0; padding: 10px 0 0; border-radius: 6px; }
.study-property-inputs legend { margin-left: 11px; padding: 0 5px; font-size: 13px; font-weight: 750; }
.study-property-inputs .study-fields { padding-bottom: 10px; }
.study-costs { margin: 0 14px 8px; border-block: 1px solid var(--line); padding: 9px 0 0; }
.study-costs summary { cursor: pointer; font-size: 13px; font-weight: 750; margin-bottom: 9px; }
.study-costs .study-fields { padding-inline: 0; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); }
.study-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 0; }
.study-form .study-status { padding-inline: 14px; min-height: 12px; }
.study-method { padding: 15px; }
.study-method p, .study-source p, .study-sources > p { line-height: 1.5; }
.study-sources h2 { margin-bottom: 8px; }
.study-sources > p { margin-top: 9px; font-size: 13px; }
.study-source { padding: 14px; }
.study-source h3 { margin: 0 0 6px; font-size: 17px; }
.study-source a { font-size: 12px; }
.study-source details { margin-top: 9px; font-size: 12px; }
.study-source summary { font-size: 13px; cursor: pointer; font-weight: 700; }
.study-source ul { padding-left: 17px; margin-block: 5px; }
.study-source li { margin-bottom: 4px; line-height: 1.4; }
@media (max-width: 740px) {
  .study-results, .study-property-inputs { grid-template-columns: 1fr; }
  .masthead .topbar { min-height: 54px; height: auto; padding-block: 8px; }
}
