/* v1.0.2: state changes paint a single card, never nested text backgrounds. */
.power-options button,.mode-buttons button{transition:none!important;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;position:relative;min-width:0;box-sizing:border-box;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.power-options button *, .mode-buttons button *{background:transparent!important;transition:none!important}
.power-options button[aria-pressed="true"],.mode-buttons button[aria-pressed="true"]{background:#328c9c!important;border-color:#328c9c!important;color:#fff!important}
.power-options button[aria-pressed="false"],.mode-buttons button[aria-pressed="false"]{background:#fff!important;border-color:#dedfe2!important;color:#202428!important}
.power-options button[aria-pressed="true"] *, .mode-buttons button[aria-pressed="true"] *{color:#fff!important}
.power-options button[aria-pressed="false"] .amp-title,.power-options button[aria-pressed="false"] .option-time,.mode-buttons button[aria-pressed="false"] strong{color:#202428!important}
.power-options button[aria-pressed="false"] small,.mode-buttons button[aria-pressed="false"] span{color:#60666c!important}
.power-options button:focus-visible,.mode-buttons button:focus-visible{outline:2px solid #328c9c;outline-offset:3px}
.power-options .amp-title{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:22px;line-height:1.5}
.power-options .selected-marker{display:inline-block;width:16px;flex:0 0 16px;text-align:right;opacity:0}
.power-options button[aria-pressed="true"] .selected-marker{opacity:1}
.power-options button .option-time{min-height:32px;line-height:1.45}
.power-options button small{margin-top:auto;padding-top:8px}
.choose-fields>label,.live-ranges>div,.mode-selector>div,.result-layout>*{min-width:0}
select{max-width:100%;text-overflow:ellipsis}
.article-presets{grid-template-columns:minmax(100px,1fr) minmax(0,2fr);margin-bottom:24px}
@media(hover:hover) and (pointer:fine){.power-options button[aria-pressed="false"]:hover,.mode-buttons button[aria-pressed="false"]:hover{background:#f5f6f7!important;border-color:#328c9c!important}}
@media(max-width:700px){
 main,.embedded main{padding-left:16px;padding-right:16px}
 .mode-selector,.embedded .mode-selector{padding:18px 0;gap:12px}
 .mode-selector>div:first-child,.embedded .mode-selector>div:first-child{display:block;margin-bottom:12px}
 .mode-hint{display:block;margin-top:5px!important}
 .mode-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%}
 .mode-buttons button,.embedded .mode-buttons button{width:100%;min-width:0;padding:12px;min-height:70px}
 .mode-buttons button strong{font-size:14px;line-height:1.4}
 .mode-buttons button span{font-size:12px;line-height:1.5}
 .result .time,.embedded .result .time{font-size:clamp(34px,9vw,45px);line-height:1.2;letter-spacing:-1.2px;white-space:normal}
 .time .unit{font-size:14px;letter-spacing:0;margin-left:4px;margin-right:6px}
 .live-ranges{gap:16px}.live-ranges label{font-size:12px;gap:6px;align-items:center}.live-ranges output{font-size:15px}
 .vehicle{flex-wrap:wrap;gap:10px}.vehicle>div{flex:1;min-width:0}.vehicle strong{line-height:1.5}.vehicle small{line-height:1.6;overflow-wrap:anywhere}
 .embedded .choose-fields,.article-presets{margin:18px 0 24px!important;gap:12px}
 .article-presets select{font-size:16px;min-height:46px;width:100%}
 .power-heading{gap:12px;align-items:start}.compare-tag{display:none}
 .power-title{display:block}.power-title small{display:block;margin-top:6px}
 .power-options,.embedded .power-options{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
 .power-options button,.embedded .power-options button{display:grid;grid-template-columns:52px minmax(0,1fr) 98px;align-items:center;column-gap:10px;padding:16px 28px 16px 14px;min-height:74px;width:100%;text-align:left;border-radius:8px}
 .power-options .amp-title,.embedded .amp-title{font-size:14px;min-height:0;line-height:1.5;display:block}
 .power-options .selected-marker{position:absolute;right:10px;top:9px;width:14px;font-size:12px;line-height:1}
 .power-options button .option-time,.embedded .power-options button .option-time{font-size:18px;letter-spacing:-.4px;line-height:1.5;min-height:0;margin:0;white-space:nowrap}
 .power-options button small,.embedded .power-options button small{font-size:12px;line-height:1.5;margin:0;padding:0;text-align:right;white-space:normal}
 .limit-notice{align-items:flex-start}.limit-notice p{margin-top:0;line-height:1.7}
 .detail-grid{gap:20px 14px}.detail-grid strong{font-size:17px;overflow-wrap:anywhere}
 .stages{gap:18px!important}.stage-head{font-size:12px}.stage-time{font-size:15px!important}
 .embedded .result-note{line-height:1.7;text-align:left}
}
@media(max-width:480px){.article-presets,.embedded .article-presets{grid-template-columns:1fr}.article-presets label:first-child{max-width:160px}}
@media(max-width:360px){.power-options button,.embedded .power-options button{grid-template-columns:44px minmax(0,1fr);row-gap:2px;padding-right:28px}.power-options button .amp-title{grid-row:1/3}.power-options button small{grid-column:2;text-align:left}.power-options button .option-time{font-size:18px}.live-ranges{gap:12px}}
/* Keep article controls aligned with the rest of the embedded calculator. */
.embedded .article-presets{margin:20px 23px 24px}
@media(max-width:700px){
 .embedded #results-view{padding:0 16px!important}
 .embedded .vehicle,.embedded .power-row,.embedded .details{margin-left:0;margin-right:0}
 .embedded .result-layout{padding:25px 0 22px}
 .embedded .article-presets{margin:18px 0 24px!important}
}
