/* Extend the accepted v2 mono/voxel layout. */
.krest-landing .v3-section{border-top:1px solid var(--line);padding:48px 0}
.v3-section h2{font-size:29px;line-height:1.3;font-weight:500;letter-spacing:-.8px;margin:0 0 16px}
.v3-section p{font-size:14px;line-height:1.8;margin:0 0 16px;max-width:850px}
.tour-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start}
#live-demo{display:block;width:100%;height:820px;border:1px solid var(--line);border-radius:2px;background:var(--bg)}
.tour-steps{display:grid;gap:10px;padding:0;list-style:none;margin:0}
.tour-steps button{width:100%;text-align:left;min-height:48px;padding:13px 12px;font:13px/1.5 var(--aim-p-font),monospace;border:1px solid var(--line);border-radius:2px;background:var(--bg);color:var(--ink);cursor:pointer}
.tour-steps button[aria-current=step]{border-color:var(--signal);background:var(--wash)}
.tour-explanation{font-size:12px!important;min-height:92px;margin:18px 0!important;color:var(--muted)}
.origin-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:42px}
.origin-dates{margin:22px 0 0;padding-left:20px;font-size:14px;line-height:1.9}.origin-dates li{padding:0 0 12px 4px}
.model-author{border-left:1px solid var(--line);padding-left:26px}.model-author img{display:block;width:120px;height:120px;border-radius:2px;margin-bottom:18px}.model-author h3{font-weight:500;font-size:17px;margin:0 0 8px}.model-author p,.model-author a{font-size:12px}
.method-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 36px;margin:26px 0}.method-directions dt{font-size:14px;font-weight:600;margin-bottom:7px}.method-directions dd{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.method-formula{padding:16px;border-left:2px solid var(--signal);background:var(--wash);font:13px/1.8 var(--aim-p-font),monospace;white-space:normal}
.prompt-card{margin:26px 0;padding:22px;border:1px solid var(--line);border-radius:2px}.prompt-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--aim-p-font),monospace;margin:0 0 18px}.prompt-card button{font:13px var(--aim-p-font),monospace;background:var(--bg);color:var(--ink);border:1px solid var(--ink);padding:11px 15px;cursor:pointer;min-height:44px}.prompt-card p{font-size:12px;line-height:1.8;color:var(--muted);margin:18px 0 0}
.mac-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}.mac-layout img{max-width:100%;width:300px;height:auto;border:1px solid var(--line);border-radius:2px}.mac-layout .setup-detail{font-size:12px;margin-top:20px}.krest-f26{border-top:1px solid var(--line);padding:26px 0;margin:0;font-size:13px;line-height:1.8}
html[data-krest-tour]{--signal:var(--aim-s-selection);--line:var(--aim-s-divider);--bg:var(--aim-s-canvas);--ink:var(--aim-s-text);--muted:var(--aim-s-text-secondary)}
html[data-krest-tour] body{margin:0;background:var(--bg);color:var(--ink);font:12px/1.6 var(--aim-p-font),monospace}
html[data-krest-tour] #krest-workspace{margin:0;max-width:none}
.tour-shell{padding:14px;box-sizing:border-box;max-width:100%;overflow:hidden}.tour-caption{font-size:11px;margin:0 0 4px;color:var(--muted)}
.tour-shell .cross-stage{border:0;padding:0;background:transparent;margin:0;box-shadow:none}.tour-shell .research-cross{width:100%;height:430px;min-height:0;max-height:none;overflow:visible}.tour-shell .source-key,.tour-shell .source-colour-legend,.tour-shell .cross-reading,.tour-shell .source-legend{display:none}.tour-shell .cross-arm-label{display:block;font-size:23px}.tour-shell .cross-arm-sum{font-size:16px}.tour-shell .cross-axes text{font-size:15px}.tour-shell .observed-dot{fill:var(--signal)}
.tour-shell .research-block{cursor:pointer}.tour-shell .research-block .tour-hit{fill:transparent!important;stroke:none!important;pointer-events:all}.tour-shell .tour-selected rect:not(.tour-hit){stroke:var(--signal);stroke-width:4}.tour-shell .tour-arm-active rect:not(.tour-hit){fill:var(--signal)}.tour-shell .recoil-pull{fill:none;stroke:var(--signal);stroke-width:1.5;stroke-dasharray:5 7;opacity:.45;pointer-events:none}
.tour-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:5px 0 14px}.tour-tools label{display:grid;gap:3px;font-size:10px;color:var(--muted)}.tour-tools button,.tour-tools select{font:11px var(--aim-p-font),monospace;min-height:40px;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:2px;color:var(--ink);background:var(--bg);cursor:pointer}.tour-tools button:focus-visible,.tour-tools select:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.tour-card{height:230px;overflow:auto;border-top:1px solid var(--line);padding-top:15px;box-sizing:border-box}.tour-card h3{font-size:14px;font-weight:500;line-height:1.6;margin:0 0 8px}.tour-card p{font-size:12px;line-height:1.7;margin:0 0 10px}.tour-card dl{display:grid;grid-template-columns:1fr 1.7fr;gap:5px 12px;font-size:12px;margin:0}.tour-card dt{color:var(--muted)}.tour-card dd{margin:0;overflow-wrap:anywhere}.tour-result{font-size:11px;line-height:1.7;margin:12px 0 0;min-height:38px;color:var(--muted)}
@media(max-width:800px){.tour-layout,.origin-layout,.mac-layout{grid-template-columns:1fr;gap:24px}.tour-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.tour-steps button{font-size:12px;height:100%}.tour-explanation{min-height:64px}.model-author{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}.model-author img{float:left;width:88px;height:88px;margin:0 18px 10px 0}.model-author:after{content:"";display:block;clear:both}.mac-layout img{width:260px}.method-directions{gap:20px}.v3-section h2{font-size:25px}.krest-landing .v3-section{padding:36px 0}}
@media(max-width:600px){#live-demo{height:820px}.tour-shell .research-cross{height:300px}.tour-shell .cross-arm-label{font-size:40px}.tour-shell .cross-arm-sum{font-size:21px}.tour-shell .cross-axes text{font-size:22px}.tour-tools button{flex:1;white-space:normal}.tour-tools label{flex:1 0 40%}.tour-card{height:300px}.tour-card dl{grid-template-columns:1fr;gap:2px}.tour-card dd{margin-bottom:6px}.method-directions{grid-template-columns:1fr}.prompt-card{padding:16px}.prompt-card pre{font-size:11px}.tour-result{font-size:10px}}

@media(max-width:800px){.tour-layout>aside{grid-row:1}.tour-layout>#live-demo{grid-row:2}}

.tour-shell .cross-axes text[text-anchor="middle"]{transform:translateY(44px)}
