/* Gas cost calculator: layout on top of engine-u02-trip-cost.css. */
.tool .u2-opts { display: grid; grid-template-columns: 1fr 1fr 96px; gap: 8px; }
.tool .u2-opts .u2-seg button { font-size: 14px; padding: 0 4px; }
.tool .u2-opts select { width: 100%; min-height: 52px; padding: 0 8px; font-size: 14px; }
.tool .u2-routenote:empty, .tool .u2-pricesrc:empty { display: none; }
.tool .u2-routenote, .tool .u2-pricesrc { margin-top: -8px; }
.tool .u2-presets button b { font-weight: 900; color: rgb(var(--ink)); margin-left: 2px; }
.tool .u2-freq { display: flex; flex-direction: column; gap: 8px; }
.tool .u2-result .u2-seg button { font-size: 14px; padding: 0 2px; }
.tool .u2-stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool .u2-stats3 b { font-size: 18px; line-height: 24px; }
.tool .u2-note { font-size: 14px; line-height: 20px; font-weight: 700; color: rgb(var(--ink) / .75); margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.tool .u2-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.tool .u2-actions .btn { min-width: 0; }
.tool .u2-actions .btn-primary { white-space: nowrap; padding: 0 12px; }
.tool .u2-sq { padding: 0 14px; gap: 6px; font-size: 15px; }
.tool .u2-other:empty { display: none; }
.tool .u2-vsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool .u2-vsgrid > div { display: flex; flex-direction: column; background: var(--surface); }
.tool .u2-vsgrid .u2-vs { font-size: 13px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }
.tool .u2-vsgrid b { font-size: 26px; line-height: 32px; font-weight: 950; }

.tool .u2-verdict { font-size: 18px; line-height: 26px; font-weight: 850; }

/* Mobile answer dock: fixed at the bottom while the result card is out of view. */
.tool .u2-dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 20px; background: rgb(var(--ink)); color: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / .25); animation: u2-dock-in .35s var(--ease-out); }
.tool .u2-dock-a { font-size: 22px; line-height: 28px; font-weight: 950; font-variant-numeric: tabular-nums; }
.tool .u2-dock-b { font-size: 15px; line-height: 20px; font-weight: 800; opacity: .75; font-variant-numeric: tabular-nums; }
@keyframes u2-dock-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .tool .u2-dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .tool .u2-dock { animation: none; } }
@media (prefers-color-scheme: dark) { .tool .u2-dock { color: #12061F; } }

.tool .u2-rate { display: inline; padding: 0; font: inherit; font-weight: 800; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.tool .u2-kicker { text-wrap: balance; }
.tool .u2-actions .btn-primary { padding: 0 16px; }
.tool .u2-carpick { min-height: 44px; font-size: 14px; }
.tool .u2-result .u2-disc { min-height: 44px; font-size: 14px; }
.tool .u2-splitseg { grid-auto-columns: minmax(0, 1fr); grid-template-columns: 1.8fr repeat(5, minmax(0, 1fr)); grid-auto-flow: row; }
.tool .u2-splitseg::before { display: none; }
.tool .u2-splitseg button[aria-checked="true"] { background: rgb(var(--ink)); }

/* Fix round: where you charge (EV), tidy stat tiles, split share on one line, comparison links. */
.tool .u2-pricesrc { display: flex; flex-direction: column; gap: 8px; }
.tool .u2-charge-lab { font-size: 14px; line-height: 20px; font-weight: 850; color: rgb(var(--ink) / .85); }
.tool .u2-charge button { font-size: 14px; padding: 0 4px; }
.tool .u2-charge.is-none::before { display: none; }
.tool .u2-charge-note { font-size: 14px; line-height: 20px; }
.tool .u2-stats > div span { display: block; font-size: 13px; line-height: 17px; }
.tool .u2-each { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tool .u2-each small { display: inline; font-size: 15px; line-height: 20px; color: rgb(var(--ink) / .7); }
.tool .u2-fares { align-self: flex-start; font-size: 15px; font-weight: 800; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
