/* Measure builder: picker, role fields, output tabs. Shared pieces live in css/tools.css. */
.mb-side { align-self: start; }
.mb-info p { margin: 0 0 10px; line-height: 1.55; font-size: var(--fs-sm); }
.mb-info strong { color: var(--ink); }
.mb-h { font-size: var(--fs-base); margin: 16px 0 4px; }
.mb-side .tool-note { margin: 0 0 12px; }
.mb-results { min-width: 0; display: grid; gap: 16px; align-content: start; }
.mb-results .tool-tabs { margin-bottom: 0; }
.mb-results > .tool-panel[role="tabpanel"] { padding: 12px; }
.mb-code { position: relative; }
.mb-code .tool-out { margin: 0; max-height: 520px; }
.mb-copy { position: absolute; top: 8px; right: 8px; z-index: 1; }
.mb-fns { font-size: var(--fs-xs); color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.mb-fns a { color: var(--accent); }
.mb-results > .tool-note { margin-top: 0; }
.tool-notes { margin-top: 36px; max-width: 75ch; } .tool-notes.tn-on { max-width: none; }
.tool-notes h2 { font-size: var(--fs-lg); margin: 26px 0 8px; }
.tool-notes h3 { font-size: var(--fs-base); margin: 18px 0 4px; }
.tool-notes p { margin: 0 0 12px; line-height: 1.6; }
@media (max-width: 560px) { .tool-wrap { padding-left: 16px; padding-right: 16px; } .mb-code .tool-out { font-size: .78rem; } }
.mb-results { position: sticky; top: 76px; align-self: start; }
.mb-results > .mb-info { padding: 14px 18px; }
.mb-info p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .mb-results { position: static; } }
