[data-tv-editor] { margin-top:32px; }
[data-tv-entry], [data-tv-rule] { border:1px solid #ccd2da; border-radius:8px; margin:14px 0; padding:14px; background:#f5f7fa; }
[data-tv-rule] { background:white; }
[data-tv-editor] summary { cursor:pointer; font-weight:650; padding:4px 0; }
.wf-tv-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin:16px 0; }
.wf-tv-fields label { display:flex; flex-direction:column; gap:5px; }
.wf-tv-fields select, .wf-tv-fields input { width:100%; box-sizing:border-box; }
.wf-tv-tools { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.wf-tv-preview { min-height:110px; border:1px dashed #98a2b3; border-radius:6px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:repeating-conic-gradient(#e7e9ec 0% 25%,#fff 0% 50%) 0 0 / 20px 20px; }

[data-tm-editor] { margin-top:24px; }
[data-tm-rule] { border:1px solid #ccd2d8; border-radius:6px; padding:12px; margin:12px 0; }
[data-tm-rule] summary { cursor:pointer; font-weight:600; }
[data-tm-preview] { object-fit:contain; margin:12px 0; }
.wf-tv-fields label[hidden], [data-tm-preview][hidden] { display:none !important; }
.wf-tv-fields input[type="checkbox"] { width:auto; align-self:flex-start; }


/* WAYFARER_TRAVEL_ENVIRONMENT_V150 */
[data-te-editor] { margin-top:32px; }
[data-te-layer] { margin:24px 0; }
[data-te-card] { border:1px solid #ccd2da; border-radius:8px; margin:14px 0; padding:14px; background:#f5f7fa; }
[data-te-rule] { background:white; }
[data-te-card] summary { cursor:pointer; font-weight:600; }
[data-te-editor] input[type="color"] { height:40px; padding:3px; }
.wf-te-preview { height:140px; position:relative; isolation:isolate; overflow:hidden; border-radius:8px; border:1px solid #ccd2da; }
.wf-te-preview [data-te-sky], .wf-te-preview [data-te-ground], .wf-te-preview [data-te-tint] { position:absolute; inset:0; pointer-events:none; }
.wf-te-preview [data-te-sky], .wf-te-preview [data-te-ground] { z-index:0; }
.wf-te-preview [data-te-art] { position:absolute; z-index:1; bottom:8px; left:46%; font-size:48px; color:#976535; }
.wf-te-preview [data-te-tint] { z-index:2; }
.wf-te-preview span { position:absolute; z-index:3; right:12px; bottom:12px; background:#fff; color:#202735; padding:3px 8px; border-radius:4px; }
.wf-te-preview [hidden] { display:none !important; }

/* Positioning preview for optional sprite light. */
[data-tv-preview] { touch-action:none; cursor:crosshair; }
[data-tv-preview] .wf-tv-light-preview { position:absolute; pointer-events:none; transform:translate(-50%,-50%); border-radius:50%; mix-blend-mode:screen; z-index:5; }
[data-tv-preview] .wf-tv-light-center { position:absolute; pointer-events:none; transform:translate(-50%,-50%); width:10px; height:10px; border:1px solid white; border-radius:50%; box-shadow:0 0 0 1px #333; z-index:6; }
@keyframes wf-tv-light-flicker { from { filter:brightness(.88); } to { filter:brightness(1.12); } }
@media(prefers-reduced-motion:reduce){ [data-tv-preview] .wf-tv-light-preview { animation:none !important; } }
