/* Scoped field calculator workspace. Other app forms retain their styles. */
.field-workspace { min-width: 0; }
.field-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 16px; background: #eef4ef; border-radius: 15px; }
.field-tabs [role=tab] { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 9px 6px; border: 0; border-radius: 11px; background: transparent; color: #52695e; font-size: 13px; font-weight: 700; }
.field-tabs [aria-selected=true] { background: #fff; color: #175c40; box-shadow: 0 2px 7px #20453012; }
.field-calculator.form { gap: 14px; }
.field-calculator .notice { align-items: flex-start; padding: 11px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.field-calculator .notice > .icon { margin-top: 2px; }
.field-calculator .form-two { gap: 10px; }
.field-calculator .field > span { font-size: 12px; line-height: 1.4; }
.field-measure-inputs { display: grid; gap: 14px; min-width: 0; padding: 0; margin: 0; border: 0; }
.field-help { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field-help > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; color: var(--pine); font-size: 12px; font-weight: 650; list-style: none; cursor: pointer; }
.field-help > summary::-webkit-details-marker { display: none; }
.field-help > summary > span { flex: 1; }
.field-help[open] > summary > .icon:last-child { transform: rotate(90deg); }
.field-help-body { padding: 0 12px 12px; display: grid; gap: 10px; }
.field-help-body .hint { margin: 0; }
.field-section { display: grid; gap: 12px; min-width: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.field-section h3 { font-size: 14px; letter-spacing: -.015em; }
.field-estimate-reference { display: grid; gap: 5px; border-left: 3px solid #7c9777; padding: 9px 12px; background: #f0f6ef; border-radius: 0 10px 10px 0; }
.field-estimate-reference > span { font-size: 11px; color: var(--muted); }
.field-estimate-reference > strong { font-size: 22px; }
.field-estimate-reference p { font-size: 12px; }
.field-transfer.button, .field-next.button { justify-content: center; width: 100%; font-size: 13px; }
.field-transfer.button { background: #f0f6ef; border: 1px solid #b4cebb; }
.field-result-notes { display: grid; gap: 12px; }
.field-calculator .calc-output { border-radius: 16px; background: #edf6ec; padding: 16px; overflow-wrap: anywhere; }
.field-calculator .calc-output > strong { font-size: 20px; }
.measurement-guide { margin: 0; display: grid; gap: 14px; min-width: 0; }
.measurement-guide figcaption { font-size: 14px; font-weight: 750; letter-spacing: -.015em; line-height: 1.4; }
.measurement-cow { display: block; width: 100%; height: auto; border: 1px solid #e0eee6; border-radius: 16px; overflow: hidden; }
.measurement-legend { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.measurement-legend li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid #e0eee6; border-radius: 12px; background: #f8fcfa; }
.measurement-legend li + li { border-color: #eee6d9; background: #fdfbf7; }
.measurement-legend li > div { min-width: 0; }
.measurement-legend strong { display: block; font-size: 12px; }
.measurement-legend p { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.measure-number { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 8px; color: #fff; background: #127253; font-size: 12px; font-weight: 750; }
.measure-number.length { background: #a75e0b; }
.measurement-safe { padding: 0 2px; line-height: 1.5; }
.measurement-example { border: 1px solid #d4e8dd; background: #eef8f2; border-radius: 12px; padding: 12px; display: grid; gap: 5px; }
.measurement-example span { font-size: 11px; color: var(--muted); }
.measurement-example p { font-size: 12px; }
.measurement-example strong { font-size: 18px; color: #235e3d; }
@media (forced-colors: active) {
  /* Preserve line/number encoding as well as color in high-contrast modes. */
  .measurement-cow { forced-color-adjust: none; border-color: CanvasText; }
  .measurement-legend li, .measurement-example { border-color: CanvasText; }
  .measure-number { border: 1px solid CanvasText; }
}
@media (max-width: 359px) {
  .field-calculator .form-two { grid-template-columns: minmax(0, 1fr); }
  .field-tabs [role=tab] { font-size: 12px; gap: 5px; }
}
