/* Lookout workbench: the request and construction own the screen. */
body[data-forest-job=canopy] .forest-top>a:last-child{background:#f5efdbdf;border-color:#c5c6aa;color:#425444;box-shadow:none;font-size:.95rem}
body[data-forest-job=canopy] .forest-job .canopy-surface{grid-template-rows:auto minmax(0,1fr);gap:8px 12px}
.canopy-steps{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;padding:0;margin:0}
.canopy-steps li{flex:1;max-width:280px;min-width:0}
.canopy-steps button{width:100%;min-height:44px;border:1px solid #a9b296;border-radius:14px;background:#f1efdfef;color:#405741;font-family:inherit;font-size:1rem;line-height:1.2;font-weight:700;padding:8px;cursor:pointer}
.canopy-steps button[aria-current=step]{background:#315e43;color:#fffce9;border-color:#315e43;box-shadow:inset 0 -3px #203e30}
.canopy-steps b{display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:24px;height:24px;margin-right:6px}
.canopy-surface .build-tools{background:#f4efdfed;border:1px solid #b3b79b;box-shadow:0 5px 18px #20332d24;padding:12px}
.build-tools h3{color:#344d38;font-family:Georgia,serif;font-size:1.12rem;margin:0 0 6px}
.canopy-roots-note,.canopy-material-note{font-size:.875rem;color:#4e5f48;line-height:1.35;margin:4px 0 10px}
.canopy-surface .dig-tile{position:relative;overflow:hidden;background:radial-gradient(ellipse at 35% 30%,#ba9a6f,#8f754f);border:1px solid #856f4c;border-radius:11px;color:#f9ebc7;box-shadow:inset 0 2px 2px #e4cda344,0 1px 1px #30423420}
.canopy-surface .dig-tile:not(.root):not(.dug)::after{content:'';position:absolute;inset:16px 12px;border-radius:50%;border-top:2px solid #64513d;box-shadow:0 3px #c4a577;transform:rotate(-18deg)}
.canopy-surface .dig-tile.dug{background:radial-gradient(ellipse at center,#65563f66 12%,#a0917070 45%,#d9d1b773 70%);border-color:#b7af9555;box-shadow:none;color:#4b5a40;opacity:1}
.canopy-surface .dig-tile.root{background:#c1c5a566;border:0;border-radius:0;box-shadow:none}
.canopy-surface .dig-tile.root::before,.canopy-surface .dig-tile.root::after{content:'';position:absolute;left:50%;top:-5px;height:60px;border-left:5px solid #76644390;border-radius:45%;transform:rotate(12deg)}
.canopy-surface .dig-tile.root::after{left:20%;top:20px;height:35px;border-width:3px;transform:rotate(50deg)}
.dig-reveal{position:absolute;inset:1px;display:grid;place-items:center;background:#f8eab7;border-radius:10px;animation:dig-discovery 2.4s ease both;pointer-events:none}
.dig-reveal svg{width:34px;height:34px}.dig-reveal b{position:absolute;right:1px;bottom:0;font-size:.8rem;color:#28553d}
@keyframes dig-discovery{0%{opacity:0;transform:scale(.7)}15%,70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.85)}}
.canopy-surface .inventory{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin:10px 0 14px}
.canopy-surface .inventory>span{display:grid;grid-template-columns:30px 1fr auto;gap:5px;padding:5px 7px;border-radius:10px;background:#e1e3cd;color:#344932;font-size:.9rem;min-width:0}
.inventory .material-art{width:30px;height:30px}.inventory output{font-weight:800;font-size:1.05rem;font-variant-numeric:tabular-nums}
.canopy-surface .material{background:#fbf6e7;border:1px solid #b0b59b;color:#344b36;box-shadow:0 2px 3px #25452d16;min-height:70px}
.canopy-surface .material[aria-pressed=true]{border:2px solid #315e43;background:#e0e7c9}
.material .material-art{width:45px;height:37px;display:block;margin:0 auto}.material small{display:block;font-size:.75rem;font-weight:400}
.material.is-nudged{outline:3px solid #809657;outline-offset:3px;animation:selector-nudge 1.2s ease 2}
@keyframes selector-nudge{50%{outline-color:#d1ad57}}
.build-tools details{margin-top:12px}.build-tools summary{min-height:44px;padding:10px 0;font-weight:700;cursor:pointer;font-size:.95rem}
.canopy-surface .build-board{border:0;border-radius:22px;background:linear-gradient(145deg,#eee2aa12,#6a755414 55%,#1a38251c);box-shadow:inset 0 0 35px #41634310}
.build-board .build-toolbar{position:relative;z-index:2;background:#e8edd7ed;border:1px solid #bbc6a4;border-radius:15px;color:#2e4c36;padding:6px 10px}
.build-board .build-view-label{color:#2e4c36;text-shadow:none;font-weight:600}
.build-board .build-rotate{background:transparent;box-shadow:none;border:1px solid #9fb18a;color:#36523a}
.build-board .tower-viewport{position:relative;isolation:isolate}
.tower-viewport::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(115deg,transparent 30%,#ffefb812 33%,#ffefb820 42%,transparent 45%);animation:canopy-light 16s ease-in-out infinite alternate}
@keyframes canopy-light{to{transform:translateX(8%);opacity:.4}}
.canopy-leaf{position:absolute;top:6%;left:var(--leaf-x);width:10px;height:5px;border-radius:100% 0;background:#a3ae6390;pointer-events:none;animation:canopy-drift 18s linear infinite;animation-delay:var(--leaf-delay);z-index:1}
@keyframes canopy-drift{0%{transform:translate(0,-18px) rotate(-20deg);opacity:0}12%,70%{opacity:.55}100%{transform:translate(45px,240px) rotate(155deg);opacity:0}}
.build-board svg .build-pad{stroke:transparent;stroke-width:.8;fill:#b6bb9135}
.build-board svg .footprint-pad{fill:#e5d7a43d;stroke:#e6d9ac9c;stroke-width:1.2}
.build-board svg .preview-block{opacity:0;pointer-events:none;transition:opacity .15s}
.build-board svg .suggested .preview-block{opacity:.42}
.build-board svg:has([role=button]:hover) .suggested .preview-block{opacity:0}
.build-board svg [role=button]:hover .preview-block,.build-board svg [role=button]:focus .preview-block{opacity:.6}
.build-board svg [role=button]:focus{outline:none}
.build-board svg [role=button]:hover .build-pad,.build-board svg [role=button]:focus .build-pad{fill:#d7dfb075;stroke:#fff0ad;stroke-width:2}
.build-board svg [role=button]:hover .tile-top,.build-board svg [role=button]:focus .tile-top{stroke:#edda9b;stroke-width:2}
.build-coordinate{fill:#35492c;font-size:12px;paint-order:stroke;stroke:#eeecd2;stroke-width:2px}
.canopy-footer-copy{min-width:0;flex:1}.canopy-footer-copy #canopy-requirement{font-size:.95rem;font-weight:700;color:#304e36;line-height:1.35;margin:0;max-height:none;overflow:visible}
.canopy-footer-copy #job-feedback{font-size:.875rem;margin:4px 0 0;color:#54624a;line-height:1.3;max-height:2.6em}
body[data-forest-job=canopy] #job-submit{background:#315e43;border-color:#315e43;color:#fffce7;box-shadow:0 3px 0 #203f2e}
body[data-forest-job=canopy] #job-submit:disabled,body[data-forest-job=canopy] #job-submit[data-build-ready=false]{background:#e0e3d1;border-color:#b6bea3;color:#58654e;box-shadow:none;opacity:1}
body[data-forest-job=canopy] #job-submit.ready{box-shadow:0 0 0 3px #aabb7844,0 3px 0 #203f2e}
@media(max-width:719px) and (orientation:portrait){
  body[data-forest-job=canopy] .forest-job .canopy-surface{display:flex;overflow:auto}
  .canopy-steps{order:-3;position:sticky;top:0;z-index:4;flex:none;background:#edf0df}.canopy-steps button{font-size:.85rem;padding:6px 2px}.canopy-steps b{display:none}
  .canopy-surface .build-tools{order:-2}.canopy-surface .build-board{order:-1}
  .canopy-footer-copy #canopy-requirement{font-size:.83rem}.canopy-footer-copy #job-feedback{display:none}
}
@media(orientation:landscape) and (max-height:500px){
  body[data-forest-job=canopy] .forest-job .canopy-surface{grid-template-rows:44px minmax(0,1fr);gap:4px 8px}
  .canopy-steps button{font-size:14px;padding:4px}.canopy-steps b{width:20px;height:20px}
  .canopy-footer-copy #canopy-requirement{font-size:13px;line-height:1.25}.canopy-footer-copy #job-feedback{font-size:12px;margin-top:2px;max-height:1.3em}
  .canopy-surface .inventory{grid-template-columns:1fr 1fr}.canopy-surface .inventory>span{padding:3px;font-size:12px;grid-template-columns:20px 1fr auto}.inventory .material-art{width:20px;height:24px}
  .canopy-surface .dig-grid{grid-template-columns:repeat(6,minmax(44px,1fr))}.canopy-surface .dig-tile{min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.dig-reveal,.material.is-nudged,.tower-viewport::before,.canopy-leaf{animation:none}.canopy-leaf{display:none}.dig-reveal{opacity:0}}
html[data-motion=reduced] .dig-reveal,html[data-motion=reduced] .material.is-nudged,html[data-motion=reduced] .tower-viewport::before,html[data-motion=reduced] .canopy-leaf{animation:none}
html[data-motion=reduced] .canopy-leaf{display:none}html[data-motion=reduced] .dig-reveal{opacity:0}
.lookout-money-beat{margin:5px 0 0;font-size:.95rem;color:#38533b;font-weight:650}
.lookout-cost-compare{font-size:.82rem;color:#546348;margin:4px 0 0}
[data-learning-level=gentle] .canopy-surface .dig-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}
[data-learning-level=gentle] .canopy-surface .material{min-height:82px}
.lookout-win{max-width:740px;margin:auto;padding:8px 20px;text-align:center}
.lookout-win-art{position:relative;display:flex;justify-content:center;align-items:center;height:clamp(105px,22vh,220px)}
.lookout-win-art>img{width:110px;height:110px;object-fit:contain}
.lookout-progress-view{width:240px;height:100%;background:radial-gradient(ellipse,#d9dfb880,transparent 72%)}
.lookout-progress-view svg{width:100%;height:100%}
.lookout-win h2{margin:0 0 6px;color:#31583b;font-family:Georgia,serif}
.lookout-win p{font-size:1rem;margin:5px 0;line-height:1.3}
.customer-pay-plan{border:0;padding:8px 0;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.customer-pay-plan legend{font-weight:700;color:#3e5337;margin:0 auto 6px}
.customer-pay-plan button{min-height:44px;border:1px solid #9ba987;background:#f8f2dd;border-radius:12px;color:#345238;padding:10px;font:inherit;cursor:pointer}
.customer-pay-plan button[aria-pressed=true]{background:#315e43;color:#fff9e6;border-color:#315e43}
.lookout-win .planned-split{font-size:.9rem}
.win-leaf{position:absolute;left:calc(8% + var(--n)*7%);top:50%;color:#a3ac57;font-style:normal;pointer-events:none;animation:lookout-cheer 1.7s ease-out both;animation-delay:calc(var(--n)*.035s)}
@keyframes lookout-cheer{0%{opacity:0;transform:translateY(0) scale(.5)}25%{opacity:1}100%{opacity:0;transform:translateY(-85px) rotate(140deg) scale(1.3)}}
@media(orientation:landscape) and (max-height:500px){.lookout-money-beat{font-size:12px;margin-top:2px}.lookout-cost-compare{font-size:11px;margin-top:2px}.lookout-win-art{height:90px}.lookout-win-art>img{width:80px;height:80px}.lookout-win{padding:0 8px}.lookout-win h2{font-size:1.15rem}.lookout-win p{font-size:.85rem}.customer-pay-plan{padding:4px 0}.customer-pay-plan legend{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.win-leaf{animation:none;display:none}}
html[data-motion=reduced] .win-leaf{animation:none;display:none}
