:root {
  --bg: #070708;
  --bg-2: #0b0b0d;
  --panel: #101114;
  --panel-2: #14161a;
  --panel-3: #1b1e23;
  --line: #1f2227;
  --line-2: #2a2e36;
  --text: #eceef2;
  --muted: #8c909a;
  --faint: #5d616b;
  --red: #ef3358;
  --red-2: #ff5472;
  --red-soft: rgba(239, 51, 88, .14);
  --green: #22c17e;
  --green-2: #3bdc96;
  --green-soft: rgba(34, 193, 126, .14);
  --orange: #f5a524;
  --orange-soft: rgba(245, 165, 36, .14);
  --blue: #4c8dff;
  --blue-soft: rgba(76, 141, 255, .14);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(239, 51, 88, .14), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { color: var(--green-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }
.ico { width: 18px; height: 18px; flex: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 560px; }
.section-pad { padding-top: 40px; padding-bottom: 60px; }
.section-title { margin: 36px 0 16px; font-size: 18px; }
.center { text-align: center; }
.t-right { text-align: right; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 193, 126, .6); } 100% { box-shadow: 0 0 0 9px rgba(34, 193, 126, 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--panel-3); color: var(--text);
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, var(--green-2), var(--green)); color: #03140c; box-shadow: 0 6px 20px rgba(34, 193, 126, .22); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(34, 193, 126, .36); }
.btn-brand { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 6px 20px rgba(239, 51, 88, .25); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: #3a3f49; }
.btn-danger { background: var(--red-soft); color: #ff7a93; border-color: rgba(239, 51, 88, .35); }
.btn-danger:hover { background: rgba(239, 51, 88, .22); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }

/* Top navigation */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topnav__inner { max-width: 1280px; height: 68px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.topnav__links { display: flex; align-items: center; gap: 4px; }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text);
  transition: background .2s, color .2s;
}
.topnav__link:hover { background: rgba(255, 255, 255, .05); }
.topnav__link .ico { width: 14px; height: 14px; }
.topnav__plus { color: var(--red-2); }
.topnav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mega { position: relative; }
.mega__panel {
  position: absolute; top: calc(100% + 12px); left: -90px; width: 760px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega:hover .mega__panel, .mega:focus-within .mega__panel { opacity: 1; transform: none; pointer-events: auto; }
.mega__title { font-size: 15px; font-weight: 700; padding: 0 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__item { display: flex; gap: 14px; padding: 11px 12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.mega__item:hover { background: rgba(255, 255, 255, .04); }
.mega__item strong { font-size: 14.5px; display: block; }
.mega__item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.mega__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); }
.mega__item:hover .mega__icon { background: rgba(34, 193, 126, .22); }
.mega__cta { margin-top: 12px; padding: 14px 14px 4px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mega__cta strong { display: block; }
.mega__cta small { color: var(--muted); font-size: 13px; }
.plus-tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--red-2); background: var(--red-soft); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* Avatars and server icons */
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--sm { width: 30px; height: 30px; }
.avatar--letter, .server-icon--letter { display: grid; place-items: center; background: linear-gradient(135deg, var(--panel-3), var(--line-2)); font-weight: 800; color: var(--text); }
.server-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; }
.server-icon--letter { font-size: 15px; }
.server-icon--lg { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }

/* Pills, dots, badges, tiles */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot--live { animation: pulse 2s infinite; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; }
.badge--green { background: var(--green-soft); color: var(--green-2); border-color: rgba(34, 193, 126, .3); }
.badge--red { background: var(--red-soft); color: var(--red-2); border-color: rgba(239, 51, 88, .3); }
.badge--orange { background: var(--orange-soft); color: var(--orange); border-color: rgba(245, 165, 36, .3); }
.badge--blue { background: var(--blue-soft); color: #7ab0ff; border-color: rgba(76, 141, 255, .3); }
.badge--muted { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line-2); }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); flex: none; }
.tile--red { background: var(--red-soft); color: var(--red-2); }
.tile--sm { width: 34px; height: 34px; border-radius: 10px; }
.tile--sm .ico { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card--hover:hover { transform: translateY(-3px); border-color: rgba(34, 193, 126, .35); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card__body { padding: 20px; }
.card--danger { border-color: rgba(239, 51, 88, .35); }
.card--center { text-align: center; padding: 48px 24px; }
.card--center .tile { margin: 0 auto 14px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: block; padding: 18px 20px; text-decoration: none; }
.stat__top { display: flex; align-items: center; gap: 10px; }
.stat__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat__value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 12px; font-variant-numeric: tabular-nums; animation: rise .6s var(--ease) both; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(239, 51, 88, .32), transparent); filter: blur(12px);
  animation: glow 7s ease-in-out infinite; pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 22px 0 0; }
.accent { background: linear-gradient(90deg, var(--red), #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 22px auto 0; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.mock { margin: 64px auto 0; max-width: 980px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.hero-image { margin: 48px auto 0; max-width: 980px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: auto; display: block; }
.mock__bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.mock__side { border-right: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock__main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__cards div { height: 74px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-3), var(--line-2), var(--panel-3)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.skel--lg { height: 20px; width: 40%; }
.skel--sm { width: 60%; }
.skel--md { width: 80%; }

.features-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.feature-card { display: block; padding: 24px; text-decoration: none; height: 100%; }
.feature-card h3 { margin-top: 16px; }
.feature-card p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.feature-card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.feature-card .badge { margin-left: 8px; }
.feature-card__head { display: flex; align-items: center; justify-content: space-between; }

.cta-band { margin: 80px 0 0; padding: 56px 32px; text-align: center; border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(600px 240px at 50% 0%, rgba(239, 51, 88, .16), transparent 70%), var(--panel); }
.cta-band p { color: var(--muted); margin-top: 10px; }

.price-card { padding: 28px; display: flex; flex-direction: column; height: 100%; }
.price-card--featured { border-color: rgba(34, 193, 126, .45); box-shadow: 0 0 0 1px rgba(34, 193, 126, .15), var(--shadow); }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 4px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.checklist li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.checklist .ico { color: var(--green-2); margin-top: 2px; width: 16px; height: 16px; }
.docs-list { display: grid; gap: 14px; }
.docs-list .card { padding: 22px; }
.docs-list ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.roadmap-group { padding: 24px; }
.roadmap-group ol { margin: 14px 0 0; padding-left: 22px; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: 14px; }
.legal p { color: var(--muted); margin-top: 14px; font-size: 16px; line-height: 1.7; }

.footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer__grid a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer__grid a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.req { color: var(--red-2); }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.select--sm { height: 32px; padding: 0 30px 0 10px; font-size: 13px; border-radius: 8px; width: auto; min-width: 130px; }
input[type="color"] { width: 56px; height: 40px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar .input { max-width: 420px; }
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #2a2e36; transition: background .25s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--green-soft); }

.perm {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.perm:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.perm strong { font-size: 14px; display: block; }
.perm small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Tables and lists */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .2s; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user small { display: block; color: var(--faint); font-size: 12px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.activity li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity li .dot { margin-top: 7px; }
.activity small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }

.empty { text-align: center; padding: 44px 24px; color: var(--muted); }
.empty .tile { margin: 0 auto 14px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.server-card { overflow: hidden; }
.server-card__banner { height: 96px; background: linear-gradient(135deg, #1d2026, #101114); position: relative; }
.server-card__banner--plus { background: linear-gradient(135deg, rgba(239, 51, 88, .55), rgba(255, 138, 92, .25) 60%, #101114); }
.server-card__body { padding: 0 18px 18px; margin-top: -26px; }
.server-card__body .server-icon { border: 4px solid var(--panel-2); width: 56px; height: 56px; border-radius: 14px; margin-bottom: 10px; font-size: 22px; }
.server-card__body h3 { font-size: 17px; margin-bottom: 6px; }
.server-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.role { padding: 20px; }
.role__head { display: flex; align-items: center; gap: 10px; }
.role__head strong { font-size: 16px; }
.role__head .muted { margin-left: auto; font-size: 13px; }
.role__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
.role form { margin: 0; }

.settings-grid { display: grid; gap: 16px; max-width: 860px; }
.settings-grid .card__body { display: grid; gap: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* Dialogs */
dialog.modal {
  width: min(560px, 92vw); padding: 0; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .28s var(--ease); }
.modal__head, .modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.modal__head { border-bottom: 1px solid var(--line); }
.modal__foot { border-top: 1px solid var(--line); justify-content: flex-end; }
.modal__body { padding: 20px 22px; max-height: 66vh; overflow: auto; }
.modal__body .field:last-child { margin-bottom: 0; }

/* Notices, locked, toast */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 380px; padding: 14px 18px;
  border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px;
  animation: toastIn .4s var(--ease), toastOut .5s 4.5s forwards;
}
.toast--error { border-color: rgba(239, 51, 88, .55); color: #ffb3c1; }
.lock-card { text-align: center; padding: 48px 28px; }
.lock-card .tile { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 16px; }
.lock-card p { color: var(--muted); margin: 10px 0 22px; }

/* App shell */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; overflow-y: auto;
}
.brand--side { padding: 4px 10px 14px; }
.server-switch {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 10px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s;
}
.server-switch:hover { border-color: var(--line-2); }
.server-switch__text { flex: 1; min-width: 0; }
.server-switch__text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-switch__text small { color: var(--muted); font-size: 12px; }
.sidenav { display: grid; gap: 2px; }
.sidenav__group { margin-bottom: 4px; }
.sidenav__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.sidenav__item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: color .2s, background .2s, transform .25s var(--ease);
}
.sidenav__item:hover { color: var(--text); background: rgba(255, 255, 255, .04); transform: translateX(2px); }
.sidenav__item.is-active { color: var(--green-2); background: var(--green-soft); }
.sidenav__item.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.sidenav__lock { margin-left: auto; color: var(--red-2); display: inline-flex; }
.sidenav__lock .ico { width: 14px; height: 14px; }
.sidebar__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; }
.me__text { min-width: 0; }
.me__text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__text small { color: var(--muted); font-size: 12px; }
.app__main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(7, 7, 8, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.menu-toggle { display: none; }
.search { position: relative; flex: 1; max-width: 460px; display: block; margin: 0; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: 10px; background: var(--panel);
  border: 1px solid var(--line); font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__right form { margin: 0; }
.content { padding: 28px 32px 64px; max-width: 1280px; width: 100%; }
.content > .card + .card { margin-top: 16px; }

/* Components added with the feature set */
.btn.is-on { background: var(--green-soft); color: var(--green-2); border-color: rgba(34, 193, 126, .35); }
.code { display: block; margin: 8px 0 12px; padding: 14px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #c9d1e0; white-space: pre-wrap; word-break: break-all; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--panel-3); padding: 2px 6px; border-radius: 6px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filterbar .input { max-width: 300px; height: 36px; padding: 6px 12px; }
.filterbar .select--sm { height: 36px; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.avatar--letter { font-size: 14px; }
.progress { height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--green-2)); transition: width 1.1s var(--ease); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel__step { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.funnel__step strong { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line-2); display: grid; gap: 18px; }
.timeline li { position: relative; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timeline__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 14px; }
.shift-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px; background: radial-gradient(500px 200px at 0% 0%, var(--green-soft), transparent 70%), var(--panel); }
.shift-hero__status { display: flex; align-items: center; gap: 14px; }
.shift-hero__status strong { font-size: 18px; display: block; }
.shift-pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); flex: none; }
.shift-pulse.is-on { background: var(--green); animation: pulse 2s infinite; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.podium__card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.podium__card--1 { border-color: rgba(245, 165, 36, .45); background: linear-gradient(180deg, var(--orange-soft), var(--panel)); }
.podium__card--2 { border-color: rgba(190, 200, 215, .3); }
.podium__card--3 { border-color: rgba(205, 127, 50, .35); }
.podium__rank { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 10px; }
.bars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars__bar { width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--green-2), var(--green)); transform-origin: bottom; animation: growY .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); min-height: 6px; transition: filter .2s; }
.bars__bar:hover { filter: brightness(1.2); }
.bars__value { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars__label { font-size: 11px; color: var(--faint); }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.spark__bar { flex: 1; border-radius: 4px; background: linear-gradient(180deg, var(--green-2), var(--green)); transform-origin: bottom; animation: growY .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.heat { display: grid; grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; font-size: 11px; color: var(--faint); }
.heat__hour { text-align: center; }
.heat__day { color: var(--muted); font-weight: 600; }
.heat__cell { aspect-ratio: 1; border-radius: 4px; background: rgba(34, 193, 126, var(--a, .08)); transition: transform .2s var(--ease), background .2s; }
.heat__cell:hover { transform: scale(1.25); }
.cal-label { min-width: 150px; text-align: center; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { min-height: 104px; padding: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 8ms); transition: border-color .2s, transform .2s var(--ease); }
.cal-day:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cal-day--muted { opacity: .25; background: transparent; }
.cal-day--today { border-color: var(--green); box-shadow: 0 0 0 1px var(--green-soft) inset; }
.cal-day__num { font-weight: 700; font-size: 13px; }
.chip-event { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: var(--green-soft); color: var(--green-2); font-size: 11px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell { position: relative; }
.bell__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; animation: pop .35s var(--ease); }
.empty-art { width: 160px; height: 120px; display: block; margin: 0 auto 12px; }
.radar { position: relative; width: min(320px, 80vw); margin: 56px auto 0; }
.radar svg { width: 100%; height: auto; overflow: visible; }
.radar__sweep { transform-origin: 160px 160px; animation: sweep 4.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__blip { transform-box: fill-box; transform-origin: center; animation: blip 2.8s ease-out infinite; }
.radar__blip--2 { animation-delay: .9s; }
.radar__blip--3 { animation-delay: 1.8s; }
@keyframes blip { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.float-card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; white-space: nowrap; }
.float-card--a { left: -6%; top: 12%; animation: bob 5s ease-in-out infinite; }
.float-card--b { right: -4%; bottom: 14%; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.bg-orbs span { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .22; animation: drift 16s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { background: var(--red); left: -120px; top: 10%; }
.bg-orbs span:nth-child(2) { background: var(--green); right: -140px; top: 40%; animation-delay: -6s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.card--glow { position: relative; }
.card--glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--green) 60deg, transparent 120deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
  animation: spin 5s linear infinite;
}
.card--glow:hover::after { opacity: .9; }
@keyframes spin { to { --angle: 360deg; } }
.shine { position: relative; overflow: hidden; }
.shine::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .08), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.shine:hover::before { left: 130%; }

/* SVG Backgrounds */
.bg-grid { background-image: url('/svg/bg-grid.svg'); background-repeat: repeat; }
.bg-dots { background-image: url('/svg/bg-dots.svg'); background-repeat: repeat; }
.bg-waves { background-image: url('/svg/bg-waves.svg'); background-repeat: repeat; background-size: 200px 200px; }

/* Forms: list, editor, responses, settings and public page */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fm-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 16px 24px; overflow: hidden; transition: transform .25s var(--ease), border-color .25s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fm-color, var(--green)); }
.fm-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fm-card__main { display: block; color: inherit; text-decoration: none; }
.fm-card__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fm-card h2 { font-size: 18px; margin-bottom: 4px; }
.fm-card__stats { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fm-card__stats strong { color: var(--text); }
.fm-card__open strong { color: var(--orange); }

.fm-types { display: grid; gap: 8px; }
.fm-types .fm-type { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--text); transition: border-color .2s, background .2s; }
.fm-types .fm-type:hover { border-color: #3a3f49; background: rgba(255, 255, 255, .02); }
.fm-types .fm-type input { position: absolute; opacity: 0; pointer-events: none; }
.fm-types .fm-type strong { display: block; font-size: 14px; }
.fm-types .fm-type small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
.fm-types .fm-type:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

.fm-hero { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 0; margin-bottom: 20px; }
.fm-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--fm-color, var(--green)); }
.fm-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fm-hero h1 { font-size: 26px; margin: 6px 0 4px; letter-spacing: -.02em; }
.fm-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.fm-back .ico { width: 14px; height: 14px; transform: rotate(180deg); }
.fm-back:hover { color: var(--text); }
.fm-tabs { display: flex; gap: 4px; margin: 18px -24px 0; padding: 0 24px; border-top: 1px solid var(--line); overflow-x: auto; }
.fm-tab { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.fm-tab .ico { width: 16px; height: 16px; }
.fm-tab:hover { color: var(--text); }
.fm-tab.is-active { color: var(--green-2); border-bottom-color: var(--green); }

.fm-edit { display: grid; gap: 16px; }
.fm-list { display: grid; gap: 12px; }
.fm-q { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .2s; animation: rise .4s var(--ease) both; }
.fm-q:hover, .fm-q:focus-within { border-color: var(--line-2); }
.fm-q--section { background: linear-gradient(90deg, var(--green-soft), var(--panel) 60%); border-left: 4px solid var(--green); }
.fm-q__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fm-q__num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fm-q__tools { display: flex; gap: 4px; }
.fm-q__tools .icon-btn { width: 30px; height: 30px; }
.fm-q__grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.fm-q .field { margin-bottom: 12px; }
.fm-q__grid .field { margin-bottom: 12px; }
.fm-q__quiz { margin: 2px 0 12px; padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line-2); display: grid; gap: 10px; }
.fm-q__quiz-title { font-size: 12px; font-weight: 700; color: var(--muted); }
.fm-q__correct { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-q__correct label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--line-2); cursor: pointer; color: var(--text); }
.fm-q__points { margin: 0; max-width: 160px; }
.fm-req { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.fm-req input, .fm-q__correct input { accent-color: var(--green); }
.fm-add__grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fm-empty { text-align: center; padding: 32px; border: 2px dashed var(--line-2); border-radius: 14px; color: var(--muted); }
.fm-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }

.fm-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fm-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .02); transition: color .2s, border-color .2s; }
.fm-pill span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--panel-3); color: var(--text); display: inline-grid; place-items: center; font-size: 12px; }
.fm-pill:hover { color: var(--text); }
.fm-pill.is-active { color: var(--text); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green-soft); }
.fm-pill.is-active span { background: var(--green); color: #03140c; }
.fm-responses { display: grid; gap: 12px; }
.fm-resp { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fm-resp__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-resp__who { display: grid; flex: 1; min-width: 180px; gap: 2px; }
.fm-resp__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-resp__body { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.fm-resp__body summary { cursor: pointer; color: var(--green-2); font-weight: 600; font-size: 14px; list-style: none; }
.fm-resp__body summary::-webkit-details-marker { display: none; }
.fm-resp__body[open] summary { margin-bottom: 14px; }
.fm-answers { display: grid; gap: 12px; margin: 0; }
.fm-answers dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fm-answers dd { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.fm-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fm-resp__actions { display: grid; gap: 12px; margin-top: 14px; }
.fm-review { display: grid; gap: 8px; }
.fm-review .row-actions { flex-wrap: wrap; }

.fm-settings { display: grid; gap: 16px; max-width: 880px; }
.fm-section .card__head h2 { font-size: 17px; }
.fm-section .card__head p { margin-top: 4px; }
.fm-roles { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0 0 16px; min-width: 0; }
.fm-roles legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.fm-roles__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fm-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); font-size: 13px; cursor: pointer; color: var(--text); }
.fm-check input { accent-color: var(--green); }
.fm-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fm-color { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); cursor: pointer; }
.fm-audit { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fm-audit li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fm-audit li:last-child { border-bottom: 0; }
.fm-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fm-danger:first-child { border-top: 0; padding-top: 0; }
.fm-danger strong { display: block; }
.fm-danger small { color: var(--muted); }

.fm-public { position: relative; min-height: 70vh; padding: 48px 0 80px; }
.fm-public__bg { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.fm-public__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 20px; }
.fm-public__card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.fm-public__band { height: 8px; background: var(--fm-color, var(--green)); }
.fm-public__head { padding: 28px 32px 8px; display: grid; gap: 10px; }
.fm-public__head h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.fm-public__desc { color: var(--muted); white-space: pre-wrap; line-height: 1.6; }
.fm-public__body { padding: 20px 32px 32px; }
.fm-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.fm-alert--error { background: var(--red-soft); border-color: rgba(239, 51, 88, .35); color: #ffb3c1; }
.fm-alert--ok { background: var(--green-soft); border-color: rgba(34, 193, 126, .3); color: var(--green-2); }
.fm-verified { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green-soft); border: 1px solid rgba(34, 193, 126, .3); border-radius: 10px; margin-bottom: 24px; font-size: 14px; flex-wrap: wrap; }
.fm-verified .ico { width: 13px; height: 13px; }
.fm-done { text-align: center; padding: 36px 12px; display: grid; justify-items: center; gap: 10px; }
.fm-done .tile { width: 60px; height: 60px; border-radius: 18px; }
.fm-done h2 { font-size: 22px; }
.fm-done p { max-width: 440px; }
.fm-sec { margin: 28px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fm-sec h2 { font-size: 19px; }
.fm-sec p { margin-top: 4px; white-space: pre-wrap; }
.fm-q-public { margin-bottom: 22px; display: grid; gap: 8px; }
.fm-q-public__label { font-size: 15px; font-weight: 600; display: flex; gap: 6px; }
.fm-q-public .req { color: var(--red-2); }
.fm-options { display: grid; gap: 8px; }
.fm-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; font-size: 15px; }
.fm-option input { accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.fm-option:hover { border-color: #3a3f49; }
.fm-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

@media (max-width: 640px) {
  .fm-q__grid { grid-template-columns: 1fr; }
  .fm-hero { padding: 18px 16px 0; }
  .fm-tabs { margin: 14px -16px 0; padding: 0 12px; }
  .fm-public__head, .fm-public__body { padding-left: 20px; padding-right: 20px; }
  .fm-toggle-row { align-items: flex-start; }
}

/* SVG Background patterns */
.bg-pattern-grid { background-image: url('/svg/bg-grid.svg'); background-repeat: repeat; opacity: 0.5; }
.bg-pattern-dots { background-image: url('/svg/bg-dots.svg'); background-repeat: repeat; }
.bg-pattern-waves { background-image: url('/svg/bg-waves.svg'); background-repeat: repeat; background-size: 200px 200px; }

/* View Transitions */
::view-transition-old(root) {
  animation: fadeOut 0.2s ease;
}
::view-transition-new(root) {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line-2); border-radius: 12px; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px;
  transition: border-color .2s, background .2s;
}
.dropzone.drag-over { border-color: var(--green); background: var(--green-soft); }
.dropzone .ico { width: 32px; height: 32px; color: var(--muted); }

/* Density */
.density-compact .card { padding: 14px; }
.density-compact .table th, .density-compact .table td { padding: 8px 12px; }
.density-compact .stat__value { font-size: 26px; }
.density-compact .page-head { margin-bottom: 16px; }

/* Tooltips */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--panel-3); color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: 12px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border: 1px solid var(--line-2);
  z-index: 100;
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.stat__value[data-count] { font-variant-numeric: tabular-nums; }

/* === 30 New Design Extensions === */

/* 1. Neumorphism */
.neumorphic {
  background: linear-gradient(145deg, #1a1d23, #0f1114);
  box-shadow: 8px 8px 16px #0a0b0d, -8px -8px 16px #1a1d23;
  border: none;
}
.neumorphic:hover {
  box-shadow: 4px 4px 8px #0a0b0d, -4px -4px 8px #1a1d23;
}

/* 2. Aurora background */
.aurora-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
}
.aurora-bg span {
  position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(80px); opacity: 0.3; animation: aurora 12s ease-in-out infinite alternate;
}
.aurora-bg span:nth-child(1) { background: #ef3358; top: -20%; left: -10%; animation-delay: 0s; }
.aurora-bg span:nth-child(2) { background: #22c17e; top: 30%; right: -20%; animation-delay: -4s; }
.aurora-bg span:nth-child(3) { background: #4c8dff; bottom: -20%; left: 30%; animation-delay: -8s; }
@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 3. Morphing blobs */
.morph-blob {
  position: absolute; width: 300px; height: 300px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(239,51,88,.3), rgba(34,193,126,.2));
  filter: blur(40px); animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
  75% { border-radius: 60% 40% 50% 40% / 60% 30% 60% 40%; }
}

/* 4. Text scramble */
.scramble { display: inline-block; }

/* 7. 3D card flip */
.flip-card { perspective: 1000px; }
.flip-card__inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card__inner { transform: rotateY(180deg); }
.flip-card__front, .flip-card__back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; }
.flip-card__back { transform: rotateY(180deg); }

/* 8. Liquid loading */
.liquid-loader {
  width: 60px; height: 60px; border-radius: 50%; position: relative; overflow: hidden;
  background: var(--panel-3); border: 2px solid var(--line-2);
}
.liquid-loader::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  animation: liquid 2s ease-in-out infinite;
}
@keyframes liquid {
  0%, 100% { height: 30%; border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
  50% { height: 70%; border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
}

/* 9. Gradient border animation */
.gradient-border {
  position: relative; border-radius: 16px; padding: 2px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue), var(--red));
  background-size: 300% 100%; animation: gradientBorder 4s linear infinite;
}
.gradient-border > * { background: var(--panel); border-radius: 14px; }
@keyframes gradientBorder { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* 10. Floating action button */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #03140c; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(34, 193, 126, .35);
  display: grid; place-items: center; font-size: 24px; font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 12px 32px rgba(34, 193, 126, .5); }

/* 11. Bottom sheet */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: var(--panel); border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform .3s var(--ease);
  max-height: 80vh; overflow-y: auto; padding: 20px;
}
.bottom-sheet.is-open { transform: translateY(0); }
.bottom-sheet__handle { width: 40px; height: 4px; background: var(--line-2); border-radius: 2px; margin: 0 auto 16px; }

/* 12. Pull to refresh */
.pull-refresh { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 14. Infinite marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 17. Confetti */
.confetti-piece { position: fixed; width: 10px; height: 10px; top: -10px; z-index: 9999; pointer-events: none; }

/* 18. Ripple effect */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.3);
  width: 100px; height: 100px; margin-top: -50px; margin-left: -50px;
  animation: ripple 0.6s linear; transform: scale(0); opacity: 1; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* 19. Skeleton shimmer (enhanced) */
.skeleton-enhanced {
  background: linear-gradient(90deg, var(--panel-3) 25%, var(--line-2) 50%, var(--panel-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}

/* 20. Progress ring */
.progress-ring { position: relative; width: 60px; height: 60px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 4; }
.progress-ring .bg { stroke: var(--line-2); }
.progress-ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.progress-ring__text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* 21. Animated counters (enhanced) */
.counter-animated { font-variant-numeric: tabular-nums; }

/* 22. Typewriter effect */
.typewriter { overflow: hidden; border-right: 2px solid var(--green); white-space: nowrap; animation: typing 3s steps(40) 1s forwards, blink .75s step-end infinite; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

/* 23. Hover reveal */
.hover-reveal { position: relative; }
.hover-reveal__content { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.hover-reveal:hover .hover-reveal__content { opacity: 1; transform: translateY(0); }

/* 24. Scroll snap */
.scroll-snap { scroll-snap-type: y mandatory; overflow-y: auto; height: 100vh; }
.scroll-snap > section { scroll-snap-align: start; }

/* 26. Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { color: var(--faint); }

/* 27. Animated tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs__tab { padding: 10px 16px; border: none; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; position: relative; transition: color .2s; }
.tabs__tab.is-active { color: var(--green-2); }
.tabs__indicator { position: absolute; bottom: -1px; height: 2px; background: var(--green); transition: left .3s var(--ease), width .3s var(--ease); }

/* 28. Accordion */
.accordion__item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.accordion__head { padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: background .2s; }
.accordion__head:hover { background: rgba(255,255,255,.03); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s; padding: 0 16px; }
.accordion__item.is-open .accordion__body { max-height: 500px; padding: 0 16px 14px; }

/* 29. Tooltip (enhanced) */
.tooltip-rich { position: relative; }
.tooltip-rich__content { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; min-width: 200px; box-shadow: var(--shadow); }
.tooltip-rich:hover .tooltip-rich__content { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.tooltip-rich__content img { width: 100%; border-radius: 6px; margin-bottom: 8px; }

/* 30. Dark mode transition */
html { transition: background-color .3s, color .3s; }
html.light, html.dark { transition: background-color .3s, color .3s; }

/* Responsive */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 264px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .sidebar.is-open { transform: none; }
  .menu-toggle { display: inline-grid; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 0 14px; }
  .topnav__links { display: none; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .roadmap-group ol { grid-template-columns: 1fr; }
}
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    background: rgba(7, 7, 8, .9); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 4px; font-size: 10px; color: var(--muted); text-decoration: none;
  }
  .mobile-nav a.is-active { color: var(--green-2); }
  .mobile-nav .ico { width: 20px; height: 20px; }
  .app__main { padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .stats, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 60px; }
  .footer__grid { grid-template-columns: 1fr; }
  .mock__cards { grid-template-columns: 1fr; }
  .topbar .search { max-width: none; }
  .topbar__right .btn span { display: none; }
  .container { padding: 0 16px; }
}


/* ==========================================================================
   Schuine vensters (skewed cards) - dark gaming/moderation design
   ========================================================================== */
.skew-wrap { position: relative; overflow: hidden; border-radius: 20px; }
.skew-wrap::before { content: ""; position: absolute; inset: -10%; transform: rotate(-3deg); background: linear-gradient(135deg, rgba(239,51,88,.15), rgba(34,193,126,.10), rgba(76,141,255,.12)); border-radius: 24px; z-index: 0; pointer-events: none; }
.skew-wrap > * { position: relative; z-index: 1; }
.skew-card { background: rgba(15,17,21,.85); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; backdrop-filter: blur(12px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.75); transition: transform .3s var(--ease), border-color .2s; }
.skew-card:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(34,193,126,.35); }
.skew-stack { position: relative; }
.skew-stack > * { position: absolute; inset: 0; border-radius: 16px; transform: rotate(-2deg); opacity: .92; transition: transform .4s var(--ease), opacity .3s, z-index .2s; }
.skew-stack > *:nth-child(1) { transform: rotate(-2deg) translateY(-12px); z-index: 3; opacity: 1; box-shadow: 0 40px 100px -30px rgba(0,0,0,.85); }
.skew-stack > *:nth-child(2) { transform: rotate(-1deg) translateY(-6px); z-index: 2; }
.skew-stack > *:nth-child(3) { transform: rotate(0deg) translateY(0px); z-index: 1; opacity: .85; }
.skew-stack:hover > *:nth-child(1) { transform: rotate(-2deg) translateY(-4px); }
.skew-stack:hover > *:nth-child(3) { opacity: .6; }
.skew-glow { position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: linear-gradient(90deg, #ef3358, #22c17e, #4c8dff, #f5a524, #9565ff); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity .3s; }
.skew-card:hover .skew-glow { opacity: .55; }
.skew-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--text); }
.skew-badge .ico { width: 14px; height: 14px; }
.skew-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 6px; background: linear-gradient(90deg, #fff, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.skew-sub { color: var(--muted); font-size: 14px; line-height: 1.55; }
.skew-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(15,17,21,.6); color: var(--text); font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.skew-cta:hover { background: rgba(34,193,126,.15); border-color: rgba(34,193,126,.45); transform: translateX(4px); }
.skew-cta .ico { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .skew-stack > * { position: relative; inset: auto; transform: none !important; opacity: 1 !important; margin-bottom: 14px; }
}

/* Homepage showcase grid */
.skew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; }
.skew-wrap { position: relative; }
.skew-wrap:hover .skew-card { transform: translateY(-6px) scale(1.02); border-color: rgba(34,193,126,.5); }
.skew-wrap:hover .skew-glow { opacity: .7; }

/* Light theme */
.theme-light {
  --bg: #f8f9fa;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f3f5;
  --panel-3: #e9ecef;
  --line: #dee2e6;
  --line-2: #ced4da;
  --text: #212529;
  --muted: #6c757d;
  --faint: #adb5bd;
  --red: #dc3545;
  --red-2: #c82333;
  --red-soft: rgba(220,53,69,.1);
  --green: #28a745;
  --green-2: #218838;
  --green-soft: rgba(40,167,69,.1);
  --blue: #007bff;
  --blue-soft: rgba(0,123,255,.1);
  --orange: #fd7e14;
  --orange-soft: rgba(253,126,20,.1);
  --shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Command palette */
.command-palette { position: fixed; inset: 0; z-index: 200; display: none; }
.command-palette.is-open { display: block; }
.command-palette__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.command-palette__box { position: relative; max-width: 520px; margin: 80px auto 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: rise .2s var(--ease); }
.command-palette__box .input { border: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.command-palette__results { max-height: 360px; overflow-y: auto; padding: 8px; }
.command-palette__item { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s; }
.command-palette__item:hover { background: rgba(255,255,255,.05); }

/* ==========================================================================
   Formulieren: bouwer, pipeline, antwoorden, delen, versies, sjablonen,
   openbaar formulier
   ========================================================================== */

/* Bouwer ---------------------------------------------------------------- */
.fm-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fm-draft__actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-draft__actions form { margin: 0; }

.fm-translate { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.fm-translate > summary { cursor: pointer; color: var(--green-2); font-weight: 600; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 6px; }
.fm-translate > summary::-webkit-details-marker { display: none; }
.fm-translate > summary::after { content: "+"; font-weight: 700; color: var(--muted); }
.fm-translate[open] > summary::after { content: "\2212"; }
.fm-translate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fm-translate__grid .field { margin-bottom: 0; }
.fm-translate > p { margin-top: 10px; }

.fm-builder { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.fm-builder__main { display: grid; gap: 16px; min-width: 0; }
.fm-builder__side { display: grid; gap: 14px; position: sticky; top: 84px; min-width: 0; }
.fm-builder__side .card__head { padding: 14px 16px 0; }
.fm-builder__side .card__body { padding: 12px 16px 16px; }
.fm-builder__side .card__head h2 { font-size: 15px; }
.fm-sideactions { display: grid; gap: 8px; }
.fm-sideactions .btn { justify-content: flex-start; }

.fm-blocklist { display: grid; gap: 8px; }
.fm-block {
  display: block; width: 100%; text-align: left; margin: 0;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.fm-block:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.fm-block strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.fm-block small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.fm-block--custom { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 0; }
.fm-block--custom:hover { transform: none; }
.fm-block__apply { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; padding: 10px 12px; cursor: pointer; font: inherit; }
.fm-block__apply strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.fm-block__apply small { display: block; color: var(--muted); font-size: 12px; }
.fm-block--custom .icon-btn { flex: none; }

.fm-savebar__actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-kb-hint { margin-top: 10px; }

.fm-q__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm-q__grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fm-q__advanced { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.fm-q__advanced > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.fm-q__advanced > summary::-webkit-details-marker { display: none; }
.fm-q__advanced > summary::before { content: "\25B8"; font-size: 11px; transition: transform .2s; }
.fm-q__advanced[open] > summary::before { transform: rotate(90deg); }
.fm-q__advanced > summary:hover { color: var(--text); }
.fm-q__advanced .field { margin-top: 10px; }
.fm-q__grid2 .field, .fm-q__grid3 .field { margin-bottom: 0; }
.fm-q__drag {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; color: var(--faint); cursor: grab; touch-action: none;
}
.fm-q__drag .ico { width: 16px; height: 16px; }
.fm-q__drag:hover { background: var(--panel-3); color: var(--text); }
.fm-q__drag:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.fm-q__drag:active { cursor: grabbing; }
.fm-q.is-dragging { opacity: .55; border-color: var(--green); }
.fm-q.is-over-top { box-shadow: 0 -3px 0 var(--green); }
.fm-q.is-over-bottom { box-shadow: 0 3px 0 var(--green); }

.fm-logic__rows { display: grid; gap: 8px; margin: 10px 0; }
.fm-logic__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.fm-logic__row .select, .fm-logic__row .input { min-width: 0; }
.fm-logic__match { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.fm-logic__match .select { width: auto; min-width: 130px; }

/* Sjablonen -------------------------------------------------------------- */
.fm-templates-title { font-size: 20px; margin: 8px 0 4px; }
.fm-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.fm-template {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: border-color .2s, transform .2s;
}
.fm-template:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fm-template__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fm-template h3 { font-size: 17px; }
.fm-template > p { flex: 1; }
.fm-template__preview { border-top: 1px dashed var(--line); padding-top: 10px; }
.fm-template__preview > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green-2); list-style: none; }
.fm-template__preview > summary::-webkit-details-marker { display: none; }
.fm-template__preview ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fm-template__preview li { line-height: 1.4; }
.fm-template__form { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.fm-template__form .field { margin: 0; }
.fm-template__form .btn { width: 100%; }
.fm-create-form { display: grid; gap: 12px; max-width: 640px; }
.fm-templates-foot { margin-top: 20px; }
.fm-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fm-blocks .fm-block { cursor: default; transform: none; }
.fm-blocks .fm-block:hover { border-color: var(--line); background: var(--panel-2); transform: none; }
.fm-block__questions { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.fm-block__questions li { line-height: 1.35; }

/* Pipeline (kanban) ------------------------------------------------------ */
.fm-pipeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fm-pipeline-head h2 { font-size: 22px; margin-bottom: 4px; }
.fm-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.fm-kanban__col {
  background: rgba(255, 255, 255, .015); border: 1px solid var(--line); border-radius: 14px;
  min-height: 180px; display: flex; flex-direction: column; scroll-snap-align: start;
  transition: border-color .2s, background .2s;
}
.fm-kanban__col.is-over { border-color: var(--green); background: var(--green-soft); }
.fm-kanban__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fm-kanban__head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fm-kanban__count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--panel-3); color: var(--text); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.fm-kanban__list { display: grid; gap: 8px; padding: 10px; align-content: start; min-height: 120px; }
.fm-kanban__empty { margin: 8px 2px; text-align: center; }
.fm-kanban-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px;
  cursor: grab; display: grid; gap: 6px;
  transition: border-color .2s, transform .15s, opacity .2s, box-shadow .2s;
}
.fm-kanban-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.fm-kanban-card:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.fm-kanban-card.is-dragging { opacity: .45; border-color: var(--green); cursor: grabbing; }
.fm-kanban-card.is-busy { opacity: .6; pointer-events: none; }
.fm-kanban-card.is-moved { animation: fmPop .5s var(--ease); }
@keyframes fmPop { 0% { transform: scale(.97); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }
.fm-kanban-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fm-kanban-card__top strong { font-size: 14px; }
.fm-kanban-card p { margin: 0; }
.fm-kanban-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; flex-wrap: wrap; }
.fm-kanban-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--green-2); text-decoration: none; }
.fm-kanban-card__link .ico { width: 12px; height: 12px; }
.fm-kanban-move { display: flex; align-items: center; gap: 4px; }
.fm-kanban-move .select { height: 30px; padding: 0 24px 0 8px; font-size: 12px; background-position: right 6px center; }
.fm-kanban-move .icon-btn { width: 30px; height: 30px; }
.fm-pipeline-legend { margin-top: 6px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 10px; }

/* Antwoorddetail --------------------------------------------------------- */
.fm-response-head {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 18px; border-top: 3px solid var(--fm-color, var(--green));
  display: grid; gap: 14px;
}
.fm-response-head__who { display: grid; gap: 10px; }
.fm-response-head__title { display: flex; align-items: center; gap: 12px; }
.fm-response-head__title h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.fm-response-head__title p { margin: 2px 0 0; }
.fm-response-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-resp__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-avatar--sm, .fm-response-head .avatar { flex: none; }

.fm-response-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.fm-response-main, .fm-response-side { display: grid; gap: 16px; min-width: 0; }
.fm-response-side { position: sticky; top: 84px; }
.fm-response-main .card__body > :last-child, .fm-response-side .card__body > :last-child { margin-bottom: 0; }

.fm-response-answers { display: grid; gap: 0; margin: 0; }
.fm-response-answer { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fm-response-answer:first-child { padding-top: 0; }
.fm-response-answer:last-child { border-bottom: 0; padding-bottom: 0; }
.fm-response-answer dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fm-response-answer dd { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.fm-response-answer__type { font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: var(--panel-3); color: var(--muted); text-transform: uppercase; }
.fm-response-answer__text { display: block; line-height: 1.55; }
.fm-empty-answers { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.fm-empty-answers > summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.fm-matrix-view { display: grid; gap: 4px; }
.fm-matrix-view span { display: block; font-size: 14px; }
.fm-matrix-view strong { color: var(--muted); font-weight: 600; margin-right: 6px; }

.fm-consent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fm-consent-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); display: grid; gap: 4px; }
.fm-consent-list li p { margin: 0; font-size: 14px; line-height: 1.5; }
.fm-consent-list li small { display: block; }

.fm-scorecard { display: grid; gap: 12px; }
.fm-scorecard__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.fm-scorecard__criterion { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 13.5px; font-weight: 600; }
.fm-scorecard__criterion small { display: block; font-weight: 400; }
.fm-scorecards { display: grid; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.fm-scorecard-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); display: grid; gap: 8px; }
.fm-scorecard-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fm-scorecard-item__scores { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-scorecard-item p { margin: 0; font-size: 13.5px; }

.fm-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.fm-timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.fm-timeline li:last-child { padding-bottom: 0; }
.fm-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 1px; background: var(--line-2); }
.fm-timeline__dot { width: 9px; height: 9px; margin: 4px 0 0 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); position: relative; z-index: 1; }
.fm-timeline strong { font-size: 13.5px; }
.fm-timeline p { margin: 3px 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.fm-timeline small { display: block; }

.fm-mini-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.fm-mini-list li { padding: 8px 10px; border-radius: 8px; background: var(--panel-2); font-size: 13px; line-height: 1.45; }

.fm-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fm-notes li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.fm-notes header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fm-notes p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.5; }
.fm-note-form { display: grid; gap: 10px; }
.fm-fill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-danger-card { border-color: rgba(239, 51, 88, .3); }

.fm-stack { display: grid; gap: 10px; }
.fm-stack > .btn, .fm-stack .fm-inline-form { justify-self: start; }
.fm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-grid-2 .field { margin-bottom: 0; }
.fm-inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-inline-form .select { flex: 1; min-width: 140px; }
.fm-taglist { display: flex; flex-wrap: wrap; gap: 5px; }

/* Delen ------------------------------------------------------------------ */
.fm-share-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.fm-share-main, .fm-share-side { display: grid; gap: 16px; min-width: 0; }
.fm-share-side { position: sticky; top: 84px; }
.fm-copybox { display: flex; gap: 8px; align-items: stretch; }
.fm-copybox .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.fm-share-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fm-share-actions form { margin: 0; }
.fm-links { display: grid; gap: 12px; }
.fm-link { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: var(--panel-2); transition: border-color .2s, opacity .2s; }
.fm-link:hover { border-color: var(--line-2); }
.fm-link.is-off { opacity: .62; }
.fm-link__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fm-link__head strong { display: block; font-size: 15px; }
.fm-link__stats { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.fm-link__stats span { display: inline-flex; align-items: center; gap: 4px; }
.fm-link__stats .ico { width: 13px; height: 13px; }
.fm-link__edit { border-top: 1px dashed var(--line); padding-top: 10px; }
.fm-link__edit > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; }
.fm-link__edit > summary::-webkit-details-marker { display: none; }
.fm-link__edit > summary:hover { color: var(--text); }
.fm-link__edit > form { margin-top: 12px; display: grid; gap: 10px; }
.fm-link__edit .fm-grid-2 { gap: 10px; }
.fm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.fm-steps li { position: relative; padding-left: 38px; display: grid; gap: 2px; }
.fm-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green-2);
  border: 1px solid rgba(34, 193, 126, .35); font-size: 12px; font-weight: 700;
}
.fm-steps strong { font-size: 13.5px; }
.fm-steps span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Versies ---------------------------------------------------------------- */
.fm-versions-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fm-versions-head h2 { font-size: 22px; margin-bottom: 4px; }
.fm-current-version { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-current-version strong { font-size: 15px; }
.fm-versions { display: grid; gap: 14px; }
.fm-version { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.fm-version__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fm-version__head strong { display: block; font-size: 15px; }
.fm-version__head span.muted { font-size: 12.5px; }
.fm-version__diff { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fm-version__diff li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.fm-version__diff li .badge { flex: none; }
.fm-version__diff small { display: block; color: var(--muted); }
.fm-version__meta { border-top: 1px dashed var(--line); padding-top: 10px; }
.fm-version__meta > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; }
.fm-version__meta > summary::-webkit-details-marker { display: none; }
.fm-version__meta > summary:hover { color: var(--text); }
.fm-version__content { margin-top: 10px; font-size: 13.5px; display: grid; gap: 6px; }
.fm-version__content p { margin: 0; }
.fm-version__questions { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.fm-version__questions li { line-height: 1.4; }
.fm-version > form { justify-self: start; }

/* Antwoordenlijst -------------------------------------------------------- */
.fm-responses-head { border-color: var(--line); }
.fm-resp-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-resp-search__input { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; }
.fm-resp-search__input .ico { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.fm-resp-search__input .input { padding-left: 34px; }
.fm-resp-search .select { width: auto; min-width: 140px; }
.fm-resp-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.fm-resp-toolbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-saved-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-saved-filter { display: inline-flex; align-items: center; gap: 2px; }
.fm-saved-filter .icon-btn { width: 26px; height: 26px; }
.fm-save-filter > summary { list-style: none; display: inline-flex; }
.fm-save-filter > summary::-webkit-details-marker { display: none; }
.fm-save-filter__form {
  position: absolute; z-index: 20; margin-top: 8px; width: 280px; max-width: calc(100vw - 32px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow);
}
.fm-save-filter { position: relative; }
.fm-bulk { margin-bottom: 12px; }
.fm-bulk__bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px;
}
.fm-bulk__bar .select, .fm-bulk__bar .input { width: auto; min-width: 120px; height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.fm-bulk__bar .input { max-width: 200px; }
.fm-bulk__bar > .fm-req { flex: none; }
.fm-resp__check { width: 17px; height: 17px; flex: none; accent-color: var(--green); }
.fm-resp__preview { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; font-size: 13px; }
.fm-resp__preview span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-resp__preview strong { color: var(--text); font-weight: 600; }
.fm-resp__actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Openbaar formulier ----------------------------------------------------- */
.fm-public--embed { padding: 16px 0 24px; min-height: 0; }
.fm-public--embed .fm-public__inner { padding: 0 12px; }
.fm-public--embed .fm-public__card { border-radius: 14px; }
.fm-public__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fm-public__foot { margin-top: 18px; text-align: center; }
.fm-lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--bg-2); }
.fm-lang__btn { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.fm-lang__btn:hover { color: var(--text); }
.fm-lang__btn.is-active { background: var(--green); color: #03140c; }
.fm-preview-banner { position: relative; z-index: 2; }

.fm-progress { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin: 0 0 22px; }
.fm-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #4c8dff); transition: width .35s var(--ease); }

.fm-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.fm-public-form { display: block; }
.fm-q-public.is-hidden { display: none !important; }
.fm-q-public.is-error .input, .fm-q-public.is-error .textarea, .fm-q-public.is-error .select, .fm-q-public.is-error .fm-upload__drop { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.fm-q-public__error { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--red-2); }
.fm-q-public__help { margin-top: -2px; }

.fm-livecheck { display: grid; gap: 6px; }
.fm-livecheck__status { min-height: 18px; font-size: 12.5px; color: var(--muted); }
.fm-livecheck__status[data-kind="busy"] { color: var(--muted); }
.fm-livecheck__status[data-kind="done"] { color: var(--green-2); }
.fm-livecheck__status[data-kind="error"] { color: var(--red-2); }

.fm-ranking__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fm-ranking__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2);
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.fm-ranking__item::before { content: attr(data-position); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.fm-ranking__item.is-dragging { opacity: .5; border-color: var(--green); }
.fm-ranking__item.is-over { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.fm-ranking__grip { color: var(--faint); cursor: grab; display: inline-grid; place-items: center; }
.fm-ranking__grip .ico { width: 15px; height: 15px; }
.fm-ranking__label { flex: 1; min-width: 0; font-size: 14.5px; }
.fm-ranking__tools { display: inline-flex; gap: 2px; }
.fm-ranking__tools .icon-btn { width: 28px; height: 28px; }
.fm-ranking__tools .icon-btn:disabled { opacity: .3; }
.fm-ranking__tools .icon-btn .ico { width: 15px; height: 15px; }

.fm-nps__row { display: flex; flex-wrap: wrap; gap: 5px; }
.fm-nps__item { position: relative; flex: 1 1 34px; min-width: 32px; }
.fm-nps__item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fm-nps__item span {
  display: grid; place-items: center; height: 38px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
}
.fm-nps__item:hover span { border-color: #3a3f49; color: var(--text); }
.fm-nps__item:has(input:checked) span { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.fm-nps__item:has(input:focus-visible) span { outline: 2px solid var(--green); outline-offset: 1px; }
.fm-scale__labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.fm-range { width: 100%; accent-color: var(--green); margin: 6px 0 2px; }
.fm-range__out { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-size: 13px; font-weight: 700; }

.fm-matrix { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.fm-matrix table { width: 100%; border-collapse: collapse; min-width: 420px; }
.fm-matrix th, .fm-matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: center; }
.fm-matrix thead th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); }
.fm-matrix tbody th { text-align: left; font-weight: 500; color: var(--text); white-space: nowrap; }
.fm-matrix tr:last-child th, .fm-matrix tr:last-child td { border-bottom: 0; }
.fm-matrix__cell { display: inline-grid; place-items: center; width: 26px; height: 26px; cursor: pointer; }
.fm-matrix__cell input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }

.fm-upload { display: grid; gap: 8px; }
.fm-upload__drop {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 22px 16px; border: 2px dashed var(--line-2); border-radius: 12px; background: var(--bg-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.fm-upload__drop:hover, .fm-upload__drop.is-over { border-color: var(--green); background: var(--green-soft); }
.fm-upload__drop .tile { width: 42px; height: 42px; border-radius: 12px; }
.fm-upload__drop p { margin: 0; max-width: 360px; }
.fm-upload.is-uploading .fm-upload__drop { opacity: .6; pointer-events: none; }
.fm-upload.is-done .fm-upload__drop { border-color: var(--green); border-style: solid; }
.fm-upload__status { min-height: 18px; font-size: 12.5px; color: var(--muted); }
.fm-upload__status[data-kind="busy"] { color: var(--muted); }
.fm-upload__status[data-kind="done"] { color: var(--green-2); font-weight: 600; }
.fm-upload__status[data-kind="error"] { color: var(--red-2); font-weight: 600; }

.fm-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); font-size: 14px; line-height: 1.5; cursor: pointer; }
.fm-consent input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--green); }
.fm-consent:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.fm-signature { display: grid; gap: 6px; }
.fm-signature__input { font-style: italic; letter-spacing: .02em; }
.fm-submitbar { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; text-align: center; }
.fm-submitbar p { max-width: 480px; margin: 0; }

/* Analytics -------------------------------------------------------------- */
.fm-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.fm-analytics-grid .card { margin: 0; }
.fm-status-breakdown { display: grid; gap: 12px; }
.fm-status-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px 44px; align-items: center; gap: 10px; }
.fm-status-row .badge { justify-self: start; }
.fm-status-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.fm-status-row > .muted { text-align: right; }
.fm-question-stats { display: grid; gap: 16px; }
.fm-question-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); display: grid; gap: 8px; }
.fm-question-stat header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fm-question-stat header div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-question-stat header strong { font-size: 14px; }
.fm-question-stat p { margin: 0; }
.fm-distribution { display: grid; gap: 6px; margin-top: 4px; }
.fm-distribution__row { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 12.5px; }
.fm-distribution__row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.fm-distribution__row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .fm-builder { grid-template-columns: minmax(0, 1fr); }
  .fm-builder__side { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .fm-response-layout { grid-template-columns: minmax(0, 1fr); }
  .fm-response-side { position: static; }
  .fm-share-layout { grid-template-columns: minmax(0, 1fr); }
  .fm-share-side { position: static; }
  .fm-analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .fm-q__grid2, .fm-q__grid3, .fm-grid-2, .fm-translate__grid { grid-template-columns: 1fr; }
  .fm-logic__row { grid-template-columns: 1fr 1fr; }
  .fm-logic__row .input, .fm-logic__row .select:last-of-type { grid-column: 1 / -1; }
  .fm-logic__row .icon-btn { grid-column: 2; justify-self: end; }
}

@media (max-width: 640px) {
  .fm-builder__side { grid-template-columns: 1fr; }
  .fm-savebar { flex-direction: column; align-items: stretch; }
  .fm-savebar__actions { display: grid; grid-template-columns: 1fr; }
  .fm-savebar__actions .btn { width: 100%; justify-content: center; }
  .fm-resp-search { flex-direction: column; align-items: stretch; }
  .fm-resp-search .select, .fm-resp-search .btn { width: 100%; }
  .fm-bulk__bar { flex-direction: column; align-items: stretch; }
  .fm-bulk__bar .select, .fm-bulk__bar .input { width: 100%; max-width: none; }
  .fm-copybox { flex-direction: column; }
  .fm-copybox .btn { width: 100%; justify-content: center; }
  .fm-response-head__title h1 { font-size: 19px; }
  .fm-kanban { grid-auto-columns: 86%; }
  .fm-link__head { flex-direction: column; }
  .fm-link__stats { flex-wrap: wrap; }
  .fm-submitbar .btn { width: 100%; }
  .fm-nps__item { flex-basis: 30px; }
}

/* ==========================================================================
   Formulieren design v2: openbare formulieren en sollicitaties
   Overschrijft de eerdere openbare-formulier stijlen. Accentkleur per formulier
   via --fm-color.
   ========================================================================== */
.fm-public {
  --fm-soft: color-mix(in srgb, var(--fm-color, #22c17e) 15%, transparent);
  --fm-ring: color-mix(in srgb, var(--fm-color, #22c17e) 40%, transparent);
  padding: 56px 0 96px;
  background: radial-gradient(900px 420px at 50% -8%, color-mix(in srgb, var(--fm-color, #22c17e) 16%, transparent), transparent 70%);
}
.fm-public--embed { padding: 12px 0 20px; background: none; }
.fm-public__bg { opacity: .3; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%); }
.fm-public__inner { max-width: 720px; }
.fm-public__card {
  border-radius: 24px; overflow: hidden;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -36px rgba(0, 0, 0, .65);
}
.fm-public__band { height: 5px; background: linear-gradient(90deg, var(--fm-color, #22c17e), color-mix(in srgb, var(--fm-color, #22c17e) 35%, #4c8dff)); }
.fm-public__head { padding: 30px 36px 22px; gap: 12px; background: linear-gradient(180deg, var(--fm-soft), transparent 85%); }
.fm-public__top { align-items: center; }
.fm-public__head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.fm-public__desc { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.fp-type {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--fm-soft); color: var(--text); font-size: 12.5px; font-weight: 700;
}
.fp-type .ico { width: 14px; height: 14px; color: var(--fm-color, #22c17e); }
.fp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fp-meta__item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fp-meta__item .ico { width: 14px; height: 14px; }
.fm-public__body { padding: 6px 36px 36px; }

.fp-progress { display: grid; gap: 7px; padding: 4px 0 18px; }
.fp-progress__text { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fm-progress { height: 6px; margin: 0; background: var(--panel-3); }
.fm-progress span { background: linear-gradient(90deg, var(--fm-color, #22c17e), color-mix(in srgb, var(--fm-color, #22c17e) 50%, #4c8dff)); }

.fm-public-form { counter-reset: fq; display: grid; gap: 14px; }
.fm-q-public {
  counter-increment: fq; position: relative; margin: 0; gap: 10px;
  padding: 20px 20px 20px 70px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fm-q-public::before {
  content: counter(fq); position: absolute; left: 18px; top: 19px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--fm-soft); color: var(--fm-color, #22c17e); font-size: 13px; font-weight: 800;
}
.fm-q-public:focus-within { border-color: var(--fm-ring); box-shadow: 0 0 0 4px var(--fm-soft); }
.fm-q-public.is-error { border-color: rgba(239, 51, 88, .55); background: var(--red-soft); }
.fm-q-public.is-error::before { background: rgba(239, 51, 88, .18); color: var(--red-2); }
.fm-q-public__label { font-size: 16px; font-weight: 650; line-height: 1.4; }
.fm-q-public__help { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.fm-q-public__error { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red-2); }

.fm-public-form .input, .fm-public-form .textarea, .fm-public-form .select {
  min-height: 46px; padding: 11px 14px; font-size: 15px; border-radius: 12px; background: var(--bg);
}
.fm-public-form .textarea { min-height: 118px; }
.fm-public-form .input:focus, .fm-public-form .textarea:focus, .fm-public-form .select:focus {
  border-color: var(--fm-color, #22c17e); box-shadow: 0 0 0 4px var(--fm-soft);
}
.fm-public-form .select { padding-right: 38px; }

.fm-options { display: grid; gap: 8px; }
.fm-option {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 15px;
  transition: border-color .2s, background .2s, transform .15s;
}
.fm-option:hover { border-color: var(--fm-ring); transform: translateX(2px); }
.fm-option:has(input:checked) { border-color: var(--fm-color, #22c17e); background: var(--fm-soft); }
.fm-option input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; display: grid; place-items: center;
  border: 2px solid var(--line-2); border-radius: 999px; background: var(--bg-2); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.fm-option input[type="checkbox"] { border-radius: 6px; }
.fm-option input:checked { background: var(--fm-color, #22c17e); border-color: var(--fm-color, #22c17e); }
.fm-option input:focus-visible { outline: 2px solid var(--fm-color, #22c17e); outline-offset: 2px; }
.fm-option input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #03140c; }
.fm-option input[type="checkbox"]:checked::after {
  content: ""; width: 5px; height: 10px; border: solid #03140c; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

.fm-nps__item span { height: 42px; border-radius: 10px; }
.fm-nps__item:has(input:checked) span { border-color: var(--fm-color, #22c17e); background: var(--fm-soft); color: var(--text); }
.fm-scale__labels { font-size: 12.5px; }
.fm-range { accent-color: var(--fm-color, #22c17e); }
.fm-range__out { background: var(--fm-soft); color: var(--text); }

.fm-ranking__item { border-radius: 12px; padding: 11px 12px; }
.fm-ranking__item::before { background: var(--fm-soft); color: var(--fm-color, #22c17e); }
.fm-ranking__item.is-over { border-color: var(--fm-color, #22c17e); box-shadow: 0 0 0 3px var(--fm-soft); }

.fm-matrix { border-radius: 12px; }
.fm-matrix thead th { background: var(--panel-2); }
.fm-matrix__cell input { accent-color: var(--fm-color, #22c17e); }

.fm-upload__drop { border-radius: 14px; padding: 26px 18px; }
.fm-upload__drop:hover, .fm-upload__drop.is-over { border-color: var(--fm-color, #22c17e); background: var(--fm-soft); }
.fm-upload__drop .tile { background: var(--fm-soft); color: var(--fm-color, #22c17e); }

.fm-consent { border-radius: 12px; background: var(--bg); padding: 14px 16px; }
.fm-consent:has(input:checked) { border-color: var(--fm-color, #22c17e); background: var(--fm-soft); }
.fm-consent input { accent-color: var(--fm-color, #22c17e); }
.fm-signature__input { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; }

.fm-livecheck__status[data-kind="done"] { color: var(--green-2); }
.fm-livecheck__status[data-kind="error"] { color: var(--red-2); }

.fm-done { padding: 40px 12px; gap: 12px; }
.fm-done .tile { width: 72px; height: 72px; border-radius: 24px; background: var(--fm-soft); color: var(--fm-color, #22c17e); }
.fm-done .tile .ico { width: 30px; height: 30px; }
.fm-done h2 { font-size: 24px; letter-spacing: -.02em; }
.fp-reason { width: 100%; max-width: 480px; margin: 8px 0 0; display: grid; gap: 8px; text-align: left; }
.fp-reason__row { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); border: 1px solid rgba(239, 51, 88, .28); }
.fp-reason dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fp-reason dd { margin: 0; font-size: 15px; line-height: 1.4; }
.fp-reason dd small { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.fm-submitbar {
  margin: 30px -36px -36px; padding: 20px 36px 24px; display: grid; justify-items: stretch; gap: 10px;
  border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--panel-2) 60%);
}
.fm-submitbar .btn-primary {
  background: var(--fm-color, #22c17e); border-color: var(--fm-color, #22c17e); color: #03140c;
  box-shadow: 0 10px 30px -10px var(--fm-color, #22c17e);
}
.fm-submitbar p { text-align: center; }
.fm-verified { border-radius: 12px; }

.fm-card {
  padding: 22px 22px 18px 26px; border-radius: 18px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--fm-color, #22c17e) 12%, transparent), transparent 46%), var(--panel);
}
.fm-card::before { width: 5px; }
.fm-card h2 { font-size: 19px; letter-spacing: -.02em; margin: 12px 0 6px; }
.fm-card__stats { font-size: 13px; }

/* ==========================================================================
   Formulieren design v3: dashboard (bouwer, antwoorden, pipeline, delen,
   analyse, instellingen, sjablonen). Gebruikt dezelfde taal als het openbare
   formulier.
   ========================================================================== */
.fm-hero {
  padding: 28px 28px 0; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(900px 260px at 0% 0%, color-mix(in srgb, var(--fm-color, #22c17e) 20%, transparent), transparent 70%), var(--panel);
  box-shadow: 0 24px 60px -44px rgba(0, 0, 0, .75);
}
.fm-hero::before { height: 4px; }
.fm-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.fm-hero .muted.small { font-size: 13.5px; }
.fm-tabs { gap: 2px; margin: 22px -28px 0; padding: 0 22px; background: rgba(255, 255, 255, .015); }
.fm-tab { position: relative; padding: 15px 12px; border-bottom: 2px solid transparent; }
.fm-tab.is-active { color: var(--text); border-bottom-color: transparent; }
.fm-tab.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--fm-color, var(--green));
}

.fm-list { counter-reset: fq; gap: 14px; }
.fm-q {
  border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, .8);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fm-q:focus-within {
  border-color: color-mix(in srgb, var(--fm-color, #22c17e) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fm-color, #22c17e) 14%, transparent);
}
.fm-q__head { margin-bottom: 14px; }
.fm-q__num { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .08em; }
.fm-q__num::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--fm-color, var(--green)); }
.fm-q--section {
  background: linear-gradient(90deg, color-mix(in srgb, var(--fm-color, #22c17e) 14%, transparent), var(--panel) 65%);
  border-left: 4px solid var(--fm-color, var(--green));
}
.fm-q__tools .icon-btn { border-radius: 9px; }
.fm-q__drag { width: 32px; height: 32px; background: var(--panel-2); border-radius: 9px; }
.fm-q__grid { gap: 14px; }
.fm-q .input, .fm-q .select, .fm-q .textarea { border-radius: 11px; }
.fm-q__advanced { border-top: 1px dashed var(--line-2); }
.fm-q__advanced > summary { font-size: 12.5px; }
.fm-add__grid { gap: 8px; }
.fm-add__grid .btn { border-radius: 999px; height: 34px; padding: 0 14px; }
.fm-builder__side .card { border-radius: 16px; }
.fm-block { border-radius: 12px; }
.fm-savebar {
  bottom: 14px; margin-top: 6px; border-radius: 18px; padding: 14px 18px;
  background: color-mix(in srgb, var(--panel-2) 88%, transparent); backdrop-filter: blur(12px);
}

.fm-responses { gap: 12px; }
.fm-resp {
  border-radius: 16px; padding: 16px 18px 16px 20px; border-left: 4px solid var(--line-2);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fm-resp:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .85); }
.fm-resp:has(.badge--green) { border-left-color: var(--green); }
.fm-resp:has(.badge--red) { border-left-color: var(--red); }
.fm-resp:has(.badge--orange) { border-left-color: var(--orange); }
.fm-resp:has(.badge--blue) { border-left-color: var(--blue); }
.fm-resp__who strong { font-size: 15px; }
.fm-resp__preview { background: var(--bg); border-radius: 12px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s var(--ease), opacity .2s, padding .2s, margin .2s; padding: 0 12px; margin: 0 -12px; }
.fm-resp:hover .fm-resp__preview, .fm-resp:focus-within .fm-resp__preview { max-height: 140px; opacity: 1; padding: 10px 12px; margin: 12px -12px 0; }

.fm-resp__body { margin-top: 14px; }
.fm-resp-search .input, .fm-resp-search .select { border-radius: 12px; height: 42px; }
.fm-bulk__bar { border-radius: 14px; }
.fm-pill { height: 36px; padding: 0 14px; }
.fm-pill.is-active { background: color-mix(in srgb, var(--fm-color, #22c17e) 14%, transparent); }

.fm-response-head {
  border-radius: 20px; padding: 24px;
  background: radial-gradient(900px 240px at 0% 0%, color-mix(in srgb, var(--fm-color, #22c17e) 18%, transparent), transparent 70%), var(--panel);
}
.fm-response-head__title h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fm-response-answer { padding: 16px 0; }
.fm-response-answer dd { font-size: 15px; }
.fm-response-side .card, .fm-response-main .card { border-radius: 18px; }

.fm-kanban__col { border-radius: 16px; border-top: 3px solid var(--line-2); }
.fm-kanban__col[data-stage="new"] { border-top-color: var(--blue); }
.fm-kanban__col[data-stage="screening"] { border-top-color: var(--orange); }
.fm-kanban__col[data-stage="interview"] { border-top-color: #9565ff; }
.fm-kanban__col[data-stage="decision"] { border-top-color: var(--green); }
.fm-kanban__col[data-stage="waitlist"] { border-top-color: var(--faint); }
.fm-kanban-card { border-radius: 14px; box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .8); }
.fm-kanban-card:hover { transform: translateY(-2px); }

.fm-copybox .input { height: 44px; border-radius: 12px; background: var(--bg); }
.fm-link { border-radius: 16px; }
.fm-share-side .card, .fm-share-main .card { border-radius: 18px; }

.fm-question-stat { border-radius: 14px; }
.fm-settings .fm-section { border-radius: 18px; }
.fm-settings .card__head h2 { font-size: 17px; }
.fm-check { border-radius: 10px; padding: 7px 12px; }

.fm-template {
  border-radius: 18px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--fm-color, #22c17e) 8%, transparent), transparent 50%), var(--panel);
}
.fm-template:hover { border-color: var(--line-2); }
.fm-block__questions li { font-size: 12.5px; }

/* ==========================================================================
   Berichten en embeds (Discord Components V2 editor)
   ========================================================================== */
.dm-vars { margin-bottom: 18px; }
.dm-vars code, .dm-card code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--panel-3); }
.dm-group { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 2px 10px; }
.dm-card { margin-bottom: 14px; }
.dm-card__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.dm-form { display: grid; gap: 12px; min-width: 0; }
.dm-form .field { margin: 0; }
.dm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-form__actions { display: flex; justify-content: flex-end; }
.dm-enabled { margin: 0; }
.dm-card__foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 12px 18px; }
.dm-reset { margin: 0; }
.dm-preview { position: sticky; top: 84px; display: grid; gap: 8px; min-width: 0; }
.dm-preview__bar { height: 4px; border-radius: 4px 4px 0 0; background: var(--green); margin-bottom: -8px; }
.dm-preview__card {
  display: grid; gap: 8px; padding: 14px 16px 14px 18px; border-radius: 0 10px 10px 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 0;
}
.dm-preview__header { width: 100%; height: auto; border-radius: 8px; display: block; }
.dm-preview__header[hidden] { display: none; }
.dm-preview__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.dm-preview__text { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; color: var(--text); }
.dm-preview__fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.dm-preview__fields:empty { display: none; }
.dm-preview__footer { font-size: 12px; color: var(--muted); }
.dm-preview__footer:empty { display: none; }

/* ==========================================================================
   Design features: openbaar formulier, bouwer, antwoorden, analyse, toegankelijkheid
   ========================================================================== */
.is-step-off { display: none !important; }
.fm-public__bg { inset: -24px; transition: transform .25s ease-out; }
.fm-public .fm-sec {
  margin: 30px 0 18px; padding: 14px 16px; border-top: 0; border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--fm-color, #22c17e); background: var(--fm-soft);
}
.fm-public .fm-sec h2 { font-size: 22px; letter-spacing: -.02em; }
.fp-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.fp-ring { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; }
.fp-ring__bg, .fp-ring__fg { fill: none; stroke-width: 4; }
.fp-ring__bg { stroke: var(--panel-3); }
.fp-ring__fg { stroke: var(--fm-color, #22c17e); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset .4s var(--ease); }
.fp-contrast {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
}
.fp-contrast[aria-pressed="true"] { color: var(--text); border-color: var(--fm-color, #22c17e); background: var(--fm-soft); }
.fp-contrast:focus-visible { outline: 2px solid var(--fm-color, #22c17e); outline-offset: 2px; }
.fm-public.fm-contrast { --muted: #d4d8e0; --line: #6b7280; --line-2: #9ca3af; --faint: #c7cbd3; }
.fm-public.fm-contrast .fm-q-public { border-width: 2px; }
.fm-public.fm-contrast .fm-q-public__help, .fm-public.fm-contrast .fm-public__desc { color: #e5e7eb; }
.fm-public.fm-contrast .fm-option { border-width: 2px; }
.fm-q-public.is-shake { animation: fmShake .42s var(--ease); }
@keyframes fmShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.fp-next { margin-top: 18px; text-align: left; width: 100%; max-width: 420px; }
.fm-upload__thumb { width: 100%; max-height: 180px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-top: 4px; }
.fm-steps-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.fm-steps-nav__count { font-size: 13px; font-weight: 700; color: var(--muted); }
.fm-nps__item[style*="--hue"] span { --c: hsl(var(--hue), 62%, 48%); border-color: color-mix(in srgb, var(--c) 45%, var(--line-2)); }
.fm-nps__item[style*="--hue"]:hover span { border-color: var(--c); }
.fm-nps__item[style*="--hue"]:has(input:checked) span { background: var(--c); border-color: var(--c); color: #03140c; }

@media (max-width: 640px) {
  .fm-submitbar { position: sticky; bottom: 0; z-index: 5; }
}

.fm-q__head { display: flex; align-items: center; gap: 10px; }
.fm-q__peek { display: none; }
.fm-q.is-collapsed .fm-q__peek { display: block; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-q.is-collapsed > :not(.fm-q__head) { display: none; }
.fm-q.is-collapsed .fm-q__head { margin-bottom: 0; }
.fm-q.is-collapsed .fm-q__tools { margin-left: auto; }
.fm-q[data-type="choice"] .fm-q__num::before, .fm-q[data-type="multi"] .fm-q__num::before, .fm-q[data-type="dropdown"] .fm-q__num::before, .fm-q[data-type="ranking"] .fm-q__num::before { background: var(--blue); }
.fm-q[data-type="scale"] .fm-q__num::before, .fm-q[data-type="nps"] .fm-q__num::before, .fm-q[data-type="matrix"] .fm-q__num::before { background: var(--orange); }
.fm-q[data-type="file"] .fm-q__num::before, .fm-q[data-type="signature"] .fm-q__num::before, .fm-q[data-type="consent"] .fm-q__num::before { background: #9565ff; }
.fm-q[data-type="roblox"] .fm-q__num::before, .fm-q[data-type="discord"] .fm-q__num::before { background: #22c17e; }
.fm-q__drag { opacity: .4; transition: opacity .2s; }
.fm-q:hover .fm-q__drag, .fm-q__drag:focus-visible { opacity: 1; }
.fm-live { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.fm-add__grid [data-add][hidden] { display: none; }
#fm-autosave-status.is-saved { color: var(--green-2); transition: color .3s; }

.fm-versions { position: relative; padding-left: 26px; }
.fm-versions::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.fm-version { position: relative; }
.fm-version::before {
  content: ""; position: absolute; left: -22px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fm-color, var(--green)); box-shadow: 0 0 0 4px var(--bg);
}

.fm-bulk.has-selection .fm-bulk__bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40;
  width: min(calc(100% - 32px), 980px); background: var(--panel-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}

.fm-kanban__wait { font-size: 11.5px; color: var(--muted); margin-left: 8px; font-weight: 600; }
.fm-kanban__head { gap: 6px; flex-wrap: wrap; }

.fm-radar { width: 120px; height: 120px; margin: 4px 0 6px; }
.fm-radar__grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.fm-radar__value { fill: color-mix(in srgb, var(--green) 28%, transparent); stroke: var(--green); stroke-width: 2; }

.fm-heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; font-size: 11px; color: var(--muted); overflow-x: auto; }
.fm-heat__hour { text-align: center; }
.fm-heat__day { font-weight: 700; }
.fm-heat__cell { display: block; min-height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--green) calc(var(--a, 0) * 100%), var(--panel-3)); }

.fm-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.fm-crumbs a { color: var(--muted); text-decoration: none; }
.fm-crumbs a:hover { color: var(--text); }
.fm-kbd-hint { margin-top: 6px; }
@media (max-width: 760px) { .fm-compare { grid-template-columns: 1fr; } }

/* Focus ringen */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px;
}

.status-incident { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 6px; margin-top: 10px; }
.status-incident header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-incident p { margin: 0; }
.status-incident__updates { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.status-incident__updates li { font-size: 13px; color: var(--muted); }
.status-uptime { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; }
.status-uptime__day { display: block; height: 22px; border-radius: 3px; background: var(--panel-3); }
.status-uptime__day--ok { background: var(--green); }
.status-uptime__day--bad { background: var(--red); }
.status-uptime__day--none { background: var(--panel-3); opacity: .4; }
.status-latency { width: 100%; height: 60px; display: block; }

/* ==========================================================================
   Resterende design-features: handtekening, tegels, gezichten, thema, lettertype, banner
   ========================================================================== */
.fm-sig-canvas { width: 100%; height: 160px; border: 1px dashed var(--line-2); border-radius: 12px; background: #f7f7f5; cursor: crosshair; touch-action: none; }
.fm-sig-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fm-sig-tools .input { flex: 1; min-width: 180px; }
.fm-option--tile { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 86px; }
.fm-option__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fm-soft); color: var(--fm-color, #22c17e); }
.fm-option__icon .ico { width: 18px; height: 18px; }
.fp-face { width: 26px; height: 26px; display: block; }
.fm-public.fm-font-serif .fm-public-form, .fm-public.fm-font-serif .fm-public__desc { font-family: Georgia, 'Times New Roman', serif; }
.fm-public.fm-font-mono .fm-public-form, .fm-public.fm-font-mono .fm-public__desc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fm-public.fm-font-rounded .fm-public-form, .fm-public.fm-font-rounded .fm-public__desc { font-family: 'Comic Sans MS', 'Trebuchet MS', cursive; }
.fm-public.fm-light { --bg: #f4f5f7; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #eef1f5; --panel-3: #e2e6ec; --line: #d6dae2; --line-2: #bfc5d0; --text: #1a1d24; --muted: #5a6270; --faint: #9aa1ad; }
.fm-public.fm-light .fm-public__card { box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .25); }
.fp-banner { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px 18px 0 0; display: block; margin-bottom: -2px; }
.fp-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }


/* ==========================================================================
   Documentatie
   ========================================================================== */
.docs-search { display: flex; gap: 10px; margin: 18px 0 28px; }
.docs-search .input { flex: 1; }
.docs-group { margin-bottom: 32px; }
.docs-group__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs-card { transition: transform .2s, border-color .2s; text-decoration: none; color: inherit; }
.docs-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.docs-card h3 { font-size: 16px; margin-bottom: 6px; }
.docs-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.docs-crumbs a { color: var(--muted); text-decoration: none; }
.docs-crumbs a:hover { color: var(--text); }
.docs-article { margin-top: 10px; }
.docs-body h2 { font-size: 20px; margin: 22px 0 8px; letter-spacing: -.01em; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 16px; margin: 16px 0 6px; }
.docs-body p, .docs-body li { color: var(--text); line-height: 1.65; }
.docs-body ul, .docs-body ol { padding-left: 22px; display: grid; gap: 6px; }
.docs-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--green-2); }
.docs-body a { color: var(--green-2); text-decoration: none; }
.docs-body a:hover { text-decoration: underline; }
.docs-side { margin-top: 24px; }
.docs-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.docs-side__list a { font-size: 14px; }
.docs-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 960px) {
  .dm-card__grid { grid-template-columns: 1fr; }
  .dm-preview { position: static; }
}
@media (max-width: 640px) {
  .dm-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fm-public { padding: 16px 0 64px; }
  .fm-public__head { padding: 24px 20px 16px; }
  .fm-public__body { padding: 4px 20px 24px; }
  .fm-q-public { padding: 18px 16px 16px; }
  .fm-q-public::before { position: static; justify-self: start; margin-bottom: 2px; }
  .fm-submitbar { margin: 24px -20px -24px; padding: 18px 20px 22px; }
  .fm-option { padding: 12px; }
}

