/* Gouwestad Marketing Studio: schermen.css. Posts, scanner, editor, kalender, A/B testen, instellingen en projecten. */
/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.pc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pc:hover {
  box-shadow: var(--shadow);
}
.pc-top {
  padding: 14px 14px 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pc-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.pc-meta {
  flex: 1;
  min-width: 0;
}
.pc-name {
  font-weight: 600;
  font-size: 14px;
}
.pc-date {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}
.pc-body {
  padding: 0 14px 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-stats {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pc-stat {
  text-align: center;
}
.pc-sv {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pc-sl {
  font-size: 11px;
  color: var(--ink-3);
}
.pc-actions {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* SCANNER */
.scan-in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.how {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.how-step {
  display: flex;
  gap: 10px;
}
.how-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.how-step b {
  color: var(--ink);
}
.scan-load {
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scan-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: left;
}
.scan-steps .on {
  color: var(--ink);
  font-weight: 600;
}
.scan-steps .done {
  color: var(--ok);
}
.found {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.fact .l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fact .v {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.found p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 70ch;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 12px;
}
.aud {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.aud:hover {
  border-color: var(--line-2);
}
.aud.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.aud-n {
  font-size: 16px;
  font-weight: 700;
}
.aud-d {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.aud-k {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.aud-k b {
  color: var(--ink-2);
  font-weight: 600;
}
.pot {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.pot i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.props {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 14px;
}
.prop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.prop-h {
  padding: 12px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.prop-aud {
  font-size: 13px;
  font-weight: 700;
  margin-right: auto;
}
.prop-b {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.prop-hook {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.prop-t {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  white-space: pre-wrap;
}
.prop-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
}
.prop-meta b {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
}
.prop-a {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.src-note {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.5;
}

/* EDITOR */
.ed {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ed-side {
  position: sticky;
  top: calc(62px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 84px);
  overflow: hidden;
}
.ed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.ed-tab {
  border: 0;
  background: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ed-tab:hover {
  background: var(--hover);
}
.ed-tab.on {
  background: var(--accent-soft);
  color: var(--ink);
}
.ed-panel {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ed-p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tpl {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  padding: 0;
  text-align: left;
}
.tpl:hover {
  border-color: var(--accent);
}
.tpl-th {
  position: relative;
  overflow: hidden;
}
.tpl-name {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
}
.ed-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ed-add {
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}
.ed-add:hover {
  border-color: var(--accent);
  background: var(--hover);
}
.ed-add.h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 19px;
}
.ed-add.h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.ed-add.p {
  font-size: 13px;
}
.el-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.el-btn {
  aspect-ratio: 1;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.el-btn:hover {
  border-color: var(--accent);
}
.el-btn .shape {
  width: 30px;
  height: 22px;
  background: var(--ink-2);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  padding: 0;
}
.swb.grad {
  width: 60px;
}
.up-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.drop.over,
.ed-canvas.drop-over {
  outline: 2px dashed var(--accent, #fcaf15);
  outline-offset: -6px;
}
#stage .el-image.drop-on {
  outline: calc(6px / var(--s, 1)) solid #fcaf15;
  outline-offset: calc(-6px / var(--s, 1));
}
#stage .el-image {
  cursor: pointer;
}
.ph .ph-cta {
  font-size: 0.62em;
  color: #fff;
  background: rgba(12, 10, 9, 0.6);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  opacity: 1;
}
.crop-hint {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font:
    600 calc(13px / var(--s, 1)) 'Source Sans 3',
    sans-serif;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
.pstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
}
.pstrip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
}
.pthumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  background: var(--surface-2);
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn.on {
  box-shadow: 0 0 0 2px var(--ink) inset;
}
.up-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.up-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.up-item div {
  display: flex;
}
.up-item button {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 2px;
  color: var(--ink-2);
}
.up-item button + button {
  border-left: 1px solid var(--line);
}
.drop {
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  display: block;
}
.drop:hover {
  border-color: var(--accent);
  color: var(--ink-2);
}
.drop input {
  display: none;
}
.ed-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.ed-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.ed-bar-ctx {
  min-height: 54px;
  background: var(--surface-2);
}
.ed-hint {
  font-size: 13px;
  color: var(--ink-3);
}
.ed-in {
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  height: 32px;
}
.ed-num {
  width: 66px;
}
.ed-ib {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  flex: none;
}
.ed-ib svg {
  width: 15px;
  height: 15px;
}
.ed-ib.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.ed-ib:disabled {
  opacity: 0.4;
  cursor: default;
}
.ed-ib.danger:hover {
  background: var(--bad-bg);
  color: var(--bad);
}
.ed-sep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
  margin: 0 2px;
}
.ed-col {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  background: var(--surface);
  flex: none;
}
.ed-col span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.ed-col input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.sw {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  padding: 0;
  flex: none;
}
.ed-range {
  width: 90px;
}
.ed-lab {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.ed-canvas {
  padding: 20px 16px;
  background: var(--surface-2);
  background-image:
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%),
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 420px;
  overflow: hidden;
}
.stage-wrap {
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  flex: none;
}
.stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  overflow: hidden;
  touch-action: none;
}
.stage.static {
  pointer-events: none;
}
.el {
  position: absolute;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
}
.el-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.el[contenteditable='true'] {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  outline: calc(2px / var(--s, 1)) dashed #8b5cf6;
}
.el-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.selbox {
  position: absolute;
  outline: calc(2px / var(--s, 1)) solid #8b5cf6;
  pointer-events: none;
}
.handle {
  position: absolute;
  right: calc(-10px / var(--s, 1));
  bottom: calc(-10px / var(--s, 1));
  width: calc(20px / var(--s, 1));
  height: calc(20px / var(--s, 1));
  background: #fff;
  border: calc(2px / var(--s, 1)) solid #8b5cf6;
  border-radius: 50%;
  pointer-events: auto;
  cursor: nwse-resize;
}
.guide {
  position: absolute;
  background: #ec4899;
  pointer-events: none;
}
.gv {
  left: 50%;
  top: 0;
  bottom: 0;
  width: calc(2px / var(--s, 1));
}
.gh {
  top: 50%;
  left: 0;
  right: 0;
  height: calc(2px / var(--s, 1));
}
.ed-foot {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

/* CALENDAR */
.cal-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 8px;
  min-width: 930px;
}
.cal-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 280px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-day.today {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.cal-day.over {
  background: var(--accent-soft);
}
.cal-day.past {
  opacity: 0.72;
}
.cal-dh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  padding: 0 2px;
}
.cal-dh small {
  font-weight: 500;
  color: var(--ink-3);
}
.cal-best {
  font-size: 11px;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  font-weight: 700;
}
.ci {
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  background: var(--bg);
  cursor: grab;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ci b {
  font-size: 12px;
  line-height: 1.3;
}
.ci .ci-m {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--ink-3);
  font-size: 11px;
  flex-wrap: wrap;
}
.ci.s-concept {
  border-left-color: var(--ink-3);
}
.ci.s-goedkeuring {
  border-left-color: var(--warn);
}
.ci.s-gepland {
  border-left-color: var(--info);
}
.ci.s-gepubliceerd {
  border-left-color: var(--ok);
}
.ci.s-mislukt {
  border-left-color: var(--bad);
}
.ci.open {
  box-shadow: 0 0 0 2px var(--accent);
}
.cal-add {
  margin-top: auto;
  border: 1px dashed var(--line-2);
  background: none;
  border-radius: 8px;
  padding: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.cal-add:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.cal-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.flow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.flow .st {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--line);
  font-weight: 600;
}
.flow .st.on {
  background: var(--ink);
  color: var(--bg);
}

/* A/B */
.ab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.conf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.conf-wrap {
  position: relative;
  padding: 3px 0;
}
.conf-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.conf-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.conf-mark {
  position: absolute;
  left: 95%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
}
.conf-txt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.conf-txt b {
  color: var(--ink);
}
.ab-acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  display: inline-block;
}
.switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.switch span {
  position: absolute;
  inset: 0;
  background: var(--line-2);
  border-radius: 999px;
  transition: background 0.2s;
}
.switch span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch input:checked + span {
  background: var(--ok);
}
.switch input:checked + span::after {
  transform: translateX(16px);
}
.rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.rule:last-child {
  border-bottom: 0;
}
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.mstep {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.mstep .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.mstep b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.mstep p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.var-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
}
.var-lab {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.var-l {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.calc-out {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.calc-out b {
  color: var(--ink);
}

/* SETTINGS */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.int-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  min-width: 0;
}
.int-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.int-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.int-title {
  font-size: 17px;
  font-weight: 700;
}
.int-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  line-height: 1.6;
}
.api-steps {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
.api-step {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.5;
}
.api-step:last-child {
  margin-bottom: 0;
}
.api-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.conn-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.conn-badge.demo {
  background: var(--warn-bg);
  color: var(--warn);
}
.conn-badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

/* LIVE */
.login {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 16px;
}
.login-c {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-c .brand {
  padding: 0 0 6px;
}
.login-err {
  font-size: 13px;
  color: var(--bad);
  min-height: 18px;
}
.dash2b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nlist {
  display: flex;
  flex-direction: column;
}
.nitem {
  display: flex;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
}
.nitem:last-child {
  border-bottom: 0;
}
.nitem b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.nitem span {
  color: var(--ink-2);
}
.nitem small {
  color: var(--ink-3);
  white-space: nowrap;
  margin-left: auto;
}
.nitem.unread b::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: 1px;
}
.envlist {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre;
}
.team-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.team-row:last-child {
  border-bottom: 0;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* PROJECTEN */
.psel {
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
  max-width: 220px;
}
.pchip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.pchip i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.proj {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proj-band {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.proj-band .lg {
  height: 46px;
  display: flex;
  align-items: center;
}
.proj-band .lg svg {
  height: 100%;
  width: auto;
}
.proj-b {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.proj-n {
  font-size: 17px;
  font-weight: 700;
}
.dots {
  display: flex;
  gap: 4px;
}
.dots i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.proj-a {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.crow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.crow .fi {
  flex: 1;
}
.brand-prev {
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.brand-prev .lg {
  height: 52px;
}
.brand-prev .lg svg {
  height: 100%;
  width: auto;
}
.linkbox {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
}
.linkbox input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--surface);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.lib {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.lib-top {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: flex-start;
}
.cs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scroll-snap-type: x proximity;
}
.cs-item {
  flex: none;
  width: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
}
.cs-th {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  min-height: 156px;
}
.cs-plus {
  color: var(--ink-3);
}
.cs-plus svg {
  width: 34px;
  height: 34px;
}
.cs-b {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  min-width: 0;
}
.cs-b b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.cs-ph {
  align-self: flex-start;
  padding-left: 0;
}
.cs-b .bdg {
  align-self: flex-start;
}
.tp-modal .slot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cs-foot {
  padding: 0 16px 14px;
}
.cs-mini {
  padding: 2px 0 12px;
}
.cs-pick {
  flex: none;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  color: var(--ink-2);
}
.cs-pick span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-pick.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink) inset;
}
.cs-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cs-cta > div {
  min-width: 0;
  flex: 1 1 240px;
}
.pace {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: var(--ok);
}
.pace.snel,
.pace.traag {
  color: var(--warn, #b26b00);
}
.rev-note {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rev-note.afgekeurd {
  background: var(--bad-bg);
  color: var(--ink);
}
.rev-note.afgekeurd b {
  color: var(--bad);
}
.rev-note.beperkt {
  background: var(--warn-bg);
}
.learn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.learn.warn {
  background: var(--warn-bg);
  border-color: transparent;
}
.learn-i {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ai1);
}
.learn-i svg {
  width: 16px;
  height: 16px;
}
.ins-k,
.rep-k,
.rep-best {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.ins-k > div,
.rep-k > div,
.rep-best > div {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ins-k span,
.rep-k span,
.rep-best span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.ins-k b,
.rep-k b {
  font-size: 22px;
}
.rep-best b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-k small,
.rep-k small,
.rep-best small {
  color: var(--ink-3);
  font-size: 12px;
}
.ins-k > div.warn {
  background: var(--warn-bg);
}
.rep-k > div.ok {
  background: var(--ok-bg);
}
.rep-k > div.bad {
  background: var(--bad-bg);
}
.segs {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.sg-h,
.sg-r {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(110px, 2fr) 70px;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
}
.segs.l .sg-h,
.segs.l .sg-r {
  grid-template-columns: minmax(90px, 1.1fr) minmax(110px, 2fr) 64px 76px 92px;
}
.sg-h {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.sg-r.best {
  background: var(--ok-bg);
  border-radius: 6px;
}
.sg-h .tnum,
.sg-r .tnum {
  text-align: right;
}
@media (max-width: 700px) {
  .segs.l .sg-h,
  .segs.l .sg-r {
    grid-template-columns: minmax(70px, 1fr) minmax(70px, 1.4fr) 54px 70px;
  }
  .segs.l .sg-h span:nth-child(3),
  .segs.l .sg-r > span:nth-child(3) {
    display: none;
  }
}
.segbar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  width: 120px;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 2px;
}
.segbar i {
  display: block;
  height: 100%;
  background: var(--ink-3);
}
.rep-l {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.note-t {
  white-space: pre-wrap;
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.opt.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.opt:disabled {
  opacity: 0.6;
  cursor: default;
}
.g-sl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.g-sl-r {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.g-sl-r .fi {
  flex: 1 1 160px;
  min-width: 0;
}
.lf-r.over,
.chip.over {
  color: var(--bad);
}
.gad-co {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}
.gad-sl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
}
.gad-sl span {
  color: #1a0dab;
  font-size: 13px;
}
.gad-call {
  margin-top: 6px;
  font-size: 12px;
  color: #1a0dab;
}
.wz-mnav {
  display: none;
}
.var.flash {
  box-shadow: 0 0 0 3px var(--bad);
}
@media (max-width: 700px) {
  .opt-grid {
    grid-template-columns: 1fr;
  }
  .wz-main .wz-sec {
    display: none;
  }
  .wz-main[data-step='1'] #wz1,
  .wz-main[data-step='2'] #wz2,
  .wz-main[data-step='3'] #wz3,
  .wz-main[data-step='3'] #wz3b,
  .wz-main[data-step='4'] #wz4 {
    display: block;
  }
  .wz-main[data-step='1'] #wz-st1,
  .wz-main[data-step='2'] #wz-st2,
  .wz-main[data-step='3'] #wz-st3,
  .wz-main[data-step='4'] #wz-st4 {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
  }
  .wz-mnav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
}
.lib-th {
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.lib-txt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  color: #f8f5ef;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 22px, rgba(255, 255, 255, 0.02) 22px 44px), #6e6a5e;
  text-align: center;
}
.ph svg {
  width: 1.6em;
  height: 1.6em;
  opacity: 0.8;
}

/* veilige zone bij Story en Reel: alleen in de editor, niet in het beeld */
.safe-z {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(220, 38, 38, 0.16) 0 18px, rgba(220, 38, 38, 0.06) 18px 36px);
  border-top: 3px dashed rgba(220, 38, 38, 0.55);
  border-bottom: 3px dashed rgba(220, 38, 38, 0.55);
  z-index: 5;
}
.safe-z.soft {
  background: repeating-linear-gradient(135deg, rgba(234, 179, 8, 0.14) 0 18px, rgba(234, 179, 8, 0.04) 18px 36px);
  border-color: rgba(234, 179, 8, 0.6);
}
.safe-z span {
  position: absolute;
  right: 24px;
  bottom: 12px;
  font:
    600 30px/1.2 'Source Sans 3',
    sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border-radius: 8px;
}

/* TWEESTAPSVERIFICATIE */
.tf-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 70ch;
}
.tf-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0;
  overflow-wrap: anywhere;
  user-select: all;
}
.tf-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  max-width: 620px;
}
.tf-codes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 6px 10px;
  user-select: all;
}
