/* Egen kod, idé från affectUI Agent Plan (Pro), ingen kod tagen */
.nplan{--nk:0,0,0;--ember-ink:#B4501A;--nw:255,255,255;--card:#fff;--on:#fff;--h1e7a4c:#1E7A4C;--hb42318:#B42318;--t0:30,122,76;--t2:180,35,24;--t5:217,96,28;--ink:rgba(var(--nk),.88);--text:rgba(var(--nk),.61);--line:rgba(var(--nk),.06);--wash:rgba(var(--nk),.03);--ember:#D9601C;--ember-bg:rgba(var(--t5),.10);--ok:var(--h1e7a4c);--ok-bg:rgba(var(--t0),.10);--bad:var(--hb42318);--bad-bg:rgba(var(--t2),.08);--shadow:0 0 0 .5px rgba(var(--nk),.06),0 1px 1px -1px rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.05);--ease:cubic-bezier(.22,1,.36,1);
  width:100%;max-width:380px;box-sizing:border-box;font-family:var(--sans);font-size:13px;line-height:20px;color:var(--ink);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
.nplan [hidden]{display:none!important}
.nplan *,.nplan *::before,.nplan *::after{box-sizing:border-box}
:where(.nplan) button{margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nplan button:focus-visible{outline:2px solid rgba(var(--t5),.4);outline-offset:1px}
.nplan svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nplan-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.nplan-card{background:var(--card);border-radius:10px;box-shadow:var(--shadow);padding:14px 0 0}
.nplan-head{display:flex;justify-content:space-between;align-items:center;padding:0 16px;color:var(--grey);font-size:12px;line-height:18px}
.nplan-kicker,.nplan-est{display:inline-flex;align-items:center;gap:6px}
.nplan-head svg{width:14px;height:14px}
.nplan-title{margin:4px 0 8px;padding:0 16px;font-size:15px;line-height:22px;font-weight:500;letter-spacing:-.005em}
.nplan-list{list-style:none;margin:0;padding:0 8px;position:relative}
.nplan-step{position:relative;display:flex;align-items:flex-start;gap:8px;padding:8px 8px 8px 4px;border-radius:8px;background:var(--card);outline:none;transition:background .15s var(--ease),box-shadow .2s var(--ease),opacity .25s var(--ease)}
.nplan-step:hover{background:rgba(var(--nk),.02)}
.nplan-step:focus-visible{box-shadow:inset 0 0 0 2px rgba(var(--t5),.4)}
.nplan-step.is-drag{z-index:3;box-shadow:0 0 0 .5px rgba(var(--nk),.08),0 6px 18px -4px rgba(0,0,0,.16);background:var(--card);cursor:grabbing}
.nplan-step.is-new{animation:nplan-up .32s var(--ease)}
@keyframes nplan-up{from{opacity:0;transform:translateY(6px)}}
.nplan-step.is-gone{opacity:0;transform:scale(.98)}
.nplan-grip{flex:none;width:14px;height:20px;margin-top:0;display:grid;place-items:center;color:var(--grey);cursor:grab;opacity:0;transition:opacity .15s;touch-action:none}
.nplan-grip svg{width:12px;height:12px;fill:currentColor;stroke:none}
.nplan-step:hover .nplan-grip,.nplan-step:focus-within .nplan-grip,.nplan-step.is-drag .nplan-grip{opacity:1}
.nplan-num{position:relative;flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 .75px rgba(var(--nk),.2);display:grid;place-items:center;font-size:12px;line-height:1;color:var(--grey);background:var(--card);z-index:1;transition:background .25s var(--ease),box-shadow .25s var(--ease)}
.nplan-num svg{position:absolute;inset:0;width:20px;height:20px;display:none}
.nplan-spin{animation:nplan-rot .8s linear infinite}
.nplan-spin circle{stroke:var(--ember);stroke-width:1.75;stroke-dasharray:14 40}
@keyframes nplan-rot{to{transform:rotate(360deg)}}
.nplan-step.is-running .nplan-num{box-shadow:none;color:transparent}
.nplan-step.is-running .nplan-spin{display:block}
.nplan-step.is-done .nplan-num,.nplan-step.is-failed .nplan-num{box-shadow:none;color:transparent;background:var(--ok)}
.nplan-step.is-failed .nplan-num{background:var(--bad)}
.nplan-step.is-done .nplan-ck,.nplan-step.is-failed .nplan-x{display:block}
.nplan-ck path,.nplan-x path{stroke:var(--on);stroke-width:1.8;stroke-dasharray:1;stroke-dashoffset:1;animation:nplan-draw .35s var(--ease) forwards}
@keyframes nplan-draw{to{stroke-dashoffset:0}}
.nplan-body{flex:1;min-width:0;padding-right:8px}
.nplan.is-run .nplan-body{padding-right:0}
.nplan-name{display:block;font-weight:500;text-wrap:pretty;cursor:text}
.nplan-step.is-pending .nplan-name{color:var(--text)}
.nplan-sub{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;color:var(--grey)}
.nplan-sub:empty{display:none}
.nplan-tool{font-family:var(--mono);font-size:12px;line-height:18px;padding:0 5px;border-radius:4px;background:rgba(var(--nk),.045);color:var(--text);white-space:nowrap}
.nplan-edit{width:100%;font:inherit;font-weight:500;color:var(--ink);border:0;outline:none;padding:0 4px;margin:0 -4px;border-radius:4px;background:var(--ember-bg);height:20px}
.nplan-err{display:block;margin-top:4px;color:var(--bad)}
.nplan-retry{margin-top:6px;height:28px;padding:0 10px;border-radius:6px;box-shadow:var(--shadow);font-weight:500;display:inline-flex;align-items:center;gap:6px}
.nplan-retry svg{width:14px;height:14px}
.nplan-retry:hover{background:var(--wash)}
.nplan-time{flex:none;color:var(--grey);font-size:12px;text-align:right}
.nplan-time:empty{display:none}
.nplan-del{position:absolute;right:6px;top:8px;width:20px;height:20px;border-radius:5px;display:grid;place-items:center;color:var(--grey);opacity:0;transition:opacity .15s,background .15s}
.nplan-del svg{width:12px;height:12px}
.nplan-del:hover{background:rgba(var(--nk),.05);color:var(--ink)}
.nplan-step:hover .nplan-del,.nplan-step:focus-within .nplan-del{opacity:1}
.nplan.is-run .nplan-del,.nplan.is-run .nplan-grip{display:none}
.nplan.is-run .nplan-step{padding-left:8px}
.nplan.is-run .nplan-step:not(:last-child)::before,.nplan.is-run .nplan-step:not(:last-child)::after{content:"";position:absolute;left:17.25px;top:30px;bottom:-8px;width:1.5px;background:rgba(var(--nk),.08);border-radius:1px}
.nplan.is-run .nplan-step:not(:last-child)::after{background:var(--ok);transform:scaleY(0);transform-origin:top;transition:transform .45s var(--ease)}
.nplan.is-run .nplan-step.is-done:not(:last-child)::after{transform:scaleY(1)}
.nplan-addwrap{display:grid;grid-template-rows:1fr;transition:grid-template-rows .3s var(--ease),opacity .2s;padding:0 8px}
.nplan-addwrap>div{min-height:0;overflow:hidden}
.nplan.is-run .nplan-addwrap{grid-template-rows:0fr;opacity:0}
.nplan-add{display:flex;align-items:center;gap:8px;padding:6px 8px 10px 22px}
.nplan-plus{width:20px;height:20px;display:grid;place-items:center;color:var(--grey);flex:none}
.nplan-plus svg{width:14px;height:14px}
.nplan-input{flex:1;min-width:0;border:0;outline:none;background:none;font:inherit;color:var(--ink);height:28px;padding:0}
.nplan-input::placeholder{color:var(--grey)}
.nplan-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 10px 16px;border-top:.5px solid rgba(var(--nk),.08);min-height:49px}
.nplan-hint{color:var(--grey);font-size:12px;line-height:18px;min-width:0;white-space:nowrap}
.nplan{container-type:inline-size}
@container (max-width:370px){.nplan-hint{display:none}}
.nplan-status{color:var(--text);font-weight:500}
.nplan-status.is-live{background:linear-gradient(90deg,rgba(var(--nk),.61) 0 40%,rgba(var(--nk),.25) 50%,rgba(var(--nk),.61) 60% 100%) 0 0/250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:nplan-shine 1.6s linear infinite}
@keyframes nplan-shine{from{background-position:100% 0}to{background-position:-50% 0}}
.nplan-status.is-ok{color:var(--ok)}
.nplan-status.is-bad{color:var(--bad)}
.nplan-actions{display:flex;gap:6px;margin-left:auto;flex:none}
.nplan-cancel,.nplan-run{height:28px;padding:0 10px;border-radius:6px;font-weight:500;display:inline-flex;align-items:center;gap:6px;transition:background .15s var(--ease)}
.nplan-cancel{box-shadow:var(--shadow)}
.nplan-cancel:hover{background:var(--wash)}
.nplan-run{background:var(--ink);color:var(--on)}
.nplan-run:hover{background:rgba(var(--nk),.8)}
.nplan-run svg{width:14px;height:14px;stroke:none}

@media (pointer:coarse){.nplan-grip,.nplan-del{opacity:1}.nplan-cancel,.nplan-run{height:36px;padding:0 14px}}
@media (prefers-reduced-motion:reduce){.nplan *,.nplan *::before,.nplan *::after{transition:none!important;animation:none!important}.nplan-ck path,.nplan-x path{stroke-dashoffset:0}.nplan-status.is-live{color:var(--text);background:none}}

:where(.dark,[data-theme="dark"]) .nplan{color-scheme:dark;--ember-ink:#F08A4B;--nk:255,255,255;--nw:22,22,21;--card:#1C1B1A;--on:#161615;--ink:rgba(255,255,255,.9);--text:rgba(255,255,255,.64);--line:rgba(255,255,255,.08);--wash:rgba(255,255,255,.04);--shadow:0 0 0 .5px rgba(255,255,255,.1),0 1px 2px 0 rgba(0,0,0,.4);--shadow-hi:0 0 0 .5px rgba(255,255,255,.14),0 2px 4px -1px rgba(0,0,0,.4),0 8px 20px -6px rgba(0,0,0,.5);--h1e7a4c:#3EC27A;--hb42318:#F27A6B;--t0:62,194,122;--t2:242,122,107;--t5:232,112,44;}
