.rehearse-entry{display:flex;gap:20px;align-items:center;justify-content:space-between;background:#e8eee3;border:1px solid #d2ddc9;border-radius:12px;padding:18px 20px;margin-top:20px}.rehearse-entry b,.rehearse-entry span{display:block}.rehearse-entry b{font-size:18px;color:#214d3d}.rehearse-entry span{font-size:15px;color:#526259;margin-top:5px}.rehearse-entry .button{white-space:nowrap}
body[data-page=rehearsal]{--replay-accent:#cd8432;background:#f6f5ef;color:#243d34}.replay-wrap{max-width:1500px;padding:32px clamp(18px,3vw,44px) 46px;margin:auto}.replay-heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-bottom:24px}.replay-heading h1{font-size:clamp(27px,3vw,38px);line-height:1.3;margin:9px 0}.replay-heading p{font-size:16px;color:#5a6c61;margin:0;line-height:1.7}.replay-heading .eyebrow{color:#947044;letter-spacing:2px;font-size:12px}.replay-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.replay-links .button{min-height:42px;font-size:15px}.replay-shell{border:1px solid #dbe2d4;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 40px #1f3f2a09}.replay-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid #e0e6dc;background:#fff}.replay-toolbar strong{font-size:17px}.replay-badges{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.replay-badge{font-size:13px;background:#edf1e9;padding:6px 10px;border-radius:30px;color:#365642}.replay-badge.warning{background:#fff3da;color:#7b571c}.replay-days{display:flex;gap:7px;overflow:auto;padding:12px 20px;background:#fcfcf8;border-bottom:1px solid #e0e6dc;scrollbar-width:thin}.replay-days button{flex-shrink:0;border:1px solid #dce3d5;background:#fff;color:#4d6157;border-radius:8px;padding:9px 14px;font:inherit;font-size:14px;cursor:pointer;min-height:42px}.replay-days button[aria-pressed=true]{background:#234f3f;color:#fff;border-color:#234f3f}.replay-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:490px}.replay-stage{position:relative;background:#eceddd;overflow:hidden;min-height:460px;isolation:isolate}.replay-map{display:block;width:100%;height:100%;min-height:460px;position:absolute;inset:0}.replay-map text{font-family:system-ui,'Microsoft YaHei',sans-serif}.map-landmark{font-size:17px;fill:#3e5e4a;font-weight:650;paint-order:stroke;stroke:#f4f5e9;stroke-width:6;stroke-linejoin:round}.map-terrain-label{font-size:26px;fill:#687d5a;opacity:.34;letter-spacing:12px}.map-grid{stroke:#c8d0b9;stroke-width:1;opacity:.45}.map-transport{filter:drop-shadow(0 4px 3px #28403633)}.map-stop{cursor:pointer}.map-stop:focus-visible circle{stroke:#111;stroke-width:5}.map-location-halo{fill:#fff8d9;opacity:.9}.map-active-track{fill:none;stroke-width:7;stroke-linecap:round}.map-day-track{fill:none;stroke-width:4;stroke-dasharray:7 7;opacity:.6}.map-overlay{position:absolute;left:20px;top:18px;pointer-events:none;max-width:calc(100% - 40px);z-index:1}.map-day-label{display:inline-flex;align-items:center;gap:8px;border-radius:7px;background:#fffdf2eb;padding:9px 13px;color:#46604c;font-size:14px;box-shadow:0 3px 15px #293d2a09}.map-day-label i{width:9px;height:9px;border-radius:50%;background:var(--replay-accent)}.map-overlay h2{font-size:22px;line-height:1.4;font-weight:650;margin:12px 0 0;max-width:440px;text-shadow:0 1px 10px #fff}.map-legend{position:absolute;left:18px;bottom:18px;right:18px;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:13px;color:#47604b}.map-legend span{background:#fffdf1ed;padding:7px 10px;border-radius:6px}.map-compass{position:absolute;right:24px;top:22px;color:#657a58;font-size:13px;text-align:center;line-height:1.5}.map-compass b{display:block;font-size:21px}.replay-card{padding:22px;border-left:1px solid #dde3d6;display:flex;flex-direction:column;min-width:0;background:#fffefa}.replay-photo{height:150px;border-radius:12px;overflow:hidden;position:relative;margin-bottom:16px;background:#e9ecdf}.replay-photo img{width:100%;height:100%;object-fit:cover}.replay-photo small{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#122b2bc7);color:white;padding:22px 10px 7px;font-size:12px}.replay-card .scene-category{font-size:13px;letter-spacing:1px;color:#8e6e35;display:flex;justify-content:space-between;gap:8px}.replay-card h3{font-size:22px;line-height:1.45;margin:9px 0 10px}.replay-card p{font-size:15px;line-height:1.8;color:#566859;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.replay-card .scene-route{color:#315f4b;font-size:16px;font-weight:650}.scene-meta{display:flex;gap:7px;flex-wrap:wrap;margin:4px 0 12px}.scene-meta span{font-size:13px;padding:5px 8px;border-radius:5px;background:#edf0e7;color:#3f5847}.scene-note{margin-top:auto!important;padding-top:12px;border-top:1px solid #e2e6da;font-size:13px!important;color:#6b7055!important}.replay-controls{padding:17px 22px 18px;border-top:1px solid #dce3d5;background:white}.replay-progress-row{display:flex;gap:13px;align-items:center}.replay-progress-row input{width:100%;accent-color:#254f3e;cursor:pointer;height:28px}.replay-progress-row output{font-size:13px;color:#526453;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:88px;text-align:right}.replay-control-row{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:10px;flex-wrap:wrap}.replay-buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.replay-controls button{font:inherit;cursor:pointer;background:#f4f6ef;border:1px solid #dce3d5;padding:9px 14px;border-radius:8px;color:#345642;font-size:14px;min-height:44px}.replay-controls button:disabled{opacity:.45;cursor:default}.replay-controls .replay-play{background:#234f3f;color:white;border-color:#234f3f;min-width:108px}.replay-speed{display:flex;align-items:center;gap:8px;font-size:14px;color:#526453}.replay-speed select{font:inherit;border:1px solid #d9e1d2;border-radius:7px;padding:9px;background:white;color:#314c3b;min-height:42px}.replay-footnote{font-size:13px;color:#65715b;line-height:1.7;margin:11px 0 0}.replay-timeband-panel{margin-top:22px;border:1px solid #dce3d5;background:#fff;border-radius:16px;padding:22px}.timeband-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:15px}.timeband-heading h2{font-size:20px;margin:0}.timeband-heading p{font-size:14px;color:#5a6d5f;margin:6px 0 0;line-height:1.7}.timeband-key{font-size:13px;color:#58705b;display:flex;flex-wrap:wrap;gap:12px}.timeband-key span{display:inline-flex;align-items:center;gap:5px}.timeband-key i{width:10px;height:10px;border-radius:3px}.timeband-bar{height:24px;border-radius:7px;display:flex;overflow:hidden;background:#f0f2ea}.timeband-bar span{height:100%;min-width:1px}.band-transfer{background:#bd8e50}.band-visit{background:#679781}.band-rest{background:#91acbd}.band-gap{background:#edf0e7}.band-conflict{background:#ca756b}.timeband-labels{display:flex;justify-content:space-between;margin-top:7px;font-size:13px;color:#657260}.timeband-numbers{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:15px;color:#3e5c45;margin-top:15px}.timeband-alert{font-size:14px;line-height:1.7;color:#8b5b20;background:#fcf4e6;padding:10px 13px;border-radius:8px;margin:14px 0 0}.replay-stops{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:16px}.replay-stop-button{text-align:left;min-width:0;font:inherit;border:1px solid #dce4d6;border-radius:9px;padding:12px 13px;cursor:pointer;background:#fcfdf9;color:#37553f}.replay-stop-button small{font-size:12px;color:#6d795e;display:block}.replay-stop-button b{display:block;font-size:15px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.replay-stop-button[aria-current=true]{border-color:#58806a;background:#edf3e8;box-shadow:inset 3px 0 #426d54}.replay-update{background:#fff0cb;border:1px solid #dfc17b;padding:13px 17px;border-radius:9px;margin-bottom:16px;font-size:15px;line-height:1.7}.replay-update button{margin-left:10px;cursor:pointer;font:inherit;border:0;background:#234f3f;color:#fff;padding:7px 12px;border-radius:6px}.replay-update[hidden],#replayApp[hidden],.replay-empty[hidden]{display:none!important}.replay-empty{padding:60px 25px;text-align:center;border:1px solid #dce4d6;border-radius:20px;background:#fffefa}.replay-empty h2{font-size:27px;margin:16px 0}.replay-empty p{font-size:17px;line-height:1.8;color:#5e6f5e;max-width:610px;margin:0 auto 24px}.replay-empty .replay-links{justify-content:center}.replay-empty .empty-symbol{font-size:42px}.replay-file{position:relative;overflow:hidden;cursor:pointer;display:inline-flex}.replay-file input{position:absolute;width:1px;height:1px;opacity:0}.replay-file:focus-within{outline:3px solid #ce8432;outline-offset:3px}.replay-demo-note{padding:10px 14px;border-radius:8px;background:#eaf1e5;color:#426043;font-size:14px;margin-bottom:16px}.replay-issues{margin-top:20px;background:#fff7e8;border:1px solid #e8d7b8;border-radius:12px;padding:15px 18px;color:#71582d;font-size:14px;line-height:1.8}.replay-issues p{margin:6px 0}.replay-status{font-size:14px;color:#46654d;margin:10px 0;min-height:20px}.replay-error{color:#9c442c}.replay-shell :focus-visible,.replay-wrap a:focus-visible{outline:3px solid #ca8b3d;outline-offset:3px}.replay-map [hidden]{display:none!important}
@media(min-width:1500px){.replay-stage{min-height:550px}.replay-map{min-height:550px}.replay-photo{height:175px}}
@media(max-width:1150px){.replay-layout{grid-template-columns:minmax(0,1fr) 285px}.replay-card{padding:17px}.replay-heading{align-items:flex-start;flex-direction:column}.replay-photo{height:130px}.replay-stage{min-height:440px}}
@media(max-width:700px){.replay-wrap{padding:22px 14px 32px}.replay-heading h1{font-size:27px}.replay-heading{gap:14px;margin-bottom:18px}.replay-layout{grid-template-columns:1fr}.replay-stage{min-height:330px;height:330px}.replay-map{min-height:330px}.replay-card{border-left:0;border-top:1px solid #dde3d6;padding:18px;display:grid;grid-template-columns:90px minmax(0,1fr);gap:0 14px}.replay-photo{grid-column:1;grid-row:1/5;height:110px;margin:0}.replay-photo small{font-size:10px;padding:15px 6px 5px}.replay-card .scene-category,.replay-card h3,.replay-card .scene-route,.replay-card .scene-meta{grid-column:2}.replay-card h3{font-size:19px;margin:7px 0}.replay-card>p{grid-column:1/-1;margin-top:10px}.replay-card .scene-route{margin-top:0}.replay-card .scene-note{grid-column:1/-1}.replay-toolbar{padding:13px;align-items:flex-start;flex-direction:column;gap:8px}.replay-days{padding:10px 12px}.map-overlay{left:14px;top:12px;max-width:calc(100% - 28px)}.map-overlay h2{font-size:18px;max-width:260px}.map-day-label{font-size:12px;padding:6px 8px}.map-legend{font-size:11px;left:10px;right:10px;bottom:10px;gap:5px}.map-legend span{padding:5px 6px}.map-compass{right:15px;top:13px}.replay-controls{padding:13px}.replay-control-row{gap:12px}.replay-controls button{padding:9px 12px}.replay-timeband-panel{padding:16px;margin-top:16px}.timeband-heading{align-items:flex-start;flex-direction:column;gap:12px}.replay-stops{grid-template-columns:1fr 1fr}.replay-heading p{font-size:15px}.replay-links .button{padding:9px 12px}.rehearse-entry{flex-direction:column;align-items:flex-start;padding:16px}.replay-empty{padding:35px 18px}.replay-empty h2{font-size:23px}.replay-empty p{font-size:16px}.replay-empty .replay-links{flex-direction:column}.replay-badge{font-size:12px}.replay-toolbar strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.replay-wrap *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.replay-controls,.replay-links,.replay-days{display:none}.replay-map{position:relative}.replay-stage{height:420px}}

/* Route film preview link in the planner introduction. */
.route-demo-link{display:inline-block;margin-left:12px;color:#1f5143;font-weight:700;white-space:nowrap;text-underline-offset:3px}
@media(max-width:600px){.route-demo-link{display:block;margin:6px 0 0}}
