/* "Verbind je databronnen"-popup (public/js/connect-sources.js) */
.ds-overlay { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
  background: rgba(1, 4, 9, 0.6); padding: 16px; }
[data-theme="light"] .ds-overlay { background: rgba(31, 35, 40, 0.45); }
.ds-overlay.open { display: flex; animation: ds-in .18s ease-out; }
@keyframes ds-in { from { opacity: 0; } to { opacity: 1; } }
.ds-modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface);
  color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ds-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ds-head h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.ds-kicker { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ds-x { background: none; border: 0; color: var(--text-dim); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.ds-x:hover { color: var(--text); background: rgba(127,127,127,.12); }
.ds-lead { color: var(--text-dim); font-size: .9rem; margin: 10px 0 14px; line-height: 1.5; }
.ds-lead b { color: var(--text); }
.ds-progress { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 14px; }
.ds-progress span { display: block; height: 100%; background: var(--green); transition: width .4s; }
.ds-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ds-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; }
.ds-item.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ds-item.ok { opacity: .75; }
.ds-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700;
  background: rgba(127,127,127,.12); color: var(--text); }
.ds-item.next .ds-ico { background: var(--accent); color: #fff; }
.ds-item.ok .ds-ico { background: var(--green); color: #fff; }
.ds-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ds-name { font-weight: 600; font-size: .9rem; }
.ds-why { color: var(--text-dim); font-size: .78rem; line-height: 1.4; }
.ds-tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--orange); color: #1b1b1b; border-radius: 99px; padding: 1px 7px; vertical-align: 1px; }
.ds-state { color: var(--green); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ds-btn { flex: none; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .84rem;
  font-weight: 600; padding: 8px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ds-btn:hover { border-color: var(--accent); }
.ds-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ds-btn.primary:hover { filter: brightness(1.08); }
.ds-link { background: none; border: 0; color: var(--text-dim); font: inherit; font-size: .84rem; cursor: pointer; padding: 8px 4px; }
.ds-link:hover { color: var(--text); text-decoration: underline; }
.ds-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ds-back { background: none; border: 0; color: var(--accent); font: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit;
  text-transform: inherit; cursor: pointer; padding: 0; }
.ds-steps { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; }
.ds-steps span { width: 26px; height: 5px; border-radius: 99px; background: var(--border); }
.ds-steps span.d { background: var(--green); }
.ds-steps span.c { background: var(--accent); }
.ds-steps em { font-style: normal; font-size: .76rem; color: var(--text-dim); margin-left: 6px; }
.ds-step-t { font-size: 1.02rem; font-weight: 600; margin: 10px 0 6px; }
.ds-desc { color: var(--text-dim); font-size: .9rem; line-height: 1.55; }
.ds-hint { color: var(--text-dim); font-size: .76rem; margin-top: 4px; }
.ds-field { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; color: var(--text-dim); margin-top: 10px; }
.ds-field input { font: inherit; font-size: .9rem; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; }
.ds-field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.ds-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ds-choice { font: inherit; font-size: .86rem; color: var(--text); background: transparent; border: 1px solid var(--border);
  border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.ds-choice.sel { border-color: var(--accent); background: rgba(88,166,255,.14); font-weight: 600; }
.ds-test { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 10px;
  border: 1px dashed var(--border); font-size: .9rem; }
.ds-test.ok { border: 1px solid var(--green); background: rgba(63,185,80,.1); font-weight: 600; }
.ds-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--accent);
  animation: ds-rot .8s linear infinite; }
@keyframes ds-rot { to { transform: rotate(360deg); } }
.ds-okmark { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; }
/* ⓘ: hover op desktop, tap/focus op mobiel */
.ds-info { position: relative; display: inline-block; color: var(--text-dim); font-size: .82rem; font-weight: 400; cursor: help; }
.ds-info-pop { display: none; position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 2;
  width: 240px; padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: .78rem; line-height: 1.45; text-transform: none; letter-spacing: 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ds-info:hover .ds-info-pop, .ds-info:focus .ds-info-pop { display: block; }
/* sidebar-knop */
.ds-open-link .ds-count { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--orange); color: #1b1b1b;
  border-radius: 99px; padding: 1px 7px; }
.ds-open-link.ds-all .ds-count { background: var(--green); color: #fff; }
@media (max-width: 600px) {
  .ds-modal { padding: 18px 16px 14px; }
  .ds-item { flex-wrap: wrap; }
  .ds-meta { flex-basis: calc(100% - 46px); }
  .ds-item .ds-btn, .ds-item .ds-state { margin-left: 46px; }
  .ds-why { display: none; }
  .ds-info-pop { left: auto; right: -40px; transform: none; }
}
