/* =============================================================================
   Flowskraft Portal — stylesheet
   Brand: Ink (#14110B) + Bone (#F4EFE7) + Saffron (#E26F2C) accent.
   - No drop shadows on UI surfaces; depth via borders + 3px saffron accent stripe.
   - Card radius 8px, button/inline radius 4-6px (deliberately tight).
   - One type family: Geist (production) — TT Norms Pro is the licensed target.
   ========================================================================== */

/* ── ROOT TOKENS ─────────────────────────────────────────── */
:root {
  /* Flowskraft brand
     Legacy --hc-* token names are kept as stable variable identifiers so the
     entire stylesheet keeps working without renames. Values map to Flowskraft. */
  --hc-navy:       #14110B;   /* Ink — primary on light */
  --hc-navy-deep:  #0A0805;   /* Ink-950 */
  --hc-navy-void:  #0A0805;
  --hc-lime:       #E26F2C;   /* Saffron — single accent */
  --hc-lime-deep:  #C75A1F;   /* Saffron-600 */
  --hc-ink:        #14110B;
  --hc-muted:      #5A5142;   /* Ink-500 (warm anthracite) */
  --hc-paper:      #F4EFE7;   /* Bone — primary canvas */
  --hc-beton:      #E8E1D3;   /* Ink-100, alt surface */
  --hc-line:       #D2C8B5;   /* Ink-200 */
  --hc-line-soft:  #E8E1D3;
  --hc-white:      #FFFFFF;

  /* Company dots — single-tenant baseline (multi-tenant ready) */
  --hc-co-holcon:  #14110B;
  --hc-co-bisoton: #14110B;
  --hc-co-durison: #14110B;

  /* Status pills */
  --hc-status-done-bg:    #ECF6EE;
  --hc-status-done-fg:    #1F6A2C;
  --hc-status-busy-bg:    #FDF5E1;
  --hc-status-busy-fg:    #8A6309;
  --hc-status-busy-dot:   #C99014;
  --hc-status-act-bg:     #FBF1E7;
  --hc-status-act-fg:     #A2461A;
  --hc-status-draft-bg:   #E8E1D3;
  --hc-status-draft-fg:   #3F392E;
  --hc-status-draft-dot:  #837A65;

  /* Backwards-compatible aliases (legacy CSS still references these names) */
  --navy:        var(--hc-navy);
  --navy-deep:   var(--hc-navy-deep);
  --navy-void:   var(--hc-navy-void);
  --lime:        var(--hc-lime);
  --ink:         var(--hc-ink);
  --muted:       var(--hc-muted);
  --surface:     var(--hc-paper);
  --surface-2:   var(--hc-beton);
  --line:        var(--hc-line);
  --panel:       rgba(255, 255, 255, 0.94);
  --panel-strong:rgba(255, 255, 255, 0.98);
  --danger:      #D63031;   /* Power Red */
  --success:     #2F8F3F;
  --shadow:      none;

  /* Typography — single family (Geist), with TT Norms Pro as licensed target */
  --heading-font: "TT Norms Pro", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --body-font:    "TT Norms Pro", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --mono-font:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── RESET ───────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  color: var(--hc-ink);
  font-family: var(--body-font);
  background: var(--hc-paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hc-mono {
  font-family: var(--mono-font);
  letter-spacing: 0.05em;
}

/* ── TYPE ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--hc-ink);
}

h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem;    font-weight: 700; }

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

.eyebrow {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-muted);
  margin: 0 0 6px;
  font-family: var(--body-font);
}

.lead, .panel-copy, .project-location {
  color: var(--hc-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ── LOGIN VIEW ──────────────────────────────────────────── */
.login-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.login-slides, .login-overlay { position: absolute; inset: 0; }
.login-slides { z-index: 0; }

.login-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: translateX(10%);
  transition: opacity 900ms ease, transform 900ms ease;
}

.login-slide.is-active { opacity: 1; transform: translateX(0); }

.login-overlay {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(20, 17, 11, 0.82), rgba(20, 17, 11, 0.5)),
    linear-gradient(180deg, rgba(20, 17, 11, 0.22), rgba(20, 17, 11, 0.6));
}

.login-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 32px;
}

.group-brand { display: inline-flex; align-items: center; gap: 16px; }
.group-brand-login { margin-bottom: 28px; }
.group-brand-logo-large { width: min(300px, 100%); height: auto; }

.login-card {
  width: min(560px, 100%);
  padding: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(16px);
}

.login-card h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.login-card .eyebrow { color: var(--hc-lime); }

.login-card .lead,
.login-card .panel-copy,
.login-card label,
.login-card .error { color: rgba(255, 255, 255, 0.92); }

.setup-card {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.login-form button[type="submit"] {
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: var(--body-font);
  cursor: pointer;
}

/* ── APP SHELL ───────────────────────────────────────────── */
.demo-login-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.demo-login-title {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 800;
}

.demo-login-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-login-context {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 111, 44, 0.45);
  border-radius: 6px;
  background: rgba(226, 111, 44, 0.14);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.demo-login-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.demo-login-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.app-view {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--hc-white);
}

/* ── SIDEBAR (V6, 224px) ─────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 224px;
  min-width: 224px;
  background: var(--hc-navy-deep);
  color: #D9DEE5;
  overflow: visible;
  flex: 0 0 auto;
  transition: width 200ms ease, min-width 200ms ease;
  position: relative;
}

.sidebar.is-collapsed { width: 60px; min-width: 60px; }

.sidebar-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar.is-collapsed .sidebar-logo {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
  column-gap: 0;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  font-family: var(--heading-font);
  color: #fff;
  min-width: 0;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.sidebar-brand .sb-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  /* Lange, meerwoordige tenantnamen netjes laten teruglopen tot max 2 regels. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.sidebar-brand .sb-brand-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--hc-lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.sidebar.is-collapsed .sidebar-brand {
  display: none;
}

.sidebar-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 160ms ease, visibility 160ms ease, transform 180ms ease;
}

.sidebar-brand-mark img {
  display: block;
  width: 28px;
  height: 28px;
}

.sidebar.is-collapsed .sidebar-brand-mark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 52px;
  padding: 0;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(20, 17, 11, 0.14);
  border-left: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hc-ink);
  box-shadow: 0 12px 22px rgba(19, 39, 58, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition: background 140ms ease, color 140ms ease, transform 220ms ease, opacity 140ms ease;
}

.sidebar:hover .sidebar-toggle,
.sidebar-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.sidebar-toggle:hover { background: #fff; color: var(--hc-navy-deep); }
.sidebar.is-collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.sidebar-nav {
  flex: 1;
  padding: 18px 0 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.nav-group:last-of-type { margin-bottom: 0; }

.nav-group-label {
  display: block;
  padding: 0 20px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
  font-family: var(--body-font);
}

.sidebar.is-collapsed .nav-group-label { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 38px;
  padding: 0 20px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 140ms ease, color 140ms ease;
}

.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.nav-item.is-active {
  background: rgba(172, 189, 21, 0.10);
  color: #fff;
  font-weight: 600;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--hc-lime);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.nav-item.is-active .nav-icon { color: var(--hc-lime); }

.sidebar.is-collapsed .nav-item {
  justify-content: center;
  padding: 0;
  font-size: 0;
  gap: 0;
}
.sidebar.is-collapsed .nav-item .nav-label { display: none; }

.tenant-switcher {
  position: relative;
  padding: 0 12px 12px;
}

.tenant-switcher-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.tenant-switcher-button:hover,
.tenant-switcher-button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.tenant-switcher-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  flex-shrink: 0;
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 800;
}

.tenant-switcher-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.tenant-switcher-label {
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tenant-switcher-current {
  overflow: hidden;
  color: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switcher-chevron {
  color: rgba(255, 255, 255, 0.58);
  flex-shrink: 0;
}

.tenant-switcher-menu {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% - 4px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #171513;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.tenant-switcher-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.81rem;
  text-align: left;
  cursor: pointer;
}

.tenant-switcher-option:hover,
.tenant-switcher-option.is-active {
  background: rgba(172, 189, 21, 0.14);
  color: #fff;
}

.tenant-context-note {
  margin: 8px 12px 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(172, 189, 21, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.35;
}

.sidebar.is-collapsed .tenant-switcher {
  padding: 0 8px 10px;
}

.sidebar.is-collapsed .tenant-switcher-text,
.sidebar.is-collapsed .tenant-switcher-chevron,
.sidebar.is-collapsed .tenant-switcher-menu {
  display: none;
}

.sidebar.is-collapsed .tenant-switcher-button {
  justify-content: center;
  min-height: 42px;
  padding: 7px 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms ease;
}

.sidebar-user:hover { background: rgba(0, 0, 0, 0.18); }
.sidebar-user:focus-visible { outline: 2px solid var(--hc-lime); outline-offset: -2px; }

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.81rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-avatar.has-image {
  background-color: var(--hc-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  font-size: 0.81rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--body-font);
}

.sidebar.is-collapsed .sidebar-user { justify-content: center; padding: 12px 0; }
.sidebar.is-collapsed .sidebar-user-info { display: none; }

/* ── MAIN AREA ──────────────────────────────────────────── */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hc-paper);
}

/* ── TOPBAR ─────────────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 24px;
  font-size: 0.84rem;
}

.status-banner[data-banner-type="demo"] {
  border-bottom: 1px solid rgba(226, 111, 44, 0.28);
  background: #FFF3EA;
  color: #3F392E;
}

.status-banner strong {
  color: var(--hc-navy-deep);
}

.demo-reset-countdown {
  margin-left: auto;
  color: #765032;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  height: 56px;
  min-height: 56px;
  background: var(--hc-white);
  border-bottom: 1px solid var(--hc-line);
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-family: var(--body-font);
}

.bc-root {
  color: var(--hc-muted);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--hc-muted);
  opacity: 0.5;
  font-weight: 400;
}

#breadcrumb-label {
  color: var(--hc-ink);
  font-weight: 700;
  font-family: var(--heading-font);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ghost refresh button (icon + label) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--hc-ink);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.81rem;
  border: 0;
  cursor: pointer;
  transition: background 140ms ease;
}

.btn-ghost:hover { background: rgba(27, 53, 81, 0.06); }

/* Primary square lime button (Nieuw project, Nieuwe post, LinkedIn) */
.btn-lime,
.btn-lime-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.81rem;
  border: 0;
  cursor: pointer;
  transition: background 140ms ease;
  letter-spacing: 0.01em;
}

.btn-lime:hover, .btn-lime-full:hover { background: var(--hc-lime-deep); }

.btn-lime-full { width: 100%; justify-content: center; }

/* Primary square (navy bg, lime text — for LinkedIn post-button) */
.btn-navy-square {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--hc-navy-deep);
  color: var(--hc-lime);
  border: 0;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.81rem;
  cursor: pointer;
}

.btn-navy-square:hover { background: var(--hc-navy); }

/* Secondary outline button */
.btn-secondary,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--hc-white);
  color: var(--hc-ink);
  border: 1px solid var(--hc-line);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.81rem;
  cursor: pointer;
  transition: border-color 140ms ease;
}

.btn-secondary:hover, .secondary-button:hover { border-color: var(--hc-ink); }

/* Floating feedback */
.feedback-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 760;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--feedback-accent, var(--hc-lime));
  color: var(--feedback-on-accent, var(--hc-white));
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
}

.feedback-launcher:hover { filter: brightness(0.94); }

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 17, 11, 0.45);
  backdrop-filter: blur(4px);
}

.feedback-panel {
  width: min(860px, 100%);
  max-height: calc(100% - 40px);
  padding: 24px 28px;
  overflow-y: auto;
  background: var(--hc-white);
  border-radius: 12px;
  border: 1px solid var(--hc-line);
  border-top: 4px solid var(--feedback-accent, var(--hc-lime));
}

.feedback-panel .drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.feedback-screenshot {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--panel);
}

.feedback-screenshot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.feedback-screenshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-width: 220px;
}

.feedback-add-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--feedback-accent, var(--hc-lime));
  border-radius: 50%;
  background: var(--feedback-accent, var(--hc-lime));
  color: var(--feedback-on-accent, var(--hc-white));
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 17, 11, 0.14);
}

.feedback-add-button:hover { filter: brightness(0.94); }
.feedback-add-button:focus-visible { outline: 2px solid var(--feedback-primary, var(--hc-ink)); outline-offset: 2px; }

.feedback-add-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: var(--hc-white);
  box-shadow: 0 18px 42px rgba(20, 17, 11, 0.16);
}

.feedback-add-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--hc-line);
  border-left: 1px solid var(--hc-line);
  background: var(--hc-white);
  transform: rotate(45deg);
}

.feedback-add-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--hc-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.feedback-add-menu button:hover,
.feedback-add-menu button:focus-visible {
  background: var(--panel);
}

.feedback-add-menu button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.feedback-file-input {
  display: none;
}

.feedback-file-button {
  position: relative;
  cursor: pointer;
}

.feedback-dropzone {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--hc-line);
  border-radius: 8px;
  background: var(--hc-white);
  color: var(--hc-muted);
  overflow: hidden;
}

.feedback-dropzone:focus {
  outline: 2px solid var(--feedback-accent, var(--hc-lime));
  outline-offset: 2px;
}

.feedback-overlay.is-capturing {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.feedback-overlay.is-capturing .feedback-panel {
  opacity: 0;
  visibility: hidden;
}

.feedback-canvas {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  background: var(--hc-beton);
  cursor: crosshair;
}

.feedback-clear-screenshot {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hc-line);
  border-radius: 50%;
  background: var(--hc-white);
  color: var(--hc-ink);
  box-shadow: 0 8px 20px rgba(20, 17, 11, 0.18);
  cursor: pointer;
}

.feedback-clear-screenshot:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.feedback-clear-screenshot.hidden { display: none; }

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-tool-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--hc-white);
  color: var(--hc-muted);
  cursor: pointer;
}

.feedback-tool-button:hover,
.feedback-tool-button.is-active {
  border-color: var(--feedback-accent, var(--hc-lime));
  color: var(--feedback-primary, var(--hc-ink));
}

.feedback-actions {
  justify-content: flex-end;
}

.feedback-actions button[type="submit"] {
  width: auto;
  min-width: 120px;
  background: var(--feedback-accent, var(--hc-lime));
  color: var(--feedback-on-accent, var(--hc-white));
}

@media (max-width: 680px) {
  .feedback-launcher { right: 16px; bottom: 16px; }
  .feedback-panel { padding: 20px; }
  .feedback-screenshot-head { grid-template-columns: 1fr; }
  .feedback-screenshot-actions { min-width: 0; justify-content: flex-start; }
  .feedback-add-menu { left: 0; right: auto; }
  .feedback-add-menu::before { left: 15px; right: auto; }
  .feedback-dropzone { min-height: 200px; }
}

/* ── MAIN SECTIONS ──────────────────────────────────────── */
.main-section {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.main-section.active { display: flex; }

#section-overview { position: relative; }

/* ── PROJECTEN: split shell (filter rail + main column) ─── */
.projects-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--hc-paper);
  position: relative;
}

/* ── FLOATING FILTER OVERLAY ─────────────────────────────── */
/* Zwevende Filters-knop + actieve-filter chips + popover, over kaart/lijst. */
.filter-overlay {
  position: absolute;
  top: 64px;
  left: 16px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.filter-overlay > * { pointer-events: auto; }

.filter-overlay-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.filter-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: var(--hc-white);
  color: var(--hc-ink);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 17, 11, 0.12);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  flex-shrink: 0;
}

.filter-fab:hover { border-color: var(--hc-ink); box-shadow: 0 6px 20px rgba(20, 17, 11, 0.18); }
.filter-overlay.is-open .filter-fab { border-color: var(--hc-ink); }
.filter-fab svg { color: var(--hc-saffron, #E26F2C); }

.filter-fab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hc-saffron, #E26F2C);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.filter-fab-badge.hidden { display: none; }

.filter-active-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: var(--hc-white);
  color: var(--hc-ink);
  font-family: var(--body-font);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 17, 11, 0.08);
  transition: border-color 140ms ease;
}

.filter-chip:hover { border-color: var(--hc-ink); }
.filter-chip.is-search { font-weight: 500; }
.filter-chip.is-search svg { color: var(--hc-muted); flex-shrink: 0; }

.filter-chip-x {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(20, 17, 11, 0.08);
  color: var(--hc-muted);
  font-size: 0.82rem;
  line-height: 1;
}

.filter-chip:hover .filter-chip-x { background: var(--hc-ink); color: #fff; }

.filter-popover {
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(20, 17, 11, 0.20);
  overflow: hidden;
}

.filter-popover.hidden { display: none; }

.filter-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hc-line);
}

.filter-popover-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hc-ink);
}

.filter-popover-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hc-muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.filter-popover-close:hover { background: rgba(20, 17, 11, 0.06); color: var(--hc-ink); }

.filter-popover-body {
  flex: 1;
  overflow-y: auto;
}

.filter-popover-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--hc-line);
}

/* ── FILTER RAIL (legacy; element verwijderd, regels ongebruikt) ─ */
.filter-rail {
  width: 240px;
  flex: 0 0 240px;
  background: var(--hc-white);
  border-right: 1px solid var(--hc-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 200ms ease, flex-basis 200ms ease;
}

.filter-rail.is-collapsed {
  width: 52px;
  flex: 0 0 52px;
}

.filter-rail-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--hc-line);
}

.filter-rail.is-collapsed .filter-rail-header {
  justify-content: center;
  padding: 0;
}

.filter-rail-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hc-ink);
}

.filter-rail.is-collapsed .filter-rail-title { display: none; }

.filter-rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  border: 0;
  color: var(--hc-muted);
  cursor: pointer;
  transition: background 140ms ease, transform 200ms ease;
}

.filter-rail-toggle:hover { background: rgba(27, 53, 81, 0.06); }
.filter-rail.is-collapsed .filter-rail-toggle { transform: rotate(180deg); }

.filter-rail-body {
  flex: 1;
  overflow-y: auto;
}

.filter-rail.is-collapsed .filter-rail-body { display: none; }

.filter-rail-search {
  padding: 12px 18px;
  border-bottom: 1px solid var(--hc-line);
}

.filter-rail-search-wrap {
  position: relative;
}

.filter-rail-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hc-muted);
  pointer-events: none;
}

.filter-rail-search-wrap input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 30px;
  border: 1px solid var(--hc-line);
  border-radius: 4px;
  background: var(--hc-white);
  color: var(--hc-ink);
  font-size: 0.81rem;
  outline: none;
}

.filter-rail-search-wrap input::placeholder { color: var(--hc-muted); }
.filter-rail-search-wrap input:focus { border-color: var(--hc-ink); }

.filter-section {
  border-bottom: 1px solid var(--hc-line);
}

.filter-section-header {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hc-ink);
  text-transform: uppercase;
  font-family: var(--body-font);
}

.filter-section-chevron {
  color: var(--hc-muted);
  transition: transform 150ms ease;
  display: inline-flex;
}

.filter-section.is-open .filter-section-chevron { transform: rotate(180deg); }

.filter-section-body {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-section:not(.is-open) .filter-section-body { display: none; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.81rem;
  color: var(--hc-ink);
  cursor: pointer;
  user-select: none;
}

.filter-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--hc-line);
  background: var(--hc-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 120ms ease, background 120ms ease;
}

.filter-check-box svg { display: none; stroke: #fff; }

.filter-check input:checked + .filter-check-box {
  background: var(--hc-ink);
  border-color: var(--hc-ink);
}

.filter-check input:checked + .filter-check-box svg { display: block; }

.filter-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hc-muted);
  flex-shrink: 0;
}

.filter-check-dot.is-flowskraft,
.filter-check-dot.is-holcon,
.filter-check-dot.is-bisoton,
.filter-check-dot.is-durison { background: var(--hc-co-holcon); }

.filter-check-label {
  flex: 1;
  font-weight: 500;
}

.filter-check.is-checked .filter-check-label { font-weight: 600; }

.filter-check-count {
  font-size: 0.69rem;
  color: var(--hc-muted);
}

/* Bedrijfslocatie-groep: kleurstip in filter en beheerkaarten. */
.filter-location-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.18);
  vertical-align: middle;
  margin-right: 6px;
}

.filter-empty-hint {
  margin: 0;
  padding: 4px 2px;
  font-size: 0.74rem;
  color: var(--hc-muted);
}

/* Kleurkiezer in het bedrijfslocatie-formulier. */
.color-field input[type="color"] {
  width: 56px;
  height: 34px;
  padding: 2px;
  cursor: pointer;
}

/* Locatielogo-veld in het bedrijfslocatie-formulier. */
.factory-logo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.factory-logo-field .field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hc-ink);
}

.factory-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.factory-logo-preview {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--hc-line);
  background: var(--hc-bone, #f4efe7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.factory-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.factory-logo-preview.is-empty::after {
  content: "Geen logo";
  font-size: 0.62rem;
  color: var(--hc-muted);
  text-align: center;
  padding: 0 4px;
}

.factory-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.factory-logo-field .field-hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--hc-muted);
}

.filter-rail-footer {
  padding: 14px 18px;
}

.filter-reset-button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--hc-muted);
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-reset-button:hover { color: var(--hc-ink); }

/* ── MAIN COLUMN (toolbar + list/map) ───────────────────── */
.projects-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--hc-paper);
}

.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--hc-white);
  border-bottom: 1px solid var(--hc-line);
  flex-shrink: 0;
}

.toolbar-count {
  font-size: 0.81rem;
  color: var(--hc-muted);
}

.toolbar-count strong { color: var(--hc-ink); font-weight: 700; }

.toolbar-spacer { flex: 1; }

.toolbar-sort-wrap {
  position: relative;
}

.toolbar-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 4px;
  color: var(--hc-ink);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  position: relative;
}

.toolbar-sort:hover { border-color: var(--hc-ink); }

.toolbar-sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 10;
  min-width: 180px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toolbar-sort-menu.hidden { display: none; }

.toolbar-sort-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 0.81rem;
  color: var(--hc-ink);
  cursor: pointer;
  text-align: left;
}

.toolbar-sort-menu button:hover { background: rgba(27, 53, 81, 0.06); }

.toolbar-sort-menu button .sort-dir {
  color: var(--hc-lime);
  font-weight: 800;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--hc-line);
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  padding: 0;
  background: var(--hc-white);
  color: var(--hc-muted);
  border: 0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.view-toggle-btn.is-active {
  background: var(--hc-ink);
  color: #fff;
}

/* ── LIST VIEW ──────────────────────────────────────────── */
#list-view {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  /* Bovenruimte zodat de eerste rij niet achter de zwevende Filters-knop valt. */
  padding: 64px 28px 28px;
}

#list-view.hidden { display: none !important; }

.list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: 88px 1fr 150px 130px 120px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: border-color 140ms ease;
}

.list-row:hover { border-color: var(--hc-ink); }

.list-row.is-selected { border-color: var(--hc-ink); }

.list-row.is-selected::before,
.list-row:hover::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--hc-lime);
  border-radius: 0 2px 2px 0;
}

.list-row:hover::before { background: transparent; }
.list-row.is-selected::before { background: var(--hc-lime); }

.list-cell-code {
  font-family: var(--mono-font);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hc-muted);
}

.list-cell-primary { min-width: 0; }
.list-cell-primary .list-title {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--hc-ink);
  line-height: 1.2;
}
.list-cell-primary .list-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--hc-muted);
}

.list-cell-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  color: var(--hc-ink);
  font-weight: 600;
}

.list-cell-meta .company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--hc-co-holcon);
}

.list-cell-meta .company-dot.is-flowskraft,
.list-cell-meta .company-dot.is-holcon,
.list-cell-meta .company-dot.is-bisoton,
.list-cell-meta .company-dot.is-durison { background: var(--hc-co-holcon); }

.list-cell-city {
  font-size: 0.81rem;
  color: var(--hc-ink);
}

.list-cell-status {
  display: flex;
  justify-content: flex-end;
}

/* ── PRIMITIVES: TypePill / StatusPill ──────────────────── */
.type-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  color: var(--hc-ink);
  border: 1px solid var(--hc-line);
}

.type-pill.is-soft {
  background: var(--hc-beton);
  border-color: transparent;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-family: var(--body-font);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.status-pill.is-opgeleverd { background: var(--hc-status-done-bg);  color: var(--hc-status-done-fg);  }
.status-pill.is-lopend     { background: var(--hc-status-busy-bg);  color: var(--hc-status-busy-fg);  }
.status-pill.is-lopend::before { background: var(--hc-status-busy-dot); }
.status-pill.is-actief     { background: var(--hc-status-act-bg);   color: var(--hc-status-act-fg);   }
.status-pill.is-draft      { background: var(--hc-status-draft-bg); color: var(--hc-status-draft-fg); }
.status-pill.is-draft::before { background: var(--hc-status-draft-dot); }
.status-pill.is-ready      { background: var(--hc-status-done-bg);  color: var(--hc-status-done-fg);  }
.status-pill.is-published  {
  background: var(--hc-navy);
  color: var(--hc-lime);
}
.status-pill.is-published::before { background: var(--hc-lime); }

/* ── MFA / Security tab (PR-014) ──────────────────────────── */
.status-pill[data-mfa-state="active"]   { background: var(--hc-status-done-bg);  color: var(--hc-status-done-fg);  }
.status-pill[data-mfa-state="active"]::before { background: var(--hc-status-done-fg); }
.status-pill[data-mfa-state="pending"]  { background: var(--hc-status-busy-bg);  color: var(--hc-status-busy-fg);  }
.status-pill[data-mfa-state="pending"]::before { background: var(--hc-status-busy-fg); }
.status-pill[data-mfa-state="off"]      { background: var(--hc-status-draft-bg); color: var(--hc-status-draft-fg); }
.status-pill[data-mfa-state="off"]::before { background: var(--hc-status-draft-fg); }
.status-pill[data-mfa-state="loading"]  { background: var(--hc-status-draft-bg); color: var(--hc-status-draft-fg); opacity: 0.7; }

.account-callout {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--hc-status-busy-bg);
  color: var(--hc-status-busy-fg);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mfa-factor-list {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfa-factor-list .mfa-factor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--hc-border, #E2DDD2);
  border-radius: 10px;
  background: var(--hc-bone, #F4EFE7);
}

.mfa-factor-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.mfa-factor-meta strong { font-weight: 600; }
.mfa-factor-meta span   { color: var(--hc-ink-soft, #5C5648); }

.mfa-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mfa-enroll-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.mfa-enroll-qr {
  display: flex;
  justify-content: center;
}

.mfa-enroll-qr img {
  max-width: 220px;
  height: auto;
  border: 1px solid var(--hc-border, #E2DDD2);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.mfa-secret {
  display: block;
  padding: 8px 12px;
  background: var(--hc-bone, #F4EFE7);
  border-radius: 6px;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  word-break: break-all;
  user-select: all;
}

.mfa-enroll-actions,
.mfa-challenge-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── PROJECT CODE BADGE (drawer/detail legacy) ──────────── */
.project-code-badge {
  display: inline-block;
  font-family: var(--mono-font);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--hc-navy-deep);
  color: var(--hc-lime);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ── MAP VIEW ───────────────────────────────────────────── */
#map {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

#map.hidden { display: none !important; }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  margin: 32px auto;
  max-width: 380px;
  padding: 24px 28px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  text-align: center;
}

.empty-state h3 { margin-bottom: 6px; color: var(--hc-ink); }
.empty-state p { color: var(--hc-muted); font-size: 0.86rem; }

/* ── PROJECT DETAIL PAGE (full page replaces drawer) ────── */
#section-project-detail.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--hc-paper);
}

.detail-header-block {
  padding: 22px 32px 18px;
  background: var(--hc-white);
  border-bottom: 1px solid var(--hc-line);
  flex-shrink: 0;
}

.detail-subheader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--hc-muted);
  margin-bottom: 10px;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--hc-muted);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
}

.detail-back-button:hover { background: rgba(27, 53, 81, 0.06); color: var(--hc-ink); }

.detail-subheader .bullet { opacity: 0.4; }

.detail-subheader .detail-code {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hc-muted);
}

.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-title-block h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--hc-ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--hc-muted);
  flex-wrap: wrap;
}

.detail-meta-row .meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta-row .bullet {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hc-muted);
  opacity: 0.6;
  flex-shrink: 0;
}

.detail-meta-row .company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--hc-co-holcon);
}

.detail-meta-row .company-dot.is-flowskraft,
.detail-meta-row .company-dot.is-holcon,
.detail-meta-row .company-dot.is-bisoton,
.detail-meta-row .company-dot.is-durison { background: var(--hc-co-holcon); }

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

.detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.detail-photos-section { min-width: 0; }

.detail-photos-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-photos-header h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--hc-ink);
}

.detail-photos-meta {
  font-size: 0.75rem;
  color: var(--hc-muted);
}

.detail-photos-meta strong { color: var(--hc-ink); font-weight: 700; }

.detail-photos-meta .upload-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--hc-navy);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
}

.detail-photos-meta .upload-link:hover { color: var(--hc-ink); }

/* Asymmetric photo grid (5-cell hero + thumbs) */
.detail-photos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 6px;
}

.dpg-cell {
  border-radius: 4px;
  background-color: var(--hc-beton);
  background-position: center;
  background-size: cover;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.dpg-cell.is-hero { grid-row: 1 / span 2; }

.dpg-cell.is-plus {
  display: grid;
  place-items: center;
  color: var(--hc-muted);
  font-size: 0.69rem;
  font-weight: 600;
  cursor: pointer;
}

.dpg-cell.is-upload {
  background: var(--hc-beton);
  border: 1.5px dashed var(--hc-line);
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--hc-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.dpg-cell.is-upload:hover { border-color: var(--hc-ink); color: var(--hc-ink); }

.dpg-cell.is-empty {
  background: var(--hc-beton);
  cursor: default;
}

.dpg-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 17, 11, 0.75);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease;
}

.dpg-cell:hover .dpg-remove { opacity: 1; }

/* Right-column meta sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 18px;
}

.detail-card .eyebrow { margin-bottom: 12px; }

.detail-meta-list .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--hc-line-soft);
  font-size: 0.81rem;
}

.detail-meta-list .meta-row:first-child { border-top: 0; padding-top: 0; }

.detail-meta-list .meta-key {
  color: var(--hc-muted);
  font-weight: 500;
}

.detail-meta-list .meta-value {
  color: var(--hc-ink);
  font-weight: 600;
  text-align: right;
}

.detail-meta-list .meta-value.is-mono {
  font-family: var(--mono-font);
  letter-spacing: 0.05em;
}

/* LinkedIn callout (dark accent card) */
.detail-linkedin-card {
  background: var(--hc-navy-deep);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  border: 0;
}

.detail-linkedin-card .eyebrow { color: var(--hc-lime); }

.detail-linkedin-card h4 {
  font-size: 0.94rem;
  font-weight: 700;
  font-family: var(--heading-font);
  margin: 6px 0 8px;
  color: #fff;
}

.detail-linkedin-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 14px;
}

.linkedin-multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.linkedin-multi-toggle[aria-pressed="true"] {
  border-color: rgba(172, 189, 21, 0.7);
  background: rgba(172, 189, 21, 0.14);
}

.linkedin-multi-star {
  color: var(--hc-lime);
  font-size: 0.95rem;
  line-height: 1;
}

.detail-linkedin-card .btn-lime-full { background: var(--hc-lime); color: var(--hc-navy-deep); }

/* Download link inside meta card */
.detail-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(27, 53, 81, 0.06);
  color: var(--hc-ink);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.81rem;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.detail-download-link:hover { background: rgba(27, 53, 81, 0.12); }
.detail-download-link.hidden { display: none; }

/* Generic detail upload form (drawer remnant; rarely shown) */
.detail-upload-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hc-line-soft);
}

/* ── CONTENT SECTION (drafts) ───────────────────────────── */
.content-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px 0;
  flex-shrink: 0;
}

.content-tabs {
  display: flex;
  gap: 18px;
}

.content-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hc-muted);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.content-tab:hover { color: var(--hc-ink); }

.content-tab.is-active {
  color: var(--hc-ink);
  border-bottom-color: var(--hc-lime);
}

.content-tab .tab-count {
  font-family: var(--body-font);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--hc-muted);
}

.content-search-wrap {
  position: relative;
}

.content-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hc-muted);
  pointer-events: none;
}

.content-search-wrap input {
  height: 32px;
  padding: 0 12px 0 30px;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  background: var(--hc-white);
  color: var(--hc-ink);
  font-size: 0.81rem;
  outline: none;
  width: 220px;
}

.content-search-wrap input::placeholder { color: var(--hc-muted); }
.content-search-wrap input:focus { border-color: var(--hc-ink); }

.content-drafts-grid {
  flex: 1;
  overflow-y: auto;
  padding: 22px 32px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(rgb(246, 245, 241), rgb(236, 234, 226)),
    linear-gradient(rgb(228, 229, 224) 1px, transparent 1px),
    linear-gradient(90deg, rgb(228, 229, 224) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.content-draft-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 53, 81, 0.1);
  border-radius: 18px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(27, 53, 81, 0.08);
  transition: border-color 140ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.content-draft-card:hover {
  border-color: rgba(27, 53, 81, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(27, 53, 81, 0.12);
}

.cdc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cdc-platform-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cdc-platform-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10, 102, 194, 0.1);
  color: #0A66C2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cdc-meta {
  font-size: 0.72rem;
  color: #5A5142;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cdc-title {
  font-size: 1.08rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: #14110B;
  margin: 0;
}

.cdc-kicker {
  margin: -4px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5A5142;
}

.cdc-multi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(172, 189, 21, 0.14);
  color: var(--hc-ink);
  font-size: 0.69rem;
  font-weight: 700;
}

.cdc-preview {
  font-size: 0.84rem;
  color: #5A5142;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 53, 81, 0.08);
  margin-top: auto;
}

.cdc-location {
  font-size: 0.77rem;
  color: #5A5142;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cdc-actions { display: flex; gap: 4px; }

.cdc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--hc-muted);
  cursor: pointer;
}

.cdc-action-btn:hover { background: rgba(27, 53, 81, 0.06); color: var(--hc-ink); }
.cdc-action-btn[disabled],
.cdc-action-btn.is-busy { opacity: 0.5; cursor: progress; pointer-events: none; }
.cdc-action-btn .cdc-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: cdc-spin 0.7s linear infinite;
}
@keyframes cdc-spin { to { transform: rotate(360deg); } }

/* ── EDITOR OVERLAY ─────────────────────────────────────── */
.editor-overlay,
.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 17, 11, 0.45);
  backdrop-filter: blur(4px);
}

.editor-panel {
  width: min(640px, 100%);
  max-height: calc(100% - 40px);
  padding: 24px 28px;
  overflow-y: auto;
  background: var(--hc-white);
  border-radius: 12px;
  border: 1px solid var(--hc-line);
}

.editor-panel .drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.editor-panel h2 { font-size: 1.25rem; margin-bottom: 4px; }

/* ── IMAGE OVERLAY ──────────────────────────────────────── */
.image-panel {
  position: relative;
  width: min(72vw, 1080px);
  min-width: 320px;
  padding: 22px 22px 18px;
  background: var(--hc-white);
  border-radius: 12px;
  border: 1px solid var(--hc-line);
}

.image-panel img {
  width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  background: var(--hc-beton);
}

.image-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.image-nav-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hc-ink);
  border: 1px solid var(--hc-line);
  border-radius: 50%;
}

.image-nav-prev { left: 10px; }
.image-nav-next { right: 10px; }

/* ── BUTTONS (general fallback) ─────────────────────────── */
button {
  cursor: pointer;
}

.drawer-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--hc-ink);
  border-radius: 4px;
}

.drawer-icon-button:hover { background: rgba(27, 53, 81, 0.06); }

/* Editor form-specific submit button override */
#admin-form button[type="submit"],
#password-form button[type="submit"] {
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  border: 0;
  border-radius: 6px;
  height: 36px;
  padding: 0 18px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.81rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#admin-form button[type="submit"]:hover,
#password-form button[type="submit"]:hover { background: var(--hc-lime-deep); }

.danger-button {
  background: var(--hc-white);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 6px;
  height: 36px;
  padding: 0 14px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.81rem;
  cursor: pointer;
}

.danger-button:hover { background: var(--danger); color: #fff; }

/* ── FORMS ──────────────────────────────────────────────── */
.stack-form { display: grid; gap: 14px; }

.stack-form label {
  display: grid;
  gap: 6px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--hc-ink);
  font-family: var(--body-font);
}

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  color: var(--hc-ink);
  background: var(--hc-white);
  font-family: var(--body-font);
  font-size: 0.86rem;
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--hc-muted); }

input:focus, select:focus, textarea:focus { border-color: var(--hc-ink); }

textarea { resize: vertical; min-height: 60px; }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.button-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.admin-button-row { align-items: stretch; }

.project-location-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--panel);
}

.project-location-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.project-location-header strong {
  display: block;
  font-size: 0.86rem;
  color: var(--hc-ink);
}

.project-location-header span,
.project-location-editor .panel-copy {
  font-size: 0.78rem;
  color: var(--hc-muted);
}

.project-location-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-location-buttons button,
.project-location-actions button {
  min-height: 34px;
}

.project-location-map {
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  background: var(--hc-white);
}

.project-location-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.checkbox-row input { width: 16px; height: 16px; }

.editor-section-label {
  font-size: 0.69rem;
  font-weight: 700;
  font-family: var(--body-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-muted);
  padding: 14px 0 4px;
  border-top: 1px solid var(--hc-line);
  margin-top: 4px;
}

/* ── LINKEDIN MODAL — Variant A redesign (PR-021) ──────────
   Drop-in vervanging van de oude LinkedIn-modal regels.
   Alles is gescoped onder #linkedin-modal en grijpt niet
   buiten de modal in. Het bestaande detail-page knopje
   `.linkedin-multi-toggle` (gebruikt voor #detail-linkedin-multi-toggle)
   blijft intact in zijn eigen blok hierboven.
   ──────────────────────────────────────────────────────── */

#linkedin-modal {
  /* local-only tint, niet in de globale tokens */
  --li-saffron-50: #FBEEE3;
}

/* Overlay */
#linkedin-modal.linkedin-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 17, 11, 0.45);
  backdrop-filter: blur(4px);
}

/* Panel (fixed size, no full-modal scroll) */
#linkedin-modal .linkedin-modal-panel {
  width: 900px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 48px);
  padding: 0;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(20, 17, 11, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
#linkedin-modal .linkedin-shell-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 17px 22px;
  border-bottom: 1px solid var(--hc-line-soft);
  flex-shrink: 0;
}
#linkedin-modal .linkedin-shell-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}
#linkedin-modal .linkedin-shell-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--hc-ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#linkedin-modal .linkedin-shell-title-wrap { min-width: 0; }
#linkedin-modal .linkedin-shell-title-wrap h2 {
  margin: 0 0 2px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hc-ink);
}
#linkedin-modal .linkedin-shell-title-wrap .panel-copy {
  margin: 0;
  font-size: 0.83rem;
  color: var(--hc-muted);
}
#linkedin-modal .linkedin-shell-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--hc-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
#linkedin-modal .linkedin-shell-close:hover {
  background: var(--hc-beton);
  color: var(--hc-ink);
}

/* PR-021 banner: bestaand concept hergebruiken */
#linkedin-modal .linkedin-existing-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 22px;
  background: var(--li-saffron-50);
  border-bottom: 1px solid var(--hc-line-soft);
  flex-shrink: 0;
  flex-wrap: wrap;
}
#linkedin-modal .linkedin-existing-draft-banner.hidden { display: none; }
#linkedin-modal .linkedin-existing-draft-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#linkedin-modal .linkedin-existing-draft-text strong {
  font-size: 0.86rem;
  color: var(--hc-ink);
}
#linkedin-modal .linkedin-existing-draft-text span {
  font-size: 0.78rem;
  color: var(--hc-muted);
}
#linkedin-modal .linkedin-existing-draft-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#linkedin-modal .linkedin-existing-draft-actions .li-icon-btn {
  width: auto;
  height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
#linkedin-modal .linkedin-existing-draft-actions .linkedin-generate-button {
  width: auto;
  height: 34px;
  padding: 0 14px;
  font-size: 0.84rem;
}

/* Body: rail + editor */
#linkedin-modal .linkedin-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
}

/* LEFT RAIL */
#linkedin-modal .linkedin-setup-shell {
  width: 312px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: none;
  border-right: 1px solid var(--hc-line-soft);
  border-radius: 0;
  background: var(--hc-paper);
  box-shadow: none;
}
#linkedin-modal .li-rail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#linkedin-modal .li-field { display: flex; flex-direction: column; }
#linkedin-modal .li-grp-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hc-muted);
  margin-bottom: 9px;
}

/* Tone dropdown */
#linkedin-modal .linkedin-select-wrap { position: relative; }
#linkedin-modal .linkedin-select-wrap select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--hc-line);
  border-radius: 9px;
  background: var(--hc-white);
  color: var(--hc-ink);
  font-family: var(--body-font);
  font-size: 0.88rem;
  font-weight: 600;
  appearance: none;
  outline: none;
  cursor: pointer;
}
#linkedin-modal .linkedin-select-wrap select:focus { border-color: var(--hc-ink); }
#linkedin-modal .linkedin-select-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--hc-muted);
}

/* Multi-project = switch row, state via aria-pressed */
#linkedin-modal .linkedin-multi-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--hc-line);
  border-radius: 9px;
  background: var(--hc-white);
  text-align: left;
  cursor: pointer;
}
#linkedin-modal .li-scope-text { flex: 1; min-width: 0; }
#linkedin-modal .li-scope-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hc-ink);
}
#linkedin-modal .li-scope-text span {
  font-size: 0.74rem;
  color: var(--hc-muted);
}
#linkedin-modal .li-switch {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--hc-line);
  position: relative;
  flex-shrink: 0;
  transition: background 140ms;
}
#linkedin-modal .li-switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 140ms;
}
#linkedin-modal .linkedin-multi-toggle[aria-pressed="true"] {
  border-color: var(--hc-lime);
  background: var(--li-saffron-50);
}
#linkedin-modal .linkedin-multi-toggle[aria-pressed="true"] .li-switch { background: var(--hc-lime); }
#linkedin-modal .linkedin-multi-toggle[aria-pressed="true"] .li-switch::after { left: 19.5px; }

/* Project picker */
#linkedin-modal .linkedin-project-picker { display: grid; gap: 10px; }
#linkedin-modal .linkedin-project-picker.hidden { display: none; }
#linkedin-modal .linkedin-picker-header h3 { margin: 0 0 2px; font-size: 0.84rem; color: var(--hc-ink); }
#linkedin-modal .linkedin-picker-header p { margin: 0; font-size: 0.74rem; color: var(--hc-muted); }
#linkedin-modal .linkedin-project-options { display: grid; gap: 8px; }
#linkedin-modal .linkedin-project-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: var(--hc-white);
  cursor: pointer;
}
#linkedin-modal .linkedin-project-option input { margin: 0; }
#linkedin-modal .linkedin-project-option.is-selected {
  border-color: var(--hc-lime);
  background: var(--li-saffron-50);
}
#linkedin-modal .linkedin-project-option-mark {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid var(--hc-line); background: #fff;
  color: transparent; display: grid; place-items: center;
}
#linkedin-modal .linkedin-project-option.is-selected .linkedin-project-option-mark {
  background: var(--hc-ink); border-color: var(--hc-ink); color: #fff;
}
#linkedin-modal .linkedin-project-meta { min-width: 0; }
#linkedin-modal .linkedin-project-meta strong { display: block; font-size: 0.82rem; color: var(--hc-ink); }
#linkedin-modal .linkedin-project-meta span { display: block; font-size: 0.74rem; color: var(--hc-muted); }

/* Photos */
#linkedin-modal .li-photos { display: flex; flex-direction: column; gap: 11px; }
#linkedin-modal .li-photos-head { display: flex; align-items: center; gap: 8px; }
#linkedin-modal .li-photos-head .li-grp-label { margin: 0; white-space: nowrap; }

#linkedin-modal .linkedin-photo-summary { margin-left: auto; display: inline-flex; align-items: center; }
#linkedin-modal .linkedin-photo-summary.hidden { display: none; }
#linkedin-modal .linkedin-photo-summary-item,
#linkedin-modal .linkedin-photo-summary-dot,
#linkedin-modal .linkedin-photo-summary-spacer { display: none; }
#linkedin-modal .linkedin-photo-summary-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hc-lime-deep);
  background: var(--li-saffron-50);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
#linkedin-modal .linkedin-photo-summary-count strong { color: var(--hc-lime-deep); }

#linkedin-modal .linkedin-photo-picker { display: grid; gap: 14px; }
#linkedin-modal .linkedin-photo-group { display: grid; gap: 9px; }
#linkedin-modal .linkedin-photo-group + .linkedin-photo-group { margin-top: 2px; }
#linkedin-modal .linkedin-photo-group-header h4 { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--hc-ink); }
#linkedin-modal .linkedin-photo-group-header p { margin: 2px 0 0; font-size: 0.74rem; color: var(--hc-muted); }
#linkedin-modal .linkedin-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
#linkedin-modal .linkedin-photo-option {
  position: relative;
  padding: 0;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 120ms;
}
#linkedin-modal .linkedin-photo-option.is-selected { border-color: var(--hc-lime); }
#linkedin-modal .linkedin-photo-thumb {
  /* De thumb is een <span> met inline background-image. Span is default
     display:inline, waardoor width/height op 100% genegeerd worden en de
     foto niet zichtbaar is. Absoluut positioneren vult de button-tile
     volledig en respecteert de aspect-ratio van .linkedin-photo-option. */
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 6px;
  background-color: #dfe3e7;
  background-size: cover;
  background-position: center;
}
#linkedin-modal .linkedin-photo-check {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;          /* boven .linkedin-photo-thumb (zelf ook position:absolute) */
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hc-lime);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(20, 17, 11, 0.3);
}
#linkedin-modal .linkedin-photo-option.is-selected .linkedin-photo-check { display: flex; }
#linkedin-modal .linkedin-photo-caption { display: none; }
#linkedin-modal .linkedin-picker-empty { margin: 0; font-size: 0.78rem; color: var(--hc-muted); }

/* Generate pinned at the bottom of the rail */
#linkedin-modal .li-gen-wrap {
  padding: 14px 20px;
  border-top: 1px solid var(--hc-line-soft);
  flex-shrink: 0;
}
#linkedin-modal .linkedin-generate-button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 9px;
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
#linkedin-modal .linkedin-generate-button:hover { background: var(--hc-lime-deep); color: #fff; }
#linkedin-modal .linkedin-generate-button:disabled { opacity: 0.55; cursor: not-allowed; }

/* RIGHT EDITOR */
#linkedin-modal .linkedin-editor-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--hc-white);
  box-shadow: none;
}
#linkedin-modal .linkedin-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 12px;
  flex-shrink: 0;
}
#linkedin-modal .li-editor-head-text h3 { margin: 0 0 2px; font-size: 0.98rem; font-weight: 700; color: var(--hc-ink); }
#linkedin-modal .li-editor-head-text p { margin: 0; font-size: 0.81rem; color: var(--hc-muted); }
#linkedin-modal .li-editor-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#linkedin-modal #linkedin-generating-text { margin: 0; font-size: 0.78rem; color: var(--hc-muted); }
#linkedin-modal .linkedin-character-count {
  font-size: 0.76rem;
  color: var(--hc-muted);
  white-space: nowrap;
  background: var(--hc-paper);
  border: 1px solid var(--hc-line-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
#linkedin-modal .li-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: transparent;
  color: var(--hc-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 120ms;
}
#linkedin-modal .li-icon-btn:hover { background: var(--hc-beton); }
#linkedin-modal .li-icon-btn.is-ready { background: var(--hc-lime); border-color: var(--hc-lime); color: var(--hc-navy-deep); }
#linkedin-modal .li-icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
#linkedin-modal .li-icon-danger:hover { background: #FBEAEA; border-color: #E7B4B4; color: var(--danger); }

#linkedin-modal .li-area-wrap {
  flex: 1;
  position: relative;
  margin: 0 22px 18px;
  display: flex;
  min-height: 0;
}
#linkedin-modal .linkedin-content-area {
  flex: 1;
  width: 100%;
  margin: 0;
  resize: none;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  padding: 15px 16px 50px;
  font-family: var(--body-font);
  font-size: 0.88rem;
  color: var(--hc-ink);
  line-height: 1.7;
  outline: none;
  min-height: 0;
  background: #fff;
}
#linkedin-modal .linkedin-content-area:focus { border-color: var(--hc-ink); }
#linkedin-modal .linkedin-content-area::placeholder { color: var(--hc-muted); }

/* Copy button = floating icon inside the textarea */
#linkedin-modal .li-copy-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hc-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hc-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 17, 11, 0.1);
  transition: all 120ms;
}
#linkedin-modal .li-copy-fab:hover { background: var(--hc-lime); border-color: var(--hc-lime); color: var(--hc-navy-deep); }
#linkedin-modal .li-copy-fab.is-done { background: var(--success, #2F8F3F); border-color: var(--success, #2F8F3F); color: #fff; }

/* Feedback line: SR-only */
#linkedin-modal #linkedin-feedback.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 760px) {
  #linkedin-modal.linkedin-modal { padding: 12px; }
  #linkedin-modal .linkedin-modal-panel {
    width: 100%;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }
  #linkedin-modal .linkedin-modal-body { flex-direction: column; }
  #linkedin-modal .linkedin-setup-shell {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--hc-line-soft);
    max-height: 46%;
  }
  #linkedin-modal .linkedin-editor-shell { min-height: 240px; }
}


/* ── GALLERY (legacy grid kept for image overlay flow) ──── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--hc-beton);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 4px;
  background: rgba(20, 17, 11, 0.75);
  color: #fff;
  border: 0;
  font-size: 0.95rem;
}

/* ── PLACEHOLDER SECTIONS ───────────────────────────────── */
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--hc-muted);
  gap: 12px;
  padding: 60px 40px;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--hc-beton);
  color: var(--hc-muted);
  margin-bottom: 4px;
}

.placeholder-content h2 { margin-bottom: 4px; color: var(--hc-ink); }

.placeholder-content p {
  max-width: 360px;
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── ACCOUNT PAGE ────────────────────────────────────────── */
.account-page {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.account-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.account-page-header h2 {
  margin: 2px 0 0;
  font-family: var(--heading-font);
  font-size: 1.35rem;
}
.account-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  overflow-x: auto;
}
.account-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hc-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 10px;
  white-space: nowrap;
  cursor: pointer;
}
.account-tab:hover,
.account-tab.is-active {
  background: var(--hc-ink);
  color: var(--hc-white);
}
.account-logout-button {
  flex-shrink: 0;
}
.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hc-lime);
  color: var(--hc-navy-deep);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.account-avatar.has-image {
  background-color: var(--hc-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
}
.account-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--hc-white);
  background: var(--hc-navy);
  color: var(--hc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#avatar-upload-input {
  display: none;
}
.account-header-info h2 { margin: 0 0 4px; font-size: 1.1rem; }
.account-subtle {
  margin: 0;
  font-size: 0.81rem;
  color: var(--hc-muted);
}
.account-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 22px 24px;
}
.account-card h3 { margin: 0 0 12px; font-size: 1rem; }
.account-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.account-card-header h3 { margin-bottom: 6px; }
.company-branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.tenant-branding-form .branding-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tenant-branding-form input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  cursor: pointer;
}
.tenant-branding-form input[type="file"] {
  padding: 11px 12px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--hc-soft);
  color: var(--hc-muted);
}
.branding-import-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--hc-line);
  border-radius: 8px;
  background: var(--hc-soft);
}
.branding-import-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--hc-muted);
  font-size: 0.86rem;
}
.branding-import-result {
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 12px;
  background: var(--hc-white);
}
.branding-import-summary {
  display: grid;
  gap: 10px;
}
.branding-import-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.branding-import-fields,
.branding-import-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.branding-import-fields span,
.branding-import-color {
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--hc-soft);
  color: var(--hc-muted);
  font-size: 0.84rem;
}
.branding-import-fields strong {
  display: block;
  margin-bottom: 3px;
  color: var(--hc-ink);
}
.branding-import-color {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.branding-import-color i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--hc-line);
  flex: 0 0 auto;
}
.branding-import-color code {
  color: var(--hc-ink);
  font-size: 0.78rem;
}
.branding-import-logo-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 10px;
  background: var(--hc-white);
}
.branding-import-logo-option img {
  max-width: 110px;
  max-height: 54px;
  object-fit: contain;
}
.branding-import-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--hc-muted);
  font-size: 0.85rem;
}.tenant-branding-form input:disabled,
.tenant-branding-form button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.branding-preview {
  --branding-preview-primary: var(--hc-ink);
  --branding-preview-accent: var(--hc-saffron);
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--hc-white);
}
.branding-preview-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--branding-preview-primary);
  color: var(--hc-white);
  font-weight: 800;
}
.branding-preview-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--hc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.branding-preview-favicon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.branding-preview-body {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
}
.branding-preview-logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background: var(--branding-preview-primary);
  border: 3px solid var(--branding-preview-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex: 0 0 auto;
}
.branding-preview-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.branding-preview-lines {
  display: grid;
  gap: 10px;
  width: 100%;
}
.branding-preview-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--hc-line);
}
.branding-preview-lines span:first-child {
  width: 82%;
  background: var(--branding-preview-accent);
}
.branding-preview-lines span:nth-child(2) { width: 64%; }
.branding-preview-lines span:nth-child(3) { width: 44%; }
.account-export-card .panel-copy { max-width: 520px; }
.account-export-jobs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.account-export-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: var(--hc-soft);
}
.account-export-job-main {
  min-width: 0;
}
.account-export-job-title {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hc-ink);
}
.account-export-job-meta {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.account-export-job-actions {
  flex-shrink: 0;
}
.export-folder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.export-folder-path-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--hc-muted);
}
.export-folder-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.export-folder-path.is-set {
  color: var(--hc-ink);
  font-weight: 700;
}
.export-folder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .account-page { padding: 22px 18px; }
  .account-page-header { align-items: stretch; }
  .account-tabs { width: 100%; }
  .account-logout-button { width: 100%; }
  .company-branding-layout,
  .tenant-branding-form .branding-color-grid {
    grid-template-columns: 1fr;
  }
  .account-card-header,
  .account-export-job {
    align-items: stretch;
    flex-direction: column;
  }
  .account-export-job-actions .btn-secondary,
  #account-export-request-button,
  #export-folder-pick-btn {
    width: 100%;
    justify-content: center;
  }
  .export-folder-actions { width: 100%; }
}

/* ── FEEDBACK ───────────────────────────────────────────── */
.success { min-height: 1.25em; color: var(--success); font-weight: 600; font-size: 0.81rem; }
.error   { min-height: 1.25em; color: var(--danger);  font-weight: 600; font-size: 0.81rem; }

/* ── LEAFLET OVERRIDES ──────────────────────────────────── */
.leaflet-control-attribution,
.leaflet-control-zoom a { color: var(--hc-ink) !important; }

.leaflet-control-zoom a { background: rgba(255, 255, 255, 0.94) !important; }

.leaflet-popup-content-wrapper { border-radius: 8px; }

.factory-map-icon { background: transparent; border: 0; }

/* Bedrijfslocatie-marker (divIcon): klassieke pin (teardrop) met logo of beginletter. */
.location-marker-wrap { background: transparent; border: 0; }

.location-pin {
  width: 40px;
  height: 48px;
  position: relative;
}

.location-pin-head {
  position: absolute;
  top: 1px;
  left: 3px;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 6px rgba(20, 17, 11, 0.4);
  box-sizing: border-box;
  overflow: hidden;
}

.location-pin-inner {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-pin-inner img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.location-pin-inner span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.popup-title {
  margin: 0 0 4px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--hc-ink);
  font-family: var(--heading-font);
}

.popup-copy { margin: 0; color: var(--hc-muted); font-size: 0.81rem; }

code {
  font-family: var(--mono-font);
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(27, 53, 81, 0.06);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .detail-photos-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .detail-photos-grid .dpg-cell.is-hero { grid-row: 1 / span 1; grid-column: 1 / span 2; }
}

@media (max-width: 640px) {
  .sidebar { width: 60px; min-width: 60px; }
  .sidebar-brand { display: none; }
  .sidebar-brand-mark { display: grid; }
  .nav-group-label { display: none; }
  .nav-item { justify-content: center; padding: 0; gap: 0; font-size: 0; }
  .nav-item .nav-label { display: none; }
  .sidebar-user { padding: 12px 0; justify-content: center; }
  .sidebar-user-info { display: none; }

  .topbar { padding: 0 14px; }
  .projects-toolbar { padding: 10px 14px; flex-wrap: wrap; }
  .filter-overlay { top: 96px; left: 12px; }
  #list-view { padding: 64px 14px 20px; }
  .list-row { grid-template-columns: 1fr; gap: 6px; }
  .list-row > div { width: 100%; }
  .list-cell-status { justify-content: flex-start; }

  .detail-header-block { padding: 16px 14px 12px; }
  .detail-body { padding: 14px; }
.detail-photos-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ADMIN PAGES ─────────────────────────────────────────── */
.admin-page {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.admin-page-header,
.admin-card-header,
.management-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Bedrijfslocatie: logo-identiteit op de beheerkaart. Boven uitlijnen zodat logo,
   naam en actie-iconen op dezelfde lijn beginnen (ook bij een adres van 2 regels). */
.management-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.management-card-identity > div {
  min-width: 0;
}

.location-logo-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hc-bone, #f4efe7);
  border: 1px solid var(--hc-line);
}

.location-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.location-logo-thumb.is-empty {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-color: transparent;
}

.admin-page-header h2,
.admin-card-header h3,
.management-card-header h3 {
  margin: 0 0 6px;
  color: var(--hc-ink);
}

.admin-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.management-grid,
.role-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.management-card,
.role-guide-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.management-card-copy {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.management-card-subtitle {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.management-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.management-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.user-row-main,
.user-row-detail {
  min-width: 0;
}

.user-row-identity h3 {
  margin: 0 0 4px;
  color: var(--hc-ink);
}

.user-row-identity p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.88rem;
}

.user-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-row-actions {
  justify-content: flex-end;
}

.role-guide-card-shell {
  padding: 0;
  overflow: hidden;
}

.role-guide-disclosure summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
}

.role-guide-disclosure summary::-webkit-details-marker {
  display: none;
}

.role-guide-disclosure summary strong {
  display: block;
  color: var(--hc-ink);
}

.role-guide-disclosure summary small {
  display: block;
  margin-top: 4px;
  color: var(--hc-muted);
}

.role-guide-chevron {
  display: inline-flex;
  color: var(--hc-muted);
  transition: transform 160ms ease;
}

.role-guide-disclosure[open] .role-guide-chevron {
  transform: rotate(180deg);
}

.role-guide-disclosure .role-guide-grid {
  padding: 0 24px 24px;
}

.role-badge,
.status-badge,
.company-pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.role-badge,
.status-badge,
.company-pill {
  padding: 8px 10px;
}

.meta-chip {
  padding: 7px 10px;
  border: 1px solid rgba(20, 17, 11, 0.1);
  background: rgba(20, 17, 11, 0.04);
  color: var(--hc-ink);
}

.role-badge.is-owner { background: rgba(226, 111, 44, 0.16); color: var(--hc-co-holcon); }
.role-badge.is-admin { background: rgba(20, 17, 11, 0.12); color: var(--hc-navy-deep); }
.role-badge.is-user { background: rgba(172, 189, 21, 0.18); color: #516000; }
.role-badge.is-viewer { background: rgba(20, 17, 11, 0.08); color: var(--hc-muted); }

.status-badge.is-active { background: rgba(52, 111, 61, 0.14); color: #2f6c39; }
.status-badge.is-invited { background: rgba(201, 140, 24, 0.14); color: #9a6610; }
.status-badge.is-paused { background: rgba(168, 47, 47, 0.12); color: #8f2f2f; }

.company-pill.is-holcon,
.company-pill.is-bisoton,
.company-pill.is-durison,
.company-pill.is-flowskraft { background: rgba(226, 111, 44, 0.14); color: #A2461A; }

.meta-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.permission-list {
  margin: 0;
  padding-left: 18px;
  color: var(--hc-ink);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cdc-action-btn.is-danger:hover {
  background: rgba(168, 47, 47, 0.08);
  color: #8f2f2f;
}


@media (max-width: 900px) {
  .user-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .user-row-actions {
    justify-content: flex-start;
  }
}
