.shell:has(.opt-preview){min-height:100dvh;height:auto;grid-template-rows:100px 1fr 58px}.workspace:has(.opt-preview){align-items:start}.workspace:has(.opt-preview) .side-rail{height:calc(100dvh - 158px);position:sticky;top:25px;min-height:490px}.workspace:has(.opt-preview) #main{overflow:visible}.opt-preview{height:auto;min-height:0;display:block;padding:25px 0 15px}.opt-preview .intro{padding-bottom:32px;align-items:end}.opt-preview h1{font-size:clamp(42px,4.4vw,66px);font-weight:500;letter-spacing:-.035em}.opt-intro-copy p{font-size:13px;line-height:1.8;color:#68715e}.opt-intro-copy strong{font-weight:400;color:#344b25}.opt-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:5px 0 20px}.opt-steps button{display:flex;flex-wrap:wrap;align-items:center;gap:9px;background:none;border:0;border-bottom:2px solid #d5dacb;border-radius:0;color:#6d7764;padding:10px 0 13px;text-align:left;position:relative;min-height:61px}.opt-step-number{font:400 11px Poppins,sans-serif;color:#819070}.opt-step-name{display:flex;align-items:center;gap:8px;font:500 17px Kanit,sans-serif}.opt-step-name svg{width:22px;height:22px;stroke-width:1.4}.opt-steps button[aria-pressed=true]{color:#29461b;border-bottom-color:#466a30}.opt-steps button[aria-pressed=true] .opt-step-number{color:#29461b}.opt-steps button small{position:absolute;right:0;top:0;font-size:7px;letter-spacing:.1em;color:#6a785b}.opt-steps button:hover{color:#29461b;border-bottom-color:#83966d}
.opt-scene{overflow:hidden;border-radius:21px;border:1px solid #cbd2c0;background:#e1e6da;position:relative}.opt-map{width:100%;height:410px;display:block}.opt-map text{font:500 17px Poppins,sans-serif}.opt-scene-heading{position:absolute;top:18px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;z-index:1;pointer-events:none}.opt-scene-heading>span{display:flex;align-items:center;gap:8px;background:#f8f5eced;border-radius:9px;padding:8px 10px;font-size:10px;color:#4b6140;backdrop-filter:blur(6px)}.opt-scene-heading svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5}.opt-scene-heading>span:last-child{font-variant-numeric:tabular-nums;font-size:10px}.opt-caption{padding:20px 23px 23px;background:#f0f0e5;display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:132px}.opt-caption small{font-size:8px;letter-spacing:.12em;color:#6e7c5e;display:block;margin-bottom:7px}.opt-caption h2{font:500 clamp(25px,2.4vw,34px)/1.12 Kanit,sans-serif;letter-spacing:-.02em;color:#2b451e}.opt-caption p{font-size:11px;color:#616c56;line-height:1.7;margin-top:8px}.opt-replay{display:flex;align-items:center;gap:9px;min-height:44px;border-radius:11px;border:1px solid #8f9d7d;background:none;color:#3c5929;font-size:11px;padding:9px 12px;flex:none}.opt-replay:hover{background:#f8f7ed}.opt-replay svg{width:17px;height:17px}.opt-result{display:flex;align-items:center;gap:10px;min-height:55px;border-bottom:1px solid #d1d6c7;padding:12px 2px;font-size:11px;color:#4a6236}.opt-result svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}.opt-navigation{display:flex;justify-content:space-between;align-items:center;margin:17px 0 12px}.opt-navigation>button:not(.proposal-cta){background:none;border:0;padding:6px 0;display:flex;align-items:center;gap:9px;min-height:44px;font-size:11px}.opt-navigation>button:not(.proposal-cta) svg{width:17px;height:17px}.opt-navigation>.proposal-cta{font-size:11px;min-height:44px}.opt-example-note{font-size:9px;line-height:1.7;color:#6f7965;margin:0 0 22px;max-width:640px}.opt-load-stage{padding:72px 26px 25px;min-height:410px;background:radial-gradient(ellipse at 55% 55%,#e3e8d9 0%,#f5f2e9 75%)}.opt-visual-eyebrow{display:block;font-size:9px;letter-spacing:.16em;text-align:center;color:#6e7c5f;margin-bottom:18px}.opt-vehicles{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:650px;margin:auto}.opt-vehicle-card{padding:17px 20px 15px;border:1px solid #cbd3be;border-radius:17px;background:#fbf9f1c9;color:var(--vehicle)}.opt-vehicle-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px}.opt-vehicle-heading>span:last-child{font:500 28px/1 Kanit,sans-serif}.opt-vehicle-heading small{font:400 12px Poppins,sans-serif;margin-left:2px}.opt-vehicle{width:100%;max-height:110px;display:block;margin:10px 0;fill:none;stroke:var(--vehicle);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.opt-units{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.opt-units span{display:grid;place-items:center;aspect-ratio:1/1;border-radius:7px;border:1px solid #d5dbcb}.opt-units svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5}.opt-units .filled{background:#e4eadb;color:var(--vehicle);border-color:#a6b695;animation:unit-arrive .38s both;animation-delay:var(--delay)}.opt-units .empty{opacity:.4}.opt-load-foot{display:flex;align-items:center;justify-content:space-between;padding-top:12px}.opt-load-foot strong{font-size:13px;font-weight:500}.opt-load-foot strong>span{font-weight:400;font-size:10px;color:#657259}.opt-load-foot>svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5}.opt-capacity-note{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:15px;color:#657653;font-size:10px}.opt-capacity-note svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5;fill:none}@keyframes unit-arrive{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:901px) and (max-width:1150px){.opt-preview .intro{grid-template-columns:1fr}.opt-step-name{font-size:15px}.opt-steps{gap:10px}.opt-step-name svg{width:19px}.opt-vehicle-card{padding:14px}.opt-vehicles{gap:14px}.opt-load-stage{padding-left:18px;padding-right:18px}}
@media(max-width:900px){.shell:has(.opt-preview){grid-template-rows:84px 1fr auto}.opt-preview{padding-top:20px}.opt-map{height:360px}.opt-steps{gap:12px}.opt-preview h1{font-size:48px}.opt-caption h2{font-size:29px}}
@media(max-width:560px){.shell:has(.opt-preview){padding:0 19px;grid-template-rows:76px 1fr auto}.opt-preview{padding-top:18px}.opt-preview .intro{gap:13px;padding-bottom:22px;grid-template-columns:1fr}.opt-preview h1{font-size:44px}.opt-intro-copy p{font-size:12px}.opt-steps{gap:8px;padding:4px 0 18px}.opt-steps button{flex-direction:column;align-items:start;gap:7px;padding:9px 0 11px;min-height:72px}.opt-step-number{font-size:10px}.opt-step-name{gap:5px;font-size:14px}.opt-step-name svg{width:16px;height:16px}.opt-steps button small{font-size:6px;top:9px;right:0}.opt-map{height:285px}.opt-scene{border-radius:18px}.opt-scene-heading{top:12px;left:12px;right:12px}.opt-scene-heading>span{font-size:8px;padding:7px 8px}.opt-scene-heading svg{width:14px;height:14px}.opt-caption{padding:17px 18px 20px;display:block;min-height:0}.opt-caption h2{font-size:27px;max-width:280px}.opt-caption p{font-size:11px;line-height:1.75}.opt-replay{margin-top:15px;min-height:42px;font-size:10px}.opt-result{font-size:10px;line-height:1.65}.opt-example-note{font-size:8px}.opt-load-stage{padding:66px 12px 22px;min-height:0}.opt-visual-eyebrow{font-size:8px;letter-spacing:.1em;margin-bottom:14px}.opt-vehicles{gap:10px}.opt-vehicle-card{padding:12px 9px;border-radius:13px}.opt-vehicle-heading{font-size:10px}.opt-vehicle-heading>span:last-child{font-size:23px}.opt-vehicle-heading small{font-size:9px}.opt-vehicle{margin:6px 0;height:73px}.opt-units{gap:3px;grid-template-columns:repeat(4,minmax(0,1fr))}.opt-units svg{width:15px;height:15px}.opt-load-foot{padding-top:10px}.opt-load-foot strong{font-size:12px}.opt-load-foot strong>span{font-size:8px}.opt-capacity-note{font-size:9px;text-align:center}.opt-navigation .proposal-cta{min-height:46px}.opt-preview .intro-kicker{font-size:8px}}
@media(prefers-reduced-motion:reduce){.opt-units .filled{animation:none}}
@media(max-width:370px){.opt-step-name{flex-direction:column;align-items:flex-start;gap:5px;font-size:13px}.opt-steps button{min-height:90px}.opt-steps button small{top:10px;font-size:5px}.opt-preview h1{font-size:39px}.opt-units svg{width:13px;height:13px}.opt-vehicle-heading{font-size:9px}.opt-vehicle-heading>span:last-child{font-size:20px}}

/* Explicit, restartable feedback for every Repetir action. */
.opt-scene[data-replayed] .opt-units .filled{animation:none}
.opt-scene.is-replaying[data-stage="0"] .opt-map-base rect{animation:opt-base-replay 1.2s ease both}
.opt-scene.is-replaying[data-stage="0"] .opt-map-point{animation:opt-point-replay .7s ease both;animation-delay:var(--point-delay)}
.opt-scene.is-replaying[data-stage="1"] .opt-units .filled{animation:opt-load-replay .65s ease both;animation-delay:calc(var(--delay) * 2)}
.opt-scene.is-replaying[data-stage="2"] .opt-map-point{animation:opt-point-replay .75s ease both;animation-delay:var(--point-delay)}
.opt-scene.is-replaying[data-stage="2"] .opt-point-order li{animation:opt-point-replay .75s ease both;animation-delay:var(--point-delay)}
.opt-replay[aria-busy="true"]{opacity:.8}
@keyframes opt-base-replay{0%{stroke-width:3}40%{stroke-width:9;stroke:#b8c69f}100%{stroke-width:3}}
@keyframes opt-point-replay{0%{opacity:.08}65%{opacity:1}100%{opacity:1}}
@keyframes opt-load-replay{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
@keyframes opt-line-replay{from{stroke-dashoffset:var(--line-length);opacity:.2}to{stroke-dashoffset:0;opacity:1}}
@media(prefers-reduced-motion:reduce){.opt-scene.is-replaying *{animation:none!important}}

/* Longer step names remain legible on narrow screens. */
.opt-step-name{min-width:0;line-height:1.25}.opt-step-name svg{flex-shrink:0}
@media(max-width:560px){.opt-step-name{flex-direction:column;align-items:flex-start;gap:5px}.opt-steps button{min-height:100px}.opt-step-name>span{overflow-wrap:normal}}

.opt-assigned-points{margin-top:12px;padding-top:10px;border-top:1px solid #cbd3be;font-size:10px;line-height:1.5}.opt-assigned-points>span{color:#657259}.opt-assigned-points ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 10px}.opt-assigned-points li{overflow-wrap:anywhere}.opt-assigned-points li::before{content:"·";margin-right:4px}

/* The stop order is a numbered sequence; street routing belongs to the next step. */
.opt-point-order{list-style:none;margin:0;padding:18px 23px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;background:#f6f2ea;border-top:1px solid #d8ddce}
.opt-point-order li{min-width:0;display:flex;align-items:center;gap:9px;font:400 11px/1.5 Poppins,sans-serif;color:#344b25}
.opt-order-number{display:grid;place-items:center;min-width:31px;height:31px;flex:none;border:1px solid var(--vehicle);border-radius:50%;color:var(--vehicle);font-size:10px;font-variant-numeric:tabular-nums}
.opt-point-order li>span:last-child{overflow-wrap:anywhere}
@media(max-width:560px){.opt-point-order{grid-template-columns:1fr;padding:15px 18px;gap:10px}.opt-order-number{min-width:28px;height:28px}.opt-point-order li{font-size:11px}}
