.mbr {
--ink:#17334a; --muted:#466175; --accent:#14568e; --line:#cfdde6; --wash:#eef5fa;
max-width:1180px; margin:0 auto 48px; color:var(--ink); font:16px/1.55 Arial,sans-serif;
}
.mbr *, .mbr *::before, .mbr *::after { box-sizing:border-box }
.mbr [hidden] { display:none !important }
.mbr h1, .mbr h2, .mbr h3 { color:var(--ink); margin:0 0 10px; line-height:1.15 }
.mbr p { margin:0 0 12px }
.mbr h1 { font-size:clamp(32px,5vw,56px); letter-spacing:-.035em }
.mbr h2 { font-size:clamp(23px,3vw,34px); letter-spacing:-.02em }
.mbr h3 { font-size:19px }
.mbr a { color:var(--accent) }
.mbr :focus-visible { outline:3px solid #a65d00; outline-offset:3px }
.mbr-hero {
display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:center; gap:22px;
padding:clamp(18px,4vw,40px); background:#e8f2f8; border:1px solid var(--line); border-radius:18px;
margin-bottom:20px;
}
.mbr-hero p { max-width:570px; font-size:18px; color:var(--muted) }
.mbr-hero-figure { background:#fff; border:1px solid var(--line); border-radius:13px; padding:9px 15px 13px }
.mbr-roof-drawing { width:100%; height:auto; display:block; max-height:204px }
.mbr-roof-drawing [data-roof] { stroke:#14568e; stroke-width:6; stroke-linejoin:round; fill:none }
.mbr-roof-drawing [data-rise] { stroke:#537590; stroke-dasharray:5 4; stroke-width:2 }
.mbr-wall { fill:#ebf2f7; stroke:#b8cbd9 }
.mbr-soffit-line { stroke:#b57326; stroke-width:5 }
.mbr-roof-drawing text { font:700 14px Arial,sans-serif; fill:#17334a }
.mbr-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.mbr-metrics > div { background:var(--wash); border-radius:8px; padding:8px 12px; min-width:0 }
.mbr-metrics b { color:var(--accent); font-size:23px }
.mbr-metrics small, .mbr-metrics b { display:block }
.mbr-nav, .mbr-links { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:14px 0 }
.mbr button, .mbr a.mbr-action, .mbr-nav a {
display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 13px;
border:1px solid #a5bdcf; border-radius:8px; background:#fff; color:var(--accent); cursor:pointer;
font:700 14px/1.3 Arial,sans-serif; text-transform:none; letter-spacing:0; box-shadow:none; text-decoration:none;
white-space:normal; text-align:center;
}
.mbr button:hover, .mbr a.mbr-action:hover, .mbr-nav a:hover { border-color:var(--accent); filter:brightness(.94) }
.mbr-card { border:1px solid var(--line); border-radius:14px; background:#fff; padding:clamp(15px,3vw,30px); margin-bottom:16px; scroll-margin-top:86px }
.mbr-heading { border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:15px }
.mbr-heading p { color:var(--muted) }
.mbr-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.86fr); gap:22px; align-items:start }
.mbr-grid > *, .mbr-grid fieldset { min-width:0 }
.mbr-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 11px; margin:12px 0 }
.mbr label { display:flex; flex-direction:column; justify-content:flex-end; gap:4px; min-width:0; font-weight:700; font-size:14px; margin:0 }
.mbr input, .mbr select, .mbr textarea {
width:100%; min-width:0; min-height:44px; padding:8px 10px; margin:0; border:1px solid #a5bdcf; border-radius:8px;
box-shadow:none; background-color:#fff; color:var(--ink); font:16px/1.25 Arial,sans-serif;
}
.mbr select {
appearance:none; overflow:hidden; text-overflow:ellipsis; padding-right:26px;
background-image:linear-gradient(45deg,transparent 50%,#486278 50%),linear-gradient(135deg,#486278 50%,transparent 50%);
background-position:right 13px center,right 8px center; background-size:5px 5px; background-repeat:no-repeat;
}
.mbr button.mbr-primary { background:#14568e; color:#fff; border-color:#14568e; min-width:142px }
.mbr-result, .mbr-error { padding:14px 16px; border:1px solid var(--line); border-radius:10px; scroll-margin-top:86px }
.mbr-result { background:#f4f8fb; margin:0 0 12px }
.mbr-error { background:#fff8eb; border-color:#d8b77b; color:#604516 }
.mbr-result dl { margin:0 }
.mbr-result dl > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(6ch,auto); gap:12px; padding:8px 0; border-bottom:1px solid #dde8ef }
.mbr-result dl dt, .mbr-result dl dd { margin:0; overflow-wrap:anywhere }
.mbr-result dl dd { max-width:19ch; font-weight:700; text-align:right }
.mbr-note, .mbr-caption, .mbr-details p { font-size:14px; color:var(--muted) }
.mbr .mbr-note { margin:12px 0 0 }
.mbr-sheet-preview {
--strip-width:10%; --course-height:100%; height:104px; margin-bottom:12px; border:1px solid #89a4b8; border-radius:8px;
background-color:#dfeef7; background-image:linear-gradient(to right,#7195b0 1px,transparent 1px),linear-gradient(to bottom,#7195b0 1px,transparent 1px);
background-size:var(--strip-width) var(--course-height); background-repeat:repeat;
}
.mbr-soffit, .mbr-soffit-tile { border:1px solid #d5c7a9; background:#fff9ed; padding:13px 14px; border-radius:10px; margin:12px 0 }
.mbr-soffit { scroll-margin-top:86px }
.mbr-soffit legend { width:auto; color:#62471c; border:none; padding:0 6px; margin:0; font:700 17px Arial,sans-serif }
.mbr-soffit strong, .mbr-soffit-tile strong { display:block; color:#62471c; font-size:28px }
.mbr-soffit-tile p { font-size:14px; margin:0 }
.mbr-details { margin:14px 0; padding:9px 11px; border:1px solid var(--line); border-radius:8px }
.mbr-details summary { font-weight:700; cursor:pointer }
.mbr-card > .mbr-links:last-child { margin-bottom:0; border-top:1px solid var(--line); padding-top:12px }
.mbr-method ul { margin:12px 0; padding-left:24px }
.mbr-method li { margin:5px 0; overflow-wrap:anywhere }
.mbr-method h3 { margin-top:19px }
@media (max-width:800px) {
.mbr-hero, .mbr-grid { grid-template-columns:minmax(0,1fr); gap:13px }
.mbr-hero-figure { max-width:430px }
}
@media (max-width:480px) {
.mbr-fields { grid-template-columns:minmax(0,1fr) }
.mbr-result dl > div { font-size:14px }
.mbr-nav a { width:100% }
}