.tool-wrap { max-width: 1180px; padding: 16px 0 42px; }
.tool-hero { isolation: isolate; position: relative; overflow: hidden; min-height: 272px; padding: 30px 34px; border-radius: 24px; background: #edf4eb; display: flex; align-items: center; }
.tool-hero-copy { position: relative; max-width: 52%; }
.tool-kicker { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: #00674e; }
.tool-hero h1 { margin: 10px 0; font-size: clamp(1.8rem, 4.1vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.tool-hero-copy > p:not(.tool-kicker) { color: #28463b; font-size: .96rem; line-height: 1.5; }
.tool-badge { display: inline-block; padding: 5px 11px; margin-top: 12px; border-radius: 999px; font-size: .7rem; font-weight: 750; background: #fff; color: #00674e; }
.tool-road, .tool-scene { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 65%; height: 100%; }
.tool-road { mask-image: linear-gradient(to right, transparent, #000 46%); }
.tool-road img, .tool-scene img { display: block; width: 100%; height: 100%; }
.tool-road img { object-fit: cover; object-position: 62% 56%; }
.tool-scene { width: 58%; mask-image: linear-gradient(to right, transparent, #000 34%); }
.tool-scene img { object-fit: contain; object-position: 85% center; padding: 6px 18px 5px 0; }
.tool-crumb { margin: 12px 0; color: #00674e; font-size: .82rem; font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }
.tool-card { background: #fff; border: 1px solid #deded5; border-radius: 19px; padding: 18px; min-width: 0; }
.tool-card h2, .tool-reading h2, .tool-promo h2 { font-size: 1.17rem; line-height: 1.3; margin: 0 0 12px; }
.tool-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tool-field { display: grid; grid-template-rows: 1fr auto; gap: 5px; font-size: .82rem; font-weight: 700; min-width: 0; }
.tool-field:has([name="distance"]), .tool-field:has([name="unit"]), [data-subscriptions], [data-add-subscription] { grid-column: 1 / -1; }
.tool-field select, .tool-input { background: #faf7f2; border: 1px solid #deded5; border-radius: 10px; min-height: 44px; }
.tool-field select { font: inherit; width: 100%; padding: 6px 8px; }
.tool-input { display: flex; align-items: center; padding-right: 9px; gap: 4px; }
.tool-input:focus-within { outline: 2px solid #147a5e; outline-offset: 1px; }
.tool-input:has([aria-invalid]) { border-color: #ad3c30; }
.tool-input > span { color: #36534a; font-size: .7rem; white-space: nowrap; }
.tool-input input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 10px 8px; font-size: 1rem; color: #092b24; outline: none; }
.tool-actions { margin-top: 15px; display: flex; align-items: center; gap: 10px; }
.tool-actions .button { flex: 1; justify-content: center; }
.tool-reset { background: transparent; color: #00674e; text-decoration: underline; font-weight: 700; padding: 10px 3px; cursor: pointer; }
.tool-caption, #tool-error { font-size: .77rem; margin-top: 8px; }
#tool-error { color: #9d3027; }
#tool-error:empty { display: none; }
.tool-total { background: #00674e; color: #fff; border-radius: 14px; padding: 16px 18px; }
.tool-total p { font-size: .78rem; color: #d9f4e6; }
.tool-total strong { display: block; font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.13; padding: 4px 0; overflow-wrap: anywhere; }
.tool-total [data-result-note]:empty { display: none; }
.tool-result dl { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; }
.tool-result dl > div { flex: 1 1 120px; }
.tool-result dt { font-size: .8rem; }
.tool-result dd { margin: 0; font-weight: 800; font-size: 1.25rem; }
.tool-chart { border-top: 1px solid #dbe6de; margin-top: 14px; padding-top: 12px; }
.tool-chart h2 { font-size: .9rem; margin-bottom: 7px; }
.tool-chart svg { width: 100%; display: block; }
.tool-chart text { font: 10px Manrope, sans-serif; fill: #335247; }
.tool-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: .76rem; margin-bottom: 9px; }
.tool-track { grid-column: 1/-1; height: 6px; border-radius: 8px; overflow: hidden; background: #e5f0e8; }
.tool-track span { display: block; height: 100%; border-radius: inherit; background: #16815c; }
.tool-promo { margin-top: 16px; background: #e6f1e6; border-radius: 18px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-promo h2 { margin: 4px 0 9px; }
.tool-promo a, .tool-related a { color: #00674e; font-weight: 750; }
.tool-reading { margin-top: 22px; }
.tool-reading p, .tool-reading summary { font-size: .88rem; line-height: 1.6; }
.tool-reading details { padding: 9px 0; border-bottom: 1px solid #deded5; }
.tool-reading summary { cursor: pointer; font-weight: 750; }
.tool-related, .tool-directory { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.tool-related a { padding: 12px; border-radius: 12px; background: #e6f1e6; }
.tool-categories { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.tool-categories a { display: inline-block; border: 1px solid #cddfd2; color: #00674e; border-radius: 24px; padding: 8px 13px; font-size: .82rem; font-weight: 750; }
.tool-group { scroll-margin-top: 20px; }
.tool-group .tool-directory { grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); }
.tool-tile { display: grid; grid-template-columns: 94px minmax(0,1fr) 18px; align-items: center; gap: 13px; padding: 12px; }
.tool-tile-art { height: 88px; border-radius: 13px; background: #edf4eb; overflow: hidden; }
.tool-tile-art img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tool-tile-copy p { margin-top: 5px; color: #36534a; font-size: .8rem; }
.tool-tile-arrow { color: #00674e; font-size: 1.15rem; justify-self: end; }
.tool-promo > a { flex-shrink: 0; }
@media (max-width: 580px) {
 .tool-group .tool-directory { grid-template-columns: 1fr; gap: 7px; }
 .tool-tile.tool-card { grid-template-columns: 62px minmax(0,1fr) 15px; padding: 8px; gap: 9px; }
 .tool-tile-art { height: 56px; border-radius: 9px; }
 .tool-tile h3 { font-size: .93rem; }
 .tool-tile-copy p { display: none; }
 .tool-categories { margin: 12px 0 18px; }
 .tool-categories a { padding: 6px 9px; font-size: .73rem; }
 .tool-promo { align-items: flex-start; flex-direction: column; gap: 0; }
}
.tool-tile h3 { line-height: 1.3; }
.tool-tile:hover { border-color: #4b8f75; }
.subscription-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; border-bottom: 1px solid #deded5; padding-bottom: 6px; margin-bottom: 8px; }
.subscription-row button { grid-column: 1/-1; justify-self: end; }
@media (min-width: 851px) { .tool-form[data-calculator="fuel"] .tool-fields { grid-template-columns: 1fr; } }
@media (max-width: 850px) {
 .tool-grid { grid-template-columns: 1fr; }
 .tool-hero-copy { max-width: 58%; }
 .tool-related, .tool-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
 .tool-wrap { width: calc(100% - 26px); padding-top: 8px; }
 .tool-hero { min-height: 0; padding: 14px 15px; border-radius: 16px; }
 .tool-hero-copy { max-width: 100%; }
 .tool-hero h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
 .tool-road, .tool-scene, .tool-badge { display: none; }
 .tool-hero.car::after { content: ''; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300674e' stroke-width='1.7'%3E%3Crect x='3' y='3' width='10' height='17' rx='2'/%3E%3Cpath d='M6 6h4v5H6z M13 13h3v4a2 2 0 0 0 4 0V9l-3-4'/%3E%3C/svg%3E"); }
 .tool-card { padding: 14px; }
 .tool-related, .tool-directory { grid-template-columns: 1fr; }
}
.tool-period { grid-column: 1 / -1; color: #00674e; font-size: .78rem; font-weight: 750; }
