/* Measure and quote tool. Lift it out with its markup, measure.js and this file. */
.mt { display: grid; gap: 22px; }
@media (min-width: 1000px) { .mt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
.mt-draw { position: relative; border: 1px solid var(--rule, #d8e2e2); background: #fff; }
@media (min-width: 1000px) { .mt-draw { position: sticky; top: calc(var(--head-h, 68px) + 24px); } }
/* Phones: the plan stays in view while the controls under it are used */
@media (max-width: 999px) {
  .mt-draw { position: sticky; top: 74px; z-index: 5; box-shadow: 0 12px 24px -18px rgba(26, 50, 49, .5); }
  .mt-svg { max-height: 30vh; }
  .mt-bar { padding: 6px 12px; }
  .mt-total b { font-size: 1.9rem; }
}
.mt-svg { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.mt-svg path, .mt-svg rect, .mt-svg circle, .mt-svg ellipse { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.mt-svg .gr { stroke: #e3eded; stroke-width: .6; }
.mt-svg .wl { stroke: var(--ink, #1a3231); stroke-width: 1.6; }
.mt-svg .ln { stroke: var(--ink, #1a3231); stroke-width: 1.1; }
.mt-svg .lt { stroke: var(--ink, #1a3231); stroke-width: .6; opacity: .55; }
.mt-svg .ov { stroke: var(--ink, #1a3231); stroke-width: .8; stroke-dasharray: 5 4; opacity: .7; }
.mt-svg .ft { stroke: var(--ink, #1a3231); stroke-width: .7; opacity: .6; }
.mt-svg .dm, .mt-svg .tk { stroke: var(--teal-deep, #0b7a82); stroke-width: .9; }
.mt-svg .tk { stroke-width: 1.3; }
.mt-svg .dt { fill: var(--teal-deep, #0b7a82); font-family: var(--f-body, system-ui, sans-serif); font-weight: 600; text-anchor: middle; letter-spacing: .03em; }
@media (prefers-reduced-motion: no-preference) {
  .mt-fresh { animation: mt-fade .45s ease both; }
}
@keyframes mt-fade { from { opacity: .15; } }
.mt-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 12px; border-top: 1px solid var(--rule, #d8e2e2); }
.mt-total { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.mt-total b { font-family: var(--f-display, sans-serif); font-stretch: 75%; font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--ink, #1a3231); font-variant-numeric: tabular-nums; }
.mt-total span { font-size: .8125rem; color: var(--ink-2, #4a5c5b); }
.mt-scale { margin: 0; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2, #4a5c5b); }
.mt-caption { margin: 0; font-size: .8125rem; color: var(--ink-2, #4a5c5b); }

.mt-controls { display: grid; gap: 18px; }
.mt-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.mt-set[hidden] { display: none; }
.mt-set legend { padding: 0; margin-bottom: 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2, #4a5c5b); }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { position: relative; }
.mt-chip[hidden] { display: none; }
.mt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mt-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule, #d8e2e2); border-radius: 999px; font-size: .9375rem; background: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.mt-chip svg { width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.mt-chip input:checked + span { background: var(--ink, #1a3231); border-color: var(--ink, #1a3231); color: #fff; }
.mt-chip input:focus-visible + span { outline: 2px solid var(--teal-deep, #0b7a82); outline-offset: 2px; }
.mt-lens { display: grid; gap: 8px; }
.mt-len { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule, #d8e2e2); }
.mt-len[hidden] { display: none; }
.mt-len label { font-weight: 600; font-size: .9375rem; }
.mt-len label small { display: block; font-weight: 400; color: var(--ink-2, #4a5c5b); font-size: .8125rem; }
.mt-step { display: inline-flex; align-items: center; border: 1px solid #b9c7c7; border-radius: 2px; }
.mt-step button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.25rem; line-height: 1; color: var(--ink, #1a3231); }
.mt-step button:hover { background: var(--shell, #f4f7f7); }
.mt-step input { width: 4.2em; height: 44px; border: 0; border-inline: 1px solid #e0e8e8; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.0625rem; -moz-appearance: textfield; appearance: textfield; }
.mt-step input::-webkit-inner-spin-button, .mt-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mt-step i { font-style: normal; padding: 0 10px 0 2px; color: var(--ink-2, #4a5c5b); font-size: .875rem; }
.mt-step input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal, #22bbbb); }
.mt-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mt-tick[hidden] { display: none; }
.mt-tick { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; cursor: pointer; }
.mt-tick input { width: 20px; height: 20px; accent-color: var(--ink, #1a3231); margin: 0; }
.mt-more summary { cursor: pointer; font-size: .9375rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.mt-more summary::-webkit-details-marker { display: none; }
.mt-more summary::after { content: "+"; font-size: 1.2rem; color: var(--teal-deep, #0b7a82); }
.mt-more[open] summary::after { content: "\2212"; }
.mt-more > div { display: grid; gap: 16px; padding-top: 6px; }
.mt-read { padding: 14px 16px; background: var(--mist-2, #e6f4f5); border-left: 2px solid var(--teal, #22bbbb); font-size: .9375rem; line-height: 1.45; }
.mt-read p { margin: 0; }
.mt-read b { display: block; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep, #0b7a82); margin-bottom: 4px; }
.mt-actions { display: grid; gap: 10px; }
.mt-actions .btn { width: 100%; }
.mt:not(.mt-live) .mt-js { display: none; }
.mt-nojs { font-size: .9375rem; }
.mt-live .mt-nojs { display: none; }
