/* The plug-in on the agent's page (plug-in-card.js; ADR-044): the join page's checklist in the Terminal's own card. Each
   line what it is, and one mark for where it stands; at most one sealed field. */
.plug-in-card h2{margin-bottom:10px}
.plug-in-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.plug-in-item{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:12px;min-height:44px;padding:4px 0;border-bottom:1px solid var(--line)}
.plug-in-item:last-child{border-bottom:0}
.plug-in-text{display:grid;gap:2px;min-width:0}
.plug-in-label{font-weight:600;overflow-wrap:anywhere}
.plug-in-why{font-size:.8125rem;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
/* One mark on the right, no words (the Founder, 9 October 2026, 22:45): not started a grey circle stitched in eight even
   dashes, in progress three dots moving, done the circle filled green with a white check (filled once as it turns), not available a muted dash. */
.plug-in-mark{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:24px;height:24px;border-radius:999px;box-sizing:border-box;color:#fff}
.plug-in-mark .plug-in-stitch{width:24px;height:24px;color:#b9b4c3}
/* Done: a brighter, fresher green than the Terminal's text green (the Founder, 10 October 2026: "too dark"). */
.plug-in-card{--plug-in-done:#22c55e}
.plug-in-item[data-phase=DONE] .plug-in-mark{background:var(--plug-in-done)}
.plug-in-mark svg{width:15px;height:15px;display:block}
.plug-in-item[data-phase=DONE] .plug-in-mark path{stroke-width:2.6}
.plug-in-item[data-phase=PROGRESS] .plug-in-mark i{width:5px;height:5px;border-radius:50%;background:var(--purple);animation:plug-in-dots 1.2s ease-in-out infinite}
.plug-in-item[data-phase=PROGRESS] .plug-in-mark i:nth-child(2){animation-delay:.15s}
.plug-in-item[data-phase=PROGRESS] .plug-in-mark i:nth-child(3){animation-delay:.3s}
@keyframes plug-in-dots{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.plug-in-item[data-phase=NOT_AVAILABLE] .plug-in-mark::before{content:"";width:10px;height:2px;border-radius:2px;background:var(--muted);opacity:.6}
/* No run with nobody writing (0177): a white cross on red, and the card's last line in the same red. */
.plug-in-item[data-phase=FAILED] .plug-in-mark{background:var(--red)}
.plug-in-item[data-phase=FAILED] .plug-in-why{color:var(--red)}
.plug-in-said.plug-in-failed{color:var(--red);font-weight:600}
.plug-in-turned .plug-in-mark{animation:plug-in-fill .5s cubic-bezier(.2,.8,.3,1.2) both}
.plug-in-turned .plug-in-mark path{stroke-dasharray:16;stroke-dashoffset:16;animation:plug-in-check .3s .25s ease-out forwards}
@keyframes plug-in-fill{0%{background:transparent;box-shadow:inset 0 0 0 1.5px #c9c5d1;transform:scale(.85)}60%{transform:scale(1.08)}100%{background:var(--plug-in-done);transform:scale(1)}}
@keyframes plug-in-check{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .plug-in-item[data-phase=PROGRESS] .plug-in-mark i,.plug-in-turned .plug-in-mark{animation:none;opacity:1;transform:none}
  .plug-in-turned .plug-in-mark path{animation:none;stroke-dashoffset:0}
}
.plug-in-key{display:grid;gap:8px;margin:14px 0 4px;padding:14px;border:1.5px solid var(--purple);border-radius:12px;background:var(--soft)}
.plug-in-key .meta{margin:0}
.plug-in-key [hidden]{display:none!important}
.plug-in-field{display:grid;gap:4px;font-weight:600}
.plug-in-field .input{width:100%;max-width:none;box-sizing:border-box;min-height:44px;font-weight:400}
.plug-in-key .actions{margin:0}
.plug-in-key .actions .btn{width:100%;justify-content:center}
.plug-in-refused{color:var(--red)}
.plug-in-said{margin-top:12px;color:var(--muted)}
.plug-in-said.plug-in-done{color:inherit;font-weight:700}
/* The person's one step (0176), at the bottom, while one is left: a soft block, a heading, one sentence, one solid button. */
.plug-in-step{display:grid;gap:6px;margin:14px 0 0;padding:16px;border-radius:12px;background:var(--soft);min-width:0}
.plug-in-step h3{margin:0;font-size:1rem}
.plug-in-step p{margin:0;overflow-wrap:anywhere}
.plug-in-step .btn{margin-top:8px;width:100%;justify-content:center;box-sizing:border-box;min-height:44px;text-align:center;white-space:normal}
/* The voice row's own second line (the Founder, 10 October 2026): what calls speak in, small and grey, and Change as a text link. */
.plug-in-sub{font-size:.8125rem;line-height:1.35;color:var(--muted);font-weight:400;overflow-wrap:anywhere}
.plug-in-change{display:inline;padding:0;margin:0 0 0 4px;border:0;background:none;color:var(--purple);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.plug-in-change:hover{text-decoration:underline}
.plug-in-change:focus-visible{outline:2px solid var(--purple);outline-offset:2px;border-radius:3px}
/* The agent's voice, named by the person (the Founder, 9 October 2026): where to look, the platform's voices, Save. A pick is
   outlined, as Replace plugged-in agent's choices are; Save is the one solid button. */
.plug-in-voice{display:grid;gap:8px;margin:14px 0 4px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.plug-in-voice p{margin:0}
.plug-in-voice [hidden]{display:none!important}
.plug-in-voice-where{overflow-wrap:anywhere}
.plug-in-voices{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px;margin-top:4px}
.plug-in-voice-choice{min-height:44px;min-width:0;padding:8px 10px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--ink,#17151f);font:inherit;font-weight:600;font-size:.875rem;line-height:1.3;text-align:center;cursor:pointer;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}
.plug-in-voice-choice[aria-pressed="true"]{background:var(--soft);border-color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple);color:var(--purple)}
@media (hover:hover) and (pointer:fine){.plug-in-voice-choice[aria-pressed="false"]:hover{border-color:var(--purple)}}
.plug-in-voice-choice:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.plug-in-voice .actions{margin:4px 0 0}
.plug-in-voice .actions .btn{width:100%;justify-content:center}

/* On any tab but Connection: one line to the checklist (the Founder, 10 October 2026, 01:41). */
.plug-in-line{display:flex;align-items:center;gap:12px;padding:14px 16px;color:inherit;text-decoration:none}
.plug-in-line-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.plug-in-line .icon{flex:none;width:18px;height:18px;color:var(--muted,#686577)}
/* Under the Connection card's Status row: part of the card, no card of its own (the Founder, 10 October 2026, 02:18). */
.plug-in-under-status{display:block;padding:12px 16px 16px;border-top:1px solid var(--line,#e4e1ea);background:transparent}
.plug-in-under-status h2{font-size:1rem;margin:0 0 6px}
/* The State row's arrow, and the checks it opens (the Founder, 10 October 2026: "under status… a toggle to see what's
   happening… if something drops, you need to know"). A red dot on the arrow where a line no longer holds. */
.info-row.info-static.info-checks[data-checks]:not([data-checks-off]){cursor:pointer}
/* The arrow on the State row's own line, right after the pill (his 21:55 screenshot: it had wrapped under the icon). */
.info-row.info-static.info-checks[data-checks]:not([data-checks-off]){grid-template-columns:24px minmax(0,1fr) minmax(0,auto) 18px;column-gap:14px}
.info-row.info-static.info-checks[data-checks]:not([data-checks-off]) .info-chevron{display:inline-grid;margin-inline-start:-6px}
.checks-toggle{position:relative;display:inline-grid;place-items:center;width:36px;height:36px;margin:-9px;padding:0;border:0;border-radius:10px;background:none;color:var(--muted,#686577);cursor:pointer}
.checks-toggle .icon{width:18px;height:18px;transition:transform .2s ease}
.checks-toggle[aria-expanded=true] .icon{transform:rotate(180deg)}
.checks-toggle:focus-visible{outline:3px solid #b987ef;outline-offset:-3px}
.info-checks[data-checks-missing] .checks-toggle::after{content:"";position:absolute;top:5px;inset-inline-end:5px;width:8px;height:8px;border-radius:50%;background:var(--red,#bd3551);box-shadow:0 0 0 2px var(--surface,#fff)}
.connection-checks{padding:2px 16px 10px 54px;border-top:1px solid var(--line,#e4e1ea)}
.connection-checks [data-health-why]{margin:8px 0 4px}
.info-checks:not([data-checks]) + .connection-checks,.info-checks[data-checks-off] + .connection-checks{display:none}
.connection-checks + .info-row::before{content:"";position:absolute;top:0;inset-inline-start:54px;inset-inline-end:0;border-top:1px solid var(--line)}
@media (prefers-reduced-motion:reduce){.checks-toggle .icon{transition:none}}
/* The marks, redrawn (the Founder, 10 October 2026, 22:10): done a little smaller; in progress a circle spinning, never
   three dots; not started an empty circle; not available the dash as before. Inside the Connection tab's checks too. */
.connection-checks{--plug-in-done:#22c55e}
.plug-in-mark{width:20px;height:20px}
.plug-in-mark svg{width:12px;height:12px}
.plug-in-item[data-phase=WAITING] .plug-in-mark{box-shadow:inset 0 0 0 1.5px #c9c5d1}
.plug-in-item[data-phase=PROGRESS] .plug-in-mark{border:2px solid #e2dcec;border-top-color:var(--purple,#7c3aed);animation:plug-in-spin .8s linear infinite}
@keyframes plug-in-spin{to{transform:rotate(360deg)}}
.plug-in-item{grid-template-columns:minmax(0,1fr) 20px}
/* The ⓘ right after a line's name. */
.plug-in-head{display:flex;align-items:center;gap:4px;min-width:0}
.plug-in-head .plug-in-info{display:inline-flex;flex:none}
@media (prefers-reduced-motion:reduce){.plug-in-item[data-phase=PROGRESS] .plug-in-mark{animation-duration:2.4s}}
