:root {
  color-scheme: light;

  /* Canvas en oppervlakken */
  --background: #f4efe9;
  --surface: #ffffff;
  --surface-low: #faf7f4;
  --surface-warm: #f2ece4;

  /* Donkere navigatie */
  --shell: #2e2b41;
  --shell-hover: #3b3754;
  --shell-ink: #d7d3e4;
  --shell-ink-soft: #9a94b3;

  /* Tekst */
  --ink: #211f2e;
  --muted: #6c6880;
  --subtle: #928da3;

  /* Lijnen */
  --line: #e3dcd3;
  --line-soft: #ece7e1;

  /* Merkkleuren */
  --primary: #544b8a;
  --primary-strong: #453c77;
  --primary-tint: #eae6f7;
  --primary-on: #ffffff;
  --accent: #e1503a;
  --accent-strong: #c9422e;
  --accent-tint: #fde8e3;

  /* Status */
  --success: #0e8a5f;
  --success-bg: #d9f5e7;
  --warning: #9a6a12;
  --warning-bg: #fdf0d5;
  --danger: #c0392b;
  --danger-bg: #fbe3df;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(33, 31, 46, 0.05);
  --shadow-md: 0 12px 30px rgba(33, 31, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(33, 31, 46, 0.16);

  font-family: Inter, 'Segoe UI', system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

body.auth-body {
  align-items: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(84, 75, 138, 0.10), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(225, 80, 58, 0.09), transparent 32%),
    var(--background);
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 34px;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  font-weight: 700;
}

p {
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--primary);
}

/* ---------------------------------------------------------------- Layout */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--shell);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  height: 100vh;
  padding-bottom: 20px;
  position: sticky;
  top: 0;
  width: 244px;
}

.sidebar-brand {
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  margin: 16px;
  padding: 16px 14px;
}

.sidebar-brand img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 148px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding: 4px 12px;
}

.sidebar-section {
  color: var(--shell-ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
  padding: 0 12px;
  text-transform: uppercase;
}

.sidebar-link {
  align-items: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--shell-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

.sidebar-link svg {
  flex-shrink: 0;
  height: 19px;
  opacity: 0.85;
  width: 19px;
}

.sidebar-link:hover {
  background: var(--shell-hover);
  color: #ffffff;
}

.sidebar-link.active {
  background: var(--shell-hover);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-link.active svg {
  opacity: 1;
}

.app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topbar {
  align-items: center;
  background: var(--shell);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 32px;
}

.topbar-product {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.topbar-context {
  color: var(--shell-ink-soft);
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.topbar-right {
  align-items: center;
  display: flex;
  gap: 14px;
}

.user-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  padding: 6px 16px 6px 6px;
}

.user-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-chip-text strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.user-chip-text small {
  color: var(--shell-ink-soft);
  font-size: 11.5px;
}

.avatar {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.logout-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  color: var(--shell-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  transition: background 0.15s ease, color 0.15s ease;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.page {
  flex: 1;
  margin: 0 auto;
  max-width: 1320px;
  padding: 30px 32px 56px;
  width: 100%;
}

.auth-page {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px;
  width: 100%;
}

/* ------------------------------------------------------------ Typografie */

.eyebrow {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.09em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--accent);
  border-radius: 50%;
  content: '';
  height: 6px;
  width: 6px;
}

.hint {
  color: var(--subtle);
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.back-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  margin-bottom: 18px;
  text-decoration: none;
}

.back-link::before {
  content: '\2190';
}

.back-link:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------- Knoppen */

.primary,
.secondary,
.danger {
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 11px 20px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--primary-on);
}

.primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.danger {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.danger:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.as-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.full {
  width: 100%;
}

.compact {
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-height: 36px;
  padding: 7px 14px;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 8px 4px;
  text-decoration: underline;
  white-space: nowrap;
}

.link-button:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------- Kaarten */

.card-surface {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- Dashboard */

.dashboard-hero {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.dashboard-hero p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 68ch;
}

.hero-action {
  flex-shrink: 0;
  gap: 8px;
}

.tiles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 22px;
}

.tile-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tile-logo {
  border-radius: var(--radius);
  height: 44px;
  object-fit: contain;
  width: auto;
  max-width: 130px;
}

.tile-body {
  display: grid;
  gap: 10px;
}

.tile-body h2 {
  font-size: 19px;
}

.url {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.metadata {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}

.metadata span {
  color: var(--subtle);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metadata strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tile-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 56px 32px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  max-width: 52ch;
}

.empty-icon {
  align-items: center;
  background: var(--primary-tint);
  border-radius: var(--radius-md);
  color: var(--primary);
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  width: 52px;
}

/* ----------------------------------------------------------- Statuspills */

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  white-space: nowrap;
}

.status-pill.active {
  background: var(--success-bg);
  color: var(--success);
}

.status-pill.pending {
  background: var(--primary-tint);
  color: var(--primary);
}

.status-pill.blocked {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ----------------------------------------------------------------- Flash */

.flash {
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  background: var(--primary-tint);
  color: var(--primary-strong);
  font-weight: 600;
  margin-bottom: 22px;
  padding: 14px 18px;
}

.flash.success {
  background: var(--success-bg);
  border-left-color: var(--success);
  color: var(--success);
}

.flash.error {
  background: var(--accent-tint);
  border-left-color: var(--accent);
  color: var(--accent-strong);
}

/* ----------------------------------------------------------------- Beheer */

.admin-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-card {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.admin-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.admin-card h2 {
  color: var(--ink);
  font-size: 17px;
}

.admin-card p {
  color: var(--muted);
  font-size: 14px;
}

.admin-kpi {
  color: var(--primary);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.admin-grid > :first-child {
  background: var(--primary);
  border-color: var(--primary);
}

.admin-grid > :first-child h2,
.admin-grid > :first-child .admin-kpi {
  color: #ffffff;
}

.admin-grid > :first-child p {
  color: rgba(255, 255, 255, 0.78);
}

a.admin-card:first-child:hover {
  background: var(--primary-strong);
}

.admin-projects {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.admin-project-tile {
  color: inherit;
  min-height: 0;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-project-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------- Tabellen */

.admin-table {
  margin-top: 24px;
  padding: 24px;
}

.admin-table > h2 {
  margin-bottom: 6px;
}

.admin-table > .hint {
  margin-bottom: 16px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 100%;
  width: 100%;
}

thead th {
  background: var(--surface-warm);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

thead th:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

thead th:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

tbody td {
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  padding: 13px 14px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--surface-low);
}

.table-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.table-filter input[type='search'] {
  flex: 1 1 260px;
  min-width: 0;
}

.table-filter select {
  flex: 0 0 auto;
}

.table-filter-count {
  color: var(--subtle);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.table-empty {
  color: var(--subtle);
  padding: 22px 0;
  text-align: center;
}

p.table-empty.card-surface {
  padding: 40px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

.plain-list li:last-child {
  border-bottom: none;
}

/* -------------------------------------------------------------- Formulier */

.form-page {
  margin: 0 auto;
  max-width: 1000px;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 72ch;
}

.form {
  display: grid;
  gap: 18px;
}

.project-form {
  grid-template-columns: 1fr 1fr;
  padding: 26px;
}

.project-form > label,
.project-form > .form-actions,
.project-form > .lookup-result,
.project-form > .hint {
  grid-column: 1 / -1;
}

.project-form > label.half {
  grid-column: auto;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 46px;
  padding: 11px 14px;
  width: 100%;
}

select {
  width: auto;
}

textarea {
  font-family: Consolas, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
}

input::placeholder {
  color: #b3aec0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(84, 75, 138, 0.14);
  outline: 0;
}

.heading-row {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.heading-row .form-heading {
  flex: 1;
}

.heading-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.switch-label {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.switch-label input {
  flex-shrink: 0;
  height: 20px;
  margin-top: 2px;
  min-height: 20px;
  width: 20px;
}

.switch-label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.current-image {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  padding: 14px 16px;
}

.current-image img {
  border-radius: var(--radius-sm);
  height: 48px;
  max-width: 140px;
  object-fit: contain;
}

.bulk-import {
  margin-top: 24px;
  padding: 0;
}

.bulk-import > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  padding: 20px 24px;
}

.bulk-import > summary::-webkit-details-marker {
  display: none;
}

.bulk-import > summary:hover {
  background: var(--surface-low);
}

.bulk-import > summary::before {
  align-items: center;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  color: var(--primary);
  content: '+';
  display: inline-flex;
  font-size: 18px;
  height: 26px;
  justify-content: center;
  margin-right: 12px;
  vertical-align: middle;
  width: 26px;
}

.bulk-import[open] > summary::before {
  content: '\2212';
}

.bulk-import-body {
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
}

.or-divider {
  align-items: center;
  color: var(--subtle);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 12px;
  margin: 0;
}

.or-divider::before,
.or-divider::after {
  background: var(--line-soft);
  content: '';
  flex: 1;
  height: 1px;
}

.code-sample {
  background: var(--surface-warm);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  margin: 0;
  overflow-x: auto;
  padding: 12px 14px;
}

input[readonly] {
  background: var(--surface-low);
  color: var(--muted);
}

input[type='file'] {
  align-items: center;
  background: var(--surface-low);
  display: flex;
  padding: 9px 12px;
}

input.prefilled {
  background: var(--surface-low);
  color: var(--muted);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-left: 42px;
}

.field-icon {
  align-items: center;
  color: var(--subtle);
  display: flex;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 40px;
}

.input-with-toggle {
  align-items: center;
  display: flex;
  gap: 8px;
}

.input-with-toggle input {
  flex: 1 1 auto;
  min-width: 0;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.inline-form {
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  padding-top: 22px;
}

.inline-form > label {
  grid-column: auto;
}

.inline-form > .form-actions,
.inline-form > .hint {
  grid-column: 1 / -1;
}

.lookup-result {
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 11px 14px;
}

.lookup-result[data-state='found'] {
  background: var(--success-bg);
  color: var(--success);
}

.lookup-result[data-state='new'] {
  background: var(--primary-tint);
  color: var(--primary);
}

.lookup-result[data-state='warning'] {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ------------------------------------------------------- Activatielink */

.invite-link {
  border-left: 4px solid var(--accent);
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 22px 24px;
}

.invite-link h2 {
  font-size: 17px;
}

.invite-link p {
  color: var(--muted);
  font-size: 14px;
}

.invite-link-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.invite-link-value {
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: 1 1 auto;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  padding: 11px 14px;
}

/* ------------------------------------------------------------ Inloggen */

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 20px;
  max-width: 440px;
  padding: 40px;
  width: 100%;
}

.auth-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.auth-logo {
  height: auto;
  margin-bottom: 10px;
  width: 168px;
}

.auth-brand h1 {
  font-size: 26px;
}

.auth-brand p {
  color: var(--muted);
  font-size: 14.5px;
}

.trust-note {
  align-items: flex-start;
  background: var(--surface-low);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 13.5px;
  gap: 10px;
  padding: 14px 16px;
}

.trust-note span {
  color: var(--accent);
  font-weight: 700;
}

/* -------------------------------------------------------------- Launch */

.launch-page {
  display: flex;
  justify-content: center;
}

.launch-card {
  max-width: 660px;
  overflow: hidden;
  width: 100%;
}

.launch-card-header {
  align-items: center;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 26px;
}

.brand {
  align-items: center;
  display: flex;
  text-decoration: none;
}

.brand-logo {
  height: auto;
  width: 150px;
}

.brand-logo.small {
  width: 118px;
}

.launch-status {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.launch-card-body {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.project-focus {
  display: grid;
  gap: 6px;
}

.project-focus h1 {
  font-size: 28px;
}

.project-focus p {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.launch-copy {
  color: var(--muted);
}

.warning-note {
  align-items: flex-start;
  background: var(--warning-bg);
  border-radius: var(--radius);
  color: var(--warning);
  display: flex;
  font-size: 14px;
  gap: 12px;
  padding: 15px 18px;
}

.warning-note span {
  font-weight: 800;
}

.warning-note p {
  color: inherit;
}

.launch-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-flow {
  display: grid;
  gap: 14px;
}

.demo-step {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.demo-step > div strong {
  display: block;
  font-size: 15px;
}

.demo-step > div p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.demo-step code {
  background: var(--surface-warm);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  padding: 1px 6px;
}

.demo-dot {
  align-items: center;
  background: var(--surface-warm);
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.demo-step.done .demo-dot {
  background: var(--success-bg);
  color: var(--success);
}

.demo-note span {
  color: var(--primary);
}

/* ----------------------------------------------------------- Niet gevonden */

.not-found {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 40px 0;
  text-align: center;
}

.not-found-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 34px 48px;
}

.not-found-icon {
  color: var(--primary);
  font-size: 30px;
}

.not-found-card strong {
  font-size: 34px;
  font-weight: 700;
}

.accent-line {
  background: var(--accent);
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 56px;
}

.not-found p {
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --------------------------------------------------------------- Footer */

.site-footer {
  align-items: center;
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 22px 32px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ------------------------------------------------------- Handleiding/dialoog */

.guide-modal[hidden] {
  display: none;
}

.guide-modal {
  inset: 0;
  position: fixed;
  z-index: 40;
}

.guide-backdrop {
  background: rgba(33, 31, 46, 0.42);
  inset: 0;
  position: absolute;
}

/* De rondleiding verduistert de pagina al met de schaduw om het
   uitgelichte element. Een tweede laag hier zou dat element mee
   verduisteren, want het venster ligt erboven. Blijft klikbaar om te
   sluiten. Het bevestigingsvenster houdt zijn eigen achtergrond. */
[data-guide-modal] .guide-backdrop {
  background: transparent;
}

.guide-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 12px;
  left: 50%;
  max-width: 440px;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 40px));
}

.guide-panel p {
  color: var(--muted);
}

/* De rondleiding zet het venster aan de tegenoverliggende kant van het
   uitgelichte element; het bevestigingsvenster blijft gecentreerd. */
.guide-panel.at-bottom {
  bottom: 28px;
  top: auto;
  transform: translateX(-50%);
}

.guide-panel.at-top {
  bottom: auto;
  top: 28px;
  transform: translateX(-50%);
}

.guide-close {
  background: none;
  border: none;
  color: var(--subtle);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  position: absolute;
  right: 14px;
  top: 14px;
}

.guide-close:hover {
  color: var(--ink);
}

.guide-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.guide-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.guide-trigger {
  cursor: pointer;
}

.guide-active .guide-highlight {
  box-shadow:
    0 0 0 4px rgba(225, 80, 58, 0.95),
    0 0 0 9999px rgba(33, 31, 46, 0.62),
    0 20px 45px rgba(33, 31, 46, 0.28);
  isolation: isolate;
  position: relative;
  z-index: 35;
}

/* Alleen onderdelen zonder eigen achtergrond krijgen er een, anders zou
   de verduistering erdoorheen schijnen. Knoppen en gevulde kaarten
   houden hun eigen kleur; die overschrijven zou hun tekst laten
   wegvallen. */
.guide-active .guide-highlight[data-guide-fill] {
  background-color: var(--surface);
}

.guide-active .guide-highlight input,
.guide-active .guide-highlight button,
.guide-active .guide-highlight a {
  position: relative;
  z-index: 36;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1000px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    height: auto;
    padding: 12px 16px;
    position: static;
    width: 100%;
  }

  .sidebar-brand {
    margin: 0 12px 0 0;
    padding: 8px 12px;
  }

  .sidebar-brand img {
    width: 108px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    padding: 0;
  }

  .sidebar-link {
    width: auto;
  }

  .sidebar-section {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar,
  .dashboard-hero,
  .launch-card-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 24px 18px 44px;
  }

  .project-form,
  .inline-form,
  .admin-grid,
  .metadata {
    grid-template-columns: 1fr;
  }

  .project-form > label.half,
  .inline-form > label {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .auth-card,
  .project-form,
  .launch-card-body,
  .admin-table {
    padding: 22px;
  }

  .topbar {
    padding: 14px 18px;
  }
}
