/* Pixi Studio — effects module: layer cards, animation panels, pointer markers */

  .fx-add{position:relative}
  .fx-list{display:flex;flex-direction:column;gap:9px;margin-top:2px}
  .fx-empty{color:var(--muted-2);font-size:12.5px;font-style:italic;padding:8px 2px;line-height:1.5}
  .fx-card{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:visible}
  .fx-card.off{opacity:.5}
  .fx-head{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#141b26;
    border-radius:9px;-webkit-user-select:none;user-select:none}
  /* Only the handle refuses to scroll. It was on the whole header while the drag
     needed a press-and-hold; now that a drag starts on the first few pixels,
     that would have taken away the only way to scroll the panel on a touch
     screen. A mouse still drags from anywhere on the header — it has a wheel. */
  .fx-head .grip{color:var(--muted-2);font-size:10px;line-height:1;letter-spacing:-2px;
    flex:0 0 auto;cursor:grab;padding:0 1px;touch-action:none}
  .fx-head .grip:hover{color:var(--accent)}
  .fx-card.dragging .fx-head .grip{cursor:grabbing}
  /* How many controls are hidden under a folded head — the one thing you cannot
     see once it is shut. Used by the base pattern's card. */
  .fx-head .count{color:var(--muted-2);font-family:var(--mono);font-size:10px;flex:0 0 auto;opacity:.75}
  /* held-and-dragged card: lifted above its siblings while it slides */
  .fx-card.dragging{position:relative;z-index:40;cursor:grabbing;opacity:.96;
    box-shadow:0 12px 28px rgba(0,0,0,.55),0 0 0 1px var(--accent) inset}
  .fx-card.dragging .fx-head{cursor:grabbing}
  .fx-card.open .fx-head{border-radius:9px 9px 0 0}
  .fx-head .nm{font-weight:600;font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
  .fx-head .car{color:var(--muted-2);font-size:9px;transition:transform .15s;cursor:pointer;flex:0 0 auto}
  .fx-card.open .fx-head .car{transform:rotate(90deg)}
  .fx-head .ic{background:transparent;border:0;color:var(--muted);cursor:pointer;font-size:12px;padding:3px 5px;border-radius:6px;line-height:1}
  .fx-head .ic:hover{color:var(--ink);background:#1f2836}
  .fx-head .ic.rm:hover{color:var(--bad)}
  /* nothing has been changed on this layer yet — still clickable, just quiet */
  .fx-head .ic.dim{opacity:.35}
  .fx-head .ic.dim:hover{opacity:1}
  .fx-head .ic.solo-on{color:#04222e;background:var(--accent)}
  .fx-card.solo{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
  .fx-card:not(.open) .fx-body{display:none}
  .fx-card .menu{min-width:172px}
  .fx-body{padding:9px 11px 11px}

  /* controls */
  .animtog{background:transparent;border:1px solid var(--line);color:var(--muted-2);cursor:pointer;font-size:10.5px;border-radius:6px;padding:1px 7px;line-height:1.5;margin-right:7px;flex:0 0 auto}
  .animtog:hover{color:var(--ink);border-color:var(--accent)}
  .animtog.on{color:#04222e;background:var(--accent);border-color:var(--accent);font-weight:700}
  .anim-panel{margin-top:8px;padding:9px;border:1px dashed #34405a;border-radius:8px;background:#10151d}
  .anim-panel .r2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .anim-panel .r2+.r2{margin-top:8px}
  .anim-panel label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted-2);margin-bottom:4px}
  .anim-panel select,.anim-panel input[type=range]{width:100%}
  .anim-panel input[type=range]{accent-color:var(--accent-2)}
  .anim-panel select:disabled{opacity:.4}
  .anim-loop{display:flex;align-items:center;margin-top:9px}
  .loopche{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);cursor:pointer;user-select:none}
  .loopche input{accent-color:var(--accent);cursor:pointer}
  /* Draggable marker for a vec2 "pointer" control. Chasing the live mouse made the
     value impossible to settle on, so the studio places a handle instead. */
  .pick{position:absolute;z-index:12;transform:translate(-50%,-50%);cursor:grab;touch-action:none;
    display:flex;flex-direction:column;align-items:center;gap:3px;user-select:none}
  .pick:active{cursor:grabbing}
  .pick .ring{width:22px;height:22px;border-radius:50%;border:2px solid var(--accent);
    background:rgba(94,208,255,.16);box-shadow:0 0 0 1px rgba(0,0,0,.55),0 0 10px rgba(94,208,255,.5);
    position:relative}
  .pick .ring::before,.pick .ring::after{content:"";position:absolute;background:var(--accent)}
  .pick .ring::before{left:50%;top:-7px;width:1px;height:36px;transform:translateX(-50%)}
  .pick .ring::after{top:50%;left:-7px;height:1px;width:36px;transform:translateY(-50%)}
  .pick .tag{font-size:10px;line-height:1;padding:2px 6px;border-radius:5px;white-space:nowrap;
    background:rgba(8,11,16,.82);border:1px solid var(--line);color:var(--muted);margin-top:9px}
  .pick.on .ring{border-color:var(--accent-2);background:rgba(168,128,255,.2)}
  .pick.on .tag{color:var(--ink);border-color:var(--accent-2)}
