/* Adapted from the supplied Trip loader.html. Scoped to the loader so its
   palette preview and prototype page styles cannot affect the website. */
.trip-loader { --loader-line: color-mix(in srgb,currentColor 18%,transparent); --loader-faint: color-mix(in srgb,currentColor 45%,transparent); display:block; padding:0; margin:10px 0 22px; border:1px solid var(--loader-line); border-radius:16px; overflow:hidden; background:#fff; font-family:inherit; color:inherit; }
.trip-loader .bar { display:flex; align-items:center; gap:14px; padding:16px; }
.trip-loader .compass { flex:none; width:40px; height:40px; }
.trip-loader .needle { transform-origin:12px 12px; animation:trip-compass-swing 3.2s ease-in-out infinite alternate; }
.trip-loader .needle.track { animation:none; transition:transform .25s ease-out; }
.trip-loader .txt { flex:1; min-width:0; }
.trip-loader .status { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.trip-loader .trip-wait-detail { color:#677961; font-size:11px; line-height:1.6; margin:5px 0 0; }
.trip-loader .segs { display:flex; gap:5px; margin-top:9px; }
.trip-loader .segs span { width:20px; height:2px; border-radius:2px; background:currentColor; opacity:.18; animation:trip-segment 3.2s ease-in-out infinite; }
.trip-loader .segs span:nth-child(2) { animation-delay:.3s; }
.trip-loader .segs span:nth-child(3) { animation-delay:.6s; }
.trip-loader .segs span:nth-child(4) { animation-delay:.9s; }
.trip-loader .acts { display:flex; gap:12px; flex:none; align-items:center; }
.trip-loader .link { all:unset; display:inline-block; cursor:pointer; font:inherit; font-size:12px; color:#526b4a; padding:6px 2px; min-height:28px; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--loader-faint); }
.trip-loader .link:hover { color:#263c34; }
.trip-loader .link:focus-visible { outline:2px solid #73977a; outline-offset:3px; border-radius:3px; }
.trip-loader .link:disabled { cursor:default; color:#677961; }
.trip-loader .play { display:none; border-top:1px solid var(--loader-line); }
.trip-loader.open .play { display:block; }
.trip-loader .sky { position:relative; height:220px; overflow:hidden; touch-action:none; cursor:crosshair; background:#fafbf8; }
.trip-loader .route { position:absolute; inset:0; width:100%; height:100%; opacity:.22; pointer-events:none; }
.trip-loader .item { all:unset; position:absolute; left:0; top:0; cursor:pointer; line-height:0; width:44px; height:44px; display:grid; place-items:center; will-change:transform; z-index:1; border-radius:8px; }
.trip-loader .item .bob { display:block; animation:trip-icon-bob 2.4s ease-in-out infinite alternate; }
.trip-loader .item svg { display:block; width:34px; height:34px; }
.trip-loader .item:hover { background:#e9eee4; }
.trip-loader .item:focus-visible { outline:2px dashed #59734f; outline-offset:-2px; background:#f0f4ea; }
.trip-loader .ring { position:absolute; width:20px; height:20px; margin:-10px 0 0 -10px; border:1px solid currentColor; border-radius:50%; pointer-events:none; animation:trip-collect-ring .6s ease-out forwards; }
.trip-loader .hud { display:flex; justify-content:space-between; align-items:center; gap:10px 16px; padding:12px 16px; border-top:1px solid var(--loader-line); font-size:12px; flex-wrap:wrap; }
.trip-loader .hint { color:#677961; font-size:11px; flex:1 1 240px; }
.trip-loader .score { white-space:nowrap; font-size:12px; font-variant-numeric:tabular-nums; }
.trip-loader .tally { display:flex; gap:12px; flex-wrap:wrap; }
.trip-loader .tally:empty { display:none; }
.trip-loader .tally span { display:inline-flex; align-items:center; gap:4px; font-size:12px; }
.trip-loader .tally svg { width:16px; height:16px; }
.trip-loader .plane { position:absolute; left:0; top:0; width:30px; height:30px; pointer-events:none; z-index:2; }
.trip-loader .trail { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.trip-loader .trail polyline { fill:none; stroke:currentColor; stroke-width:1; stroke-dasharray:1 5; stroke-linecap:round; opacity:.4; }
.trip-loader.paused *, .trip-loader.paused *::before { animation-play-state:paused!important; transition:none!important; }
.trip-loader.reduced-motion .plane, .trip-loader.reduced-motion .trail { display:none; }
.trip-loader.reduced-motion *, .trip-loader.reduced-motion *::before { animation:none!important; transition:none!important; }
.planner-dock.is-busy .dock-feedback { max-height:min(62dvh,460px); }
#editor-wait-slot .trip-loader { margin:0 0 10px; border:0; border-bottom:1px solid #e2e8df; border-radius:0; }
#editor-wait-slot .trip-loader .bar { padding:8px 2px 13px; }
#editor-wait-slot .trip-loader .status { font-size:14px; }
#editor-wait-slot .trip-loader .compass { width:32px; height:32px; }
@keyframes trip-compass-swing { from { transform:rotate(-30deg); } to { transform:rotate(40deg); } }
@keyframes trip-icon-bob { from { transform:translateY(-5px); } to { transform:translateY(5px); } }
@keyframes trip-collect-ring { to { transform:scale(3.2); opacity:0; } }
@keyframes trip-segment { 0%,100% { opacity:.18; } 35% { opacity:.72; } }
@media(max-width:600px) {
  .trip-loader .bar { display:grid; grid-template-columns:32px minmax(0,1fr); gap:8px 12px; padding:15px; }
  .trip-loader .compass { width:32px; height:32px; grid-row:1 / 3; }
  .trip-loader .acts { grid-column:2; gap:15px; flex-wrap:wrap; }
  .trip-loader .status { font-size:15px; }
  .trip-loader .link { font-size:11px; min-height:34px; }
  .trip-loader .sky { height:210px; }
  .trip-loader .hud { padding:11px 14px; }
}
@media(prefers-reduced-motion:reduce) {
  .trip-loader *, .trip-loader *::before { animation:none!important; transition:none!important; }
  .trip-loader .plane, .trip-loader .trail { display:none; }
}
