/* Channeltrix - design 1 "Helder & Vertrouwd". Mobiel eerst; alle kleuren via variabelen. */
:root {
  --bg: #F6F7FB; --panel: #FFFFFF; --ink: #111827; --muted: #5B6474; --line: #E3E6EE;
  --brand: #2F5BEA; --brand-ink: #FFFFFF; --brand-soft: #EAF0FF; --shadow: 0 1px 2px rgba(17,24,39,.06);
  --ok: #128A4A; --ok-soft: #E3F6EA; --warn: #B45309; --warn-soft: #FDF0DC; --bad: #C0262D; --bad-soft: #FDE7E7;
  --side: #10142A; --side-ink: #C9CEE6; --side-active: #FFFFFF;
  --radius: 12px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 256px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; } h2 { font-size: 18px; margin: 0 0 12px; } h3 { margin: 0 0 12px; font-size: 16px; } h4 { margin: 0 0 8px; }
code { background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; word-break: break-word; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 11.5px; } .nowrap { white-space: nowrap; }
.bad-text { color: var(--bad); } .ok-text { color: var(--ok); }
.icon { flex: none; vertical-align: middle; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(47,91,234,.45); outline-offset: 2px; }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: var(--side); color: #fff; }
.topbar .brand { color: #fff; margin: 0; font-size: 17px; }
.topbar-project { margin-left: auto; color: var(--side-ink); font-size: 13px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.shell { display: block; min-height: calc(100vh - 56px); }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(86vw, 300px); transform: translateX(-102%); transition: transform .2s ease;
  background: var(--side); color: var(--side-ink); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
body.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.backdrop { display: none; }
body.menu-open .backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(16,20,42,.45); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.sidebar-head .brand { color: #fff; margin: 0; }
.sidebar-head .icon-btn { color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand.big { color: var(--ink); font-size: 22px; justify-content: center; margin-bottom: 18px; }
.brand.dark { color: var(--ink); }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.switcher { background: rgba(255,255,255,.06); border-radius: 10px; }
.switcher summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; color: #fff; gap: 0 8px; min-height: 44px; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher-label { grid-column: 1; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--side-ink); }
.switcher-name { grid-column: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher summary .icon { grid-column: 2; grid-row: 1 / span 2; }
.switcher[open] summary .icon { transform: rotate(180deg); }
.switcher-list { padding: 4px 6px 8px; display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.switcher-list a { display: flex; gap: 8px; align-items: center; color: var(--side-ink); padding: 9px 8px; border-radius: 8px; min-height: 40px; }
.switcher-list a:hover, .switcher-list a.on { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.switcher-list a.new { color: #9DB4FF; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: var(--side-ink); padding: 10px 12px; border-radius: 9px; min-height: 42px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.sidebar nav a.active .icon { color: #9DB4FF; }
.nav-badge { margin-left: auto; background: var(--warn); color: #fff; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; }
.nav-section { margin: 14px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; opacity: .65; }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; display: grid; gap: 8px; }
.who { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 13.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 700; flex: none; }
.side-link { display: flex; align-items: center; gap: 8px; color: var(--side-ink) !important; min-height: 36px; }
.only-mobile { display: inline-grid; }
.main { padding: 18px 14px 80px; min-width: 0; }

@media (min-width: 1024px) {
  .topbar { display: none; }
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
  .sidebar { position: sticky; top: 0; height: 100vh; width: auto; transform: none; transition: none; }
  .only-mobile { display: none; }
  body.menu-open .backdrop { display: none; }
  .main { padding: 28px 36px 80px; }
  .main > * { max-width: 1480px; }
}

/* ---------- pagina-opbouw ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); min-width: 0; }
.card.empty { text-align: center; padding: 32px 18px; }
.card h3:not(:first-of-type) { margin-top: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.narrow { max-width: 620px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid.three { gap: 12px; align-items: end; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (min-width: 760px) {
  .card { padding: 20px; }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 24px; }
}
@media (min-width: 1200px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack { display: grid; gap: 12px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- formulieren ---------- */
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
label.check { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 14px; min-height: 32px; padding-top: 4px; }
label.check input { margin-top: 2px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #D5DAE5; border-radius: 9px; padding: 9px 11px; min-width: 0; width: 100%; min-height: 42px; }
@media (min-width: 760px) { input, select, textarea { font-size: 14.5px; } }
.inline input, .inline select, .filters input, .filters select { width: auto; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); flex: none; }
input[type=file] { padding: 7px; }
input.copy { font-family: ui-monospace, monospace; font-size: 12.5px; background: var(--bg); cursor: copy; }
.copy-field { display: flex; gap: 6px; } .copy-field input { flex: 1; }
.help { font-size: 12.5px; color: var(--muted); font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; }

.btn { font: inherit; font-size: 14.5px; font-weight: 600; border: 1px solid #D5DAE5; background: #fff; color: var(--ink); padding: 0 16px; min-height: 42px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); } .btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); background: #fff; }
.btn.small { padding: 0 11px; min-height: 34px; font-size: 13px; border-radius: 8px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; background: var(--ok-soft); color: var(--ok); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; font-size: 14.5px; }
.flash.error { background: var(--bad-soft); color: var(--bad); } .flash.info { background: var(--brand-soft); color: #1E3FA8; }
.flash-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px; opacity: .7; }
.toasts:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.sidebar .badge.warn { justify-self: start; }

/* ---------- tabellen (op mobiel als kaarten) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.small td { padding: 7px 8px; font-size: 13px; }
.table tr.excluded td { background: var(--bad-soft); }
.table td.actions { display: table-cell; white-space: nowrap; }
.table td.actions > form, .table td.actions > a { display: inline-flex; gap: 6px; align-items: center; margin: 2px 4px 2px 0; vertical-align: middle; }
@media (max-width: 759px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 12px; background: #fff; }
  .table.responsive td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; }
  .table.responsive td[data-label=""] { grid-template-columns: 1fr; }
  .table.responsive td[data-label=""]::before { display: none; }
  .table.responsive td:first-child { grid-template-columns: 1fr; font-size: 15px; padding-top: 8px; }
  .table.responsive td:first-child::before { display: none; }
  .table.responsive td.actions { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; padding-bottom: 10px; }
  .table.responsive td.actions::before { display: none; }
  .table.responsive td.actions > form, .table.responsive td.actions > a { margin: 0; }
  .table.responsive td.actions .btn.ghost { border-color: var(--line); }
  .card:has(> .table.responsive), .card:has(> .scroll-x > .table.responsive) { background: transparent; border: 0; box-shadow: none; padding: 0; }
}
pre.json { background: var(--bg); padding: 12px; border-radius: 8px; max-height: 420px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* ---------- statistieken, stappen, tegels ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: 13px; display: block; }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat span { display: block; font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat.bad span { color: var(--bad); } .stat.warn span { color: var(--warn); }
.row-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.row-line:last-child { border-bottom: 0; }
.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.steps li.done { background: #FAFBFD; }
.steps li.done .step-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(91,100,116,.4); }
.step-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--brand-soft); color: var(--brand); }
.steps li.done .step-dot { background: var(--ok); color: #fff; }
.step-title { font-weight: 600; } .step-text { font-size: 13px; color: var(--muted); }
@media (max-width: 599px) { .steps li { grid-template-columns: 30px 1fr; } .steps li .btn { grid-column: 2; justify-self: start; } }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; font: inherit; min-height: 110px; }
.tile:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); text-decoration: none; }
.tile b { font-size: 15px; } .tile span { font-size: 13px; color: var(--muted); }
.tile .tile-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tile.disabled { opacity: .55; cursor: not-allowed; }
.project-card { display: flex; flex-direction: column; gap: 12px; }
.project-card h3 { margin: 0; font-size: 17px; }
.project-card .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.project-card .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.health::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.health.bad::before { background: var(--bad); } .health.setup::before { background: var(--muted); } .health.action::before { background: var(--warn); }
.alert-list { display: grid; gap: 8px; }
.alert-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.alert-list a.bad { background: var(--bad-soft); color: var(--bad); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[name=q] { flex: 1 1 220px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 6px 13px; border-radius: 99px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); font-size: 13px; white-space: nowrap; }
.tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs a:hover { text-decoration: none; border-color: var(--brand); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; } .pager a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pager a.active { background: var(--brand); color: #fff; }
details.import, details.panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
details.import summary, details.panel summary { cursor: pointer; display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; min-height: 30px; }
details.import[open] summary, details.panel[open] summary { margin-bottom: 12px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 6px 0 10px; } .plan .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan ul { padding-left: 18px; margin: 0 0 14px; }
.plan-row { padding: 8px 0; border-bottom: 1px dashed var(--line); width: 100%; }
.plan-row label { display: inline-flex; align-items: center; gap: 4px; }
.thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }

/* ---------- regelbouwer ---------- */
.rule-list { display: grid; gap: 8px; margin-bottom: 14px; }
.rule-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.rule-row.disabled { opacity: .6; } .rule-row.drop { border-color: var(--brand); box-shadow: 0 -3px 0 var(--brand); }
.rule-row .pos { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.rule-main { min-width: 0; } .rule-main b { display: block; overflow: hidden; text-overflow: ellipsis; }
.rule-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 759px) { .rule-row { grid-template-columns: auto 1fr; } .rule-tools { grid-column: 1 / -1; justify-content: flex-start; } }
.handle { cursor: grab; color: var(--muted); user-select: none; padding: 0 2px; letter-spacing: -2px; }
.mini { width: 32px; height: 32px; min-height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.mini:hover { color: var(--brand); border-color: var(--brand); }
.mini:disabled { opacity: .35; cursor: default; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #CBD2DF; border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(47,91,234,.45); }
.editor { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 240px; } }
.editor-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.editor-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rule-name { flex: 1 1 260px; font-size: 16px; font-weight: 600; }
.kw { margin: 0; color: var(--brand); letter-spacing: .08em; }
.cgroup { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 9px; background: #FBFCFF; min-width: 0; }
.cgroup.or { border-left-color: var(--warn); background: #FFFCF6; }
.cgroup.negate { border-style: dashed; }
.cgroup-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cgroup-body { padding: 4px 8px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 12.5px; color: var(--muted); min-height: 32px; }
.seg button.on { background: var(--brand); color: #fff; }
.cgroup.or > .cgroup-head .seg button.on { background: var(--warn); }
.cond { display: grid; grid-template-columns: 1fr; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cond-tools { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
@media (min-width: 760px) {
  .cond { display: flex; align-items: center; flex-wrap: wrap; }
  .cond .field-input { width: 180px; } .cond > input:not([type]), .cond > textarea { flex: 1; min-width: 140px; } .cond > select { width: auto; }
  .cond-tools { margin-left: auto; }
}
.joiner { font-size: 10.5px; font-weight: 800; color: var(--muted); padding-left: 12px; letter-spacing: .08em; }
.dropzone { height: 6px; border-radius: 4px; margin: 2px 0; transition: height .1s; }
.dropzone.over { height: 26px; background: var(--brand-soft); outline: 2px dashed var(--brand); }
.pad { padding: 10px; }
.actions-box { border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.action-row { display: grid; gap: 6px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
@media (min-width: 760px) { .action-row { display: flex; align-items: center; flex-wrap: wrap; } .action-row > select { width: auto; } .action-row .field-input { width: 150px; } .action-row > input:not(.field-input) { flex: 1; min-width: 140px; } }
.action-row .inline { width: 100%; }
.editor-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-box ins { color: var(--ok); text-decoration: none; background: var(--ok-soft); } .preview-box del { color: var(--bad); }
.palette { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 70vh; overflow: auto; align-content: start; }
@media (min-width: 1100px) { .palette { position: sticky; top: 16px; } }
.palette > .muted, .palette-search { width: 100%; }
.chip { background: var(--brand-soft); color: var(--brand); border: 0; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: grab; user-select: none; }
button.chip { cursor: pointer; } button.chip:hover { background: var(--brand); color: #fff; }
.mapping-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1100px) { .mapping-wrap { grid-template-columns: minmax(0, 1fr) 220px; } }
.mapping input { width: 100%; }

/* ---------- categorie-mapping ---------- */
.gcat { position: relative; min-width: 0; }
.gcat-results { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(17,24,39,.12); max-height: 280px; overflow: auto; }
.gcat-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.gcat-results button:hover, .gcat-results button:focus { background: var(--brand-soft); }

/* ---------- feedstatistieken ---------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; min-width: 4px; }
.bar .in { background: var(--brand); border-radius: 2px 2px 0 0; }
.bar .ex { background: var(--bad); opacity: .55; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.legend.in { background: var(--brand); } .legend.ex { background: var(--bad); opacity: .55; }

/* ---------- login/registratie ---------- */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: radial-gradient(circle at 20% 10%, var(--brand-soft), var(--bg) 60%); }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; width: min(460px, 100%); box-shadow: 0 20px 50px rgba(17,24,39,.08); }
@media (min-width: 600px) { .auth-card { padding: 32px; } }
.import-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.import-row:last-child { border-bottom: 0; }
details.panel summary .icon { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 759px) { .cond > .handle, .rule-row .handle { display: none; } }

/* Sprint 6: labels, subtabs */
.tabs.sub a { padding: 4px 10px; font-size: 12px; }
.tabs.sub a.active { background: var(--brand-soft, #e8eefc); color: var(--brand); border-color: var(--brand); }
.option-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.option-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 234, .12); }
.option-card > span { flex: 1; min-width: 0; }
.option-card input { width: auto; margin: 0; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head form.inline input { max-width: 220px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.usage { display: grid; gap: 10px; margin-top: 8px; }
.usage > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.usage .meter { grid-column: 1 / -1; }
.meter { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter span.hot { background: var(--warn); }
.section-title { font-size: 17px; margin: 22px 0 10px; }
.banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.wizard-steps span { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.wizard-steps span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.legal-doc { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-doc h2 { margin-top: 1.4em; } .legal-doc h3 { margin-top: 1.2em; }
.legal-box { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--panel); font-size: 13px; }
/* Sprint 10: regelsecties, repricer-regels, categorieregels */
.rule-section { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; }
.rule-section + .rule-section { margin-top: 14px; }
.section-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cond-rows { display: grid; gap: 6px; }
.cond-rows .cond-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(140px, 2fr); gap: 6px; }
.cond-rows textarea { min-height: 38px; }
.profile { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; background: var(--panel); }
.profile.off { opacity: .7; }
.profile h4 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) { .cond-rows .cond-row { grid-template-columns: 1fr; } }
