:root {
  --pp-ink: #121212;
  --pp-sidebar: #1a1d24;
  --pp-sidebar-hover: #242833;
  --pp-sidebar-border: #2b2f38;
  --pp-coral: #ef999f;
  --pp-coral-strong: #d9707a;
  --pp-coral-tint: #fdeef0;
  --pp-sage: #a6c6b9;
  --pp-sage-strong: #6f9c8a;
  --pp-sage-tint: #eaf3ef;
  --pp-bg: #f6f6f7;
  --pp-surface: #ffffff;
  --pp-border: #e6e5e4;
  --pp-text: #1a1d24;
  --pp-text-muted: #6b7078;
  --pp-sidebar-text: #d3d6db;
  --pp-sidebar-text-muted: #888e99;

  --font-brand: 'Comfortaa', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 1px 2px rgba(18, 18, 18, 0.04), 0 8px 24px rgba(18, 18, 18, 0.06);
  --sidebar-width: 264px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--pp-bg);
  color: var(--pp-text);
  font-family: var(--font-body);
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- App shell ---------- */

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

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--pp-sidebar);
  color: var(--pp-sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--pp-sidebar-border);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.brand-name .amp {
  color: var(--pp-coral);
}

.brand-sub {
  font-family: var(--font-brand);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--pp-sage);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pp-sidebar-text-muted);
  padding: 8px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pp-sidebar-text);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--pp-sidebar-text-muted);
}

.nav-item:hover {
  background: var(--pp-sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background: var(--pp-sidebar-hover);
  color: #ffffff;
  border-left-color: var(--pp-coral);
}

.nav-item.active i {
  color: var(--pp-coral);
}

.nav-item.is-disabled {
  cursor: default;
  opacity: 0.5;
}

.nav-item.is-disabled:hover {
  background: transparent;
  color: var(--pp-sidebar-text);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(166, 198, 185, 0.16);
  color: var(--pp-sage);
}

.sidebar-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--pp-sidebar-border);
  font-size: 0.75rem;
  color: var(--pp-sidebar-text-muted);
}

/* ---------- Main area ---------- */

.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 68px;
  background: var(--pp-surface);
  border-bottom: 1px solid var(--pp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pp-text);
}

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pp-coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.72rem;
}

.user-chip-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-text);
}

.content {
  padding: 32px;
  flex: 1;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pp-text);
  margin: 0 0 6px;
}

.page-heading p {
  color: var(--pp-text-muted);
  margin: 0;
  max-width: 640px;
}

/* ---------- Cards ---------- */

.pp-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.pp-card-icon.coral {
  background: var(--pp-coral-tint);
  color: var(--pp-coral-strong);
}

.pp-card-icon.sage {
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
}

.pp-card-icon.ink {
  background: rgba(18, 18, 18, 0.06);
  color: var(--pp-ink);
}

.pp-card h5 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--pp-text);
}

.pp-card p {
  color: var(--pp-text-muted);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}

.pp-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.pp-pill.soon {
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
}

.pp-pill.active {
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
}

.pp-pill.inactive {
  background: var(--pp-coral-tint);
  color: var(--pp-coral-strong);
}

.pp-pill.role-admin {
  background: rgba(18, 18, 18, 0.08);
  color: var(--pp-ink);
}

.pp-pill.role-user {
  background: #eef1f5;
  color: #4b5563;
}

/* ---------- Auth (login) ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(239, 153, 159, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(166, 198, 185, 0.14), transparent 45%),
    var(--pp-sidebar);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--pp-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 40px 36px 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.auth-brand .brand-name {
  color: var(--pp-text);
  font-size: 1.15rem;
}

.auth-brand .brand-sub {
  color: var(--pp-sage-strong);
}

.auth-card h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--pp-text);
}

.auth-card .auth-subtitle {
  color: var(--pp-text-muted);
  font-size: 0.88rem;
  margin: 0 0 24px;
}

.pp-field {
  margin-bottom: 18px;
}

.pp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-text);
  margin-bottom: 6px;
}

.pp-field .form-control {
  border-radius: var(--radius-md);
  border: 1px solid var(--pp-border);
  padding: 10px 14px;
  font-size: 0.92rem;
}

.pp-field .form-control:focus {
  border-color: var(--pp-coral);
  box-shadow: 0 0 0 3px rgba(239, 153, 159, 0.25);
}

.pp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--pp-text-muted);
  margin-bottom: 20px;
}

.pp-alert {
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.pp-alert.error {
  background: var(--pp-coral-tint);
  color: #a83f4a;
  border: 1px solid rgba(217, 112, 122, 0.25);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--pp-text-muted);
}

/* ---------- Buttons ---------- */

.btn-brand {
  background: var(--pp-coral-strong);
  border: 1px solid var(--pp-coral-strong);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn-brand:hover {
  background: #c85a65;
  border-color: #c85a65;
  color: #fff;
}

.btn-brand:active {
  transform: translateY(1px);
}

.btn-brand.w-100 {
  width: 100%;
}

.btn-outline-brand {
  background: transparent;
  border: 1px solid var(--pp-border);
  color: var(--pp-text);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-outline-brand:hover {
  border-color: var(--pp-coral);
  color: var(--pp-coral-strong);
}

.btn-ghost-danger {
  background: transparent;
  border: 1px solid var(--pp-border);
  color: #a83f4a;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-ghost-danger:hover {
  background: var(--pp-coral-tint);
  border-color: rgba(217, 112, 122, 0.3);
}

/* ---------- Admin: table ---------- */

.pp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pp-table-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
}

.pp-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pp-text-muted);
  font-weight: 600;
  padding: 14px 20px;
  background: var(--pp-bg);
  border-bottom: 1px solid var(--pp-border);
}

.pp-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--pp-text);
  border-bottom: 1px solid var(--pp-border);
  vertical-align: middle;
}

.pp-table tr:last-child td {
  border-bottom: none;
}

.pp-table tr:hover td {
  background: rgba(18, 18, 18, 0.015);
}

.pp-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pp-sidebar-hover);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pp-perm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-perm-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
}

.pp-perm-chip.off {
  background: #f1f1f2;
  color: #a3a7ae;
}

.pp-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- Admin: modal & forms ---------- */

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  border-bottom: 1px solid var(--pp-border);
  padding: 20px 24px;
}

.modal-header .modal-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pp-text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid var(--pp-border);
  padding: 16px 24px;
}

.pp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pp-form-grid .pp-field {
  margin-bottom: 0;
}

.pp-perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--pp-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--pp-border);
}

.pp-perm-grid .form-check {
  font-size: 0.85rem;
}

.pp-form-check-input:checked {
  background-color: var(--pp-coral-strong);
  border-color: var(--pp-coral-strong);
}

.section-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  max-width: 640px;
}

.section-card h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
}

.section-card .section-desc {
  color: var(--pp-text-muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

/* ---------- Bestanden ---------- */

.pp-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--pp-text-muted);
}

.pp-crumbs a {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--pp-text-muted);
  font-weight: 500;
}

.pp-crumbs a:hover {
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
}

.pp-crumbs .current {
  padding: 4px 8px;
  color: var(--pp-text);
  font-weight: 600;
}

.pp-crumbs .sep {
  font-size: 0.7rem;
  opacity: 0.6;
}

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

.pp-search {
  position: relative;
}

.pp-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pp-text-muted);
  font-size: 0.85rem;
}

.pp-search .form-control {
  padding-left: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--pp-border);
  font-size: 0.88rem;
  min-width: 220px;
}

.pp-search .form-control:focus {
  border-color: var(--pp-sage-strong);
  box-shadow: 0 0 0 3px var(--pp-sage-tint);
}

.pp-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pp-text-muted);
  font-weight: 600;
  margin: 24px 0 10px;
}

.pp-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.pp-folder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, transform 0.15s;
}

.pp-folder:hover {
  border-color: var(--pp-sage);
  transform: translateY(-1px);
}

.pp-folder.drop-target {
  border-color: var(--pp-coral-strong);
  background: var(--pp-coral-tint);
}

.pp-folder-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pp-sage-tint);
  color: var(--pp-sage-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pp-folder-body {
  min-width: 0;
  flex: 1;
}

.pp-folder-link {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-folder-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.pp-folder-meta {
  font-size: 0.76rem;
  color: var(--pp-text-muted);
  margin-top: 2px;
}

.pp-folder-menu {
  position: relative;
  z-index: 2;
}

.pp-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--pp-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pp-icon-btn:hover {
  background: var(--pp-bg);
  color: var(--pp-text);
}

.dropdown-menu {
  border-radius: var(--radius-md);
  border: 1px solid var(--pp-border);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  padding: 6px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 7px 10px;
}

.dropdown-item i {
  width: 18px;
  margin-right: 6px;
  color: var(--pp-text-muted);
}

.dropdown-item.danger,
.dropdown-item.danger i {
  color: var(--pp-coral-strong);
}

.pp-file-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pp-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pp-coral-tint);
  color: var(--pp-coral-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-file-name {
  font-weight: 600;
  word-break: break-word;
}

.pp-file-loc {
  font-size: 0.76rem;
  color: var(--pp-text-muted);
}

.pp-ext {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f1f2;
  color: var(--pp-text-muted);
}

.pp-dropzone {
  border: 2px dashed var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  color: var(--pp-text-muted);
  font-size: 0.88rem;
  background: var(--pp-surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pp-dropzone i {
  font-size: 1.6rem;
  color: var(--pp-sage-strong);
  display: block;
  margin-bottom: 4px;
}

.pp-dropzone small {
  display: block;
  margin-top: 2px;
  opacity: 0.8;
}

.pp-dropzone:hover,
.pp-dropzone.dragover {
  border-color: var(--pp-coral-strong);
  background: var(--pp-coral-tint);
  color: var(--pp-coral-strong);
}

.pp-upload-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-upload-item {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
}

.pp-upload-item .row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pp-upload-item .state {
  color: var(--pp-text-muted);
  white-space: nowrap;
}

.pp-upload-item.done .state {
  color: var(--pp-sage-strong);
}

.pp-upload-item.error .state {
  color: var(--pp-coral-strong);
}

.pp-progress {
  height: 4px;
  background: var(--pp-bg);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.pp-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pp-sage-strong);
  transition: width 0.1s;
}

.pp-upload-item.error .pp-progress span {
  background: var(--pp-coral-strong);
}

.pp-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--pp-text-muted);
  font-size: 0.9rem;
}

.pp-empty i {
  display: block;
  font-size: 2rem;
  color: var(--pp-sage);
  margin-bottom: 8px;
}

.pp-viewer {
  height: 460px;
  background: radial-gradient(circle at 50% 35%, #2b2f38, #1a1d24);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
}

.pp-viewer-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pp-sidebar-text);
  font-size: 0.88rem;
  pointer-events: none;
}

.pp-viewer-hint {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 0.74rem;
  color: var(--pp-sidebar-text-muted);
}

.pp-modal-footer-note {
  font-size: 0.8rem;
  color: var(--pp-text-muted);
}

.pp-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--pp-border);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .pp-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pp-toolbar-actions {
    flex-wrap: wrap;
  }
  .pp-search .form-control {
    min-width: 0;
    width: 100%;
  }
}

.pp-est {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pp-text-muted);
  margin-top: 2px;
}

.pp-est.exact {
  color: var(--pp-sage-strong);
}

.pp-file-loc .pp-ext {
  margin-right: 4px;
  padding: 1px 6px;
}

.pp-file-icon.model { background: var(--pp-coral-tint); color: var(--pp-coral-strong); }
.pp-file-icon.doc { background: #eef1f7; color: #5b6b8c; }
.pp-file-icon.image { background: var(--pp-sage-tint); color: var(--pp-sage-strong); }
.pp-file-icon.other { background: #f1f1f2; color: var(--pp-text-muted); }

.pp-image-view {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: var(--pp-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.pp-image-view img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
}

.pp-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--pp-border);
  background: #fff;
  flex-shrink: 0;
}

.pp-viewer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.pp-thumb-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--pp-border);
}

.pp-thumb-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 2px solid var(--pp-border);
  border-radius: 10px;
  background: var(--pp-bg);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pp-text-muted);
  font-size: 1.3rem;
}

.pp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-thumb-btn.active {
  border-color: var(--pp-coral-strong);
  color: var(--pp-coral-strong);
}

.pp-upload-list {
  max-height: 300px;
  overflow-y: auto;
}

.pp-upload-item.skipped {
  opacity: 0.55;
}

.pp-energy-box {
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.pp-thumb-btn {
  position: relative;
}

.pp-thumb-num {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(26, 29, 36, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ---------- Kanban (opdrachten) ---------- */

.kb-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
}

.kb-col {
  background: rgba(18, 18, 18, 0.035);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
}

.kb-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 8px;
}

.kb-mascot {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--pp-surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.kb-mascot svg { width: 100%; height: 100%; }

.kb-col-title { flex: 1; min-width: 0; line-height: 1.2; }
.kb-col-title strong { display: block; font-family: var(--font-brand); font-size: 0.92rem; }
.kb-col-title small { color: var(--pp-text-muted); font-size: 0.74rem; }

.kb-count {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
}

.tone-coral { border-top: 3px solid var(--pp-coral); }
.tone-ink   { border-top: 3px solid var(--pp-ink); }
.tone-sage  { border-top: 3px solid var(--pp-sage); }
.tone-done  { border-top: 3px solid var(--pp-sage-strong); }
.tone-coral .kb-count { background: var(--pp-coral-tint); color: var(--pp-coral-strong); }
.tone-sage .kb-count, .tone-done .kb-count { background: var(--pp-sage-tint); color: var(--pp-sage-strong); }

.kb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.kb-list.drag-over { background: rgba(239, 153, 159, 0.12); }

.kb-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-left: 4px solid var(--pp-border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05);
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kb-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.kb-card.dragging { opacity: 0.4; cursor: grabbing; }
.kb-card.prio-hoog { border-left-color: var(--pp-coral-strong); }
.kb-card.prio-normaal { border-left-color: var(--pp-sage); }
.kb-card.prio-laag { border-left-color: var(--pp-border); }

.kb-card-top { display: flex; align-items: flex-start; gap: 10px; }

.kb-figure {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--pp-sage-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--pp-sage-strong);
}

.kb-card-main { flex: 1; min-width: 0; }
.kb-card-title { font-weight: 600; font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.kb-card-client { color: var(--pp-text-muted); font-size: 0.78rem; margin-top: 2px; }
.kb-flag { color: var(--pp-coral-strong); font-size: 0.95rem; }

.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.kb-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
  color: var(--pp-text);
}

.kb-chip.soon { background: #fff3d6; color: #8a6414; }
.kb-chip.late { background: var(--pp-coral-tint); color: #a83f4a; }

.kb-card-notes {
  font-size: 0.78rem;
  color: var(--pp-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kb-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--pp-border);
  padding-top: 8px;
}

.kb-card-actions button {
  border: none;
  background: transparent;
  color: var(--pp-text-muted);
  width: 30px;
  height: 28px;
  border-radius: 8px;
}

.kb-card-actions button:hover { background: var(--pp-coral-tint); color: var(--pp-coral-strong); }

.kb-empty {
  text-align: center;
  color: var(--pp-text-muted);
  font-size: 0.8rem;
  border: 2px dashed var(--pp-border);
  border-radius: var(--radius-md);
  padding: 22px 12px;
}

.kb-drop-line { height: 4px; border-radius: 4px; background: var(--pp-coral); margin: -3px 0; }

.kb-add {
  border: 1px dashed var(--pp-border);
  background: transparent;
  color: var(--pp-text-muted);
  border-radius: var(--radius-md);
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.kb-add:hover { border-color: var(--pp-coral); color: var(--pp-coral-strong); background: var(--pp-surface); }

.kb-emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }

.kb-emoji-pick button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  font-size: 1.2rem;
  color: var(--pp-text-muted);
}

.kb-emoji-pick button:hover { border-color: var(--pp-coral); }
.kb-emoji-pick button.active { border-color: var(--pp-coral-strong); background: var(--pp-coral-tint); }

.kb-error {
  margin-top: 14px;
  background: var(--pp-coral-tint);
  color: #a83f4a;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* ---------- Printplanning: hero, stats, voorbereiding ---------- */

.kb-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kb-hero h1 { font-family: var(--font-brand); font-weight: 700; font-size: 1.6rem; margin: 0 0 4px; }
.kb-hero p { margin: 0; color: var(--pp-text-muted); font-size: 0.92rem; max-width: 640px; }
.kb-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.kb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kb-stat {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kb-stat-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.kb-stat strong { font-family: var(--font-brand); font-size: 1.5rem; line-height: 1; display: block; }
.kb-stat span:not(.kb-stat-icon) { font-size: 0.82rem; font-weight: 600; display: block; margin-top: 3px; }
.kb-stat small { color: var(--pp-text-muted); font-size: 0.72rem; }
.kb-stat.coral .kb-stat-icon { background: var(--pp-coral-tint); color: var(--pp-coral-strong); }
.kb-stat.ink .kb-stat-icon { background: rgba(18, 18, 18, 0.07); color: var(--pp-ink); }
.kb-stat.sage .kb-stat-icon { background: var(--pp-sage-tint); color: var(--pp-sage-strong); }
.kb-stat.alert { border-color: rgba(217, 112, 122, 0.45); }
.kb-stat.alert .kb-stat-icon { background: var(--pp-coral-strong); color: #fff; }

.kb-prep {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  overflow: hidden;
}

.kb-prep-toggle {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, var(--pp-coral-tint), var(--pp-sage-tint));
  border: none;
  padding: 12px 18px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pp-text);
  text-align: left;
}
.kb-prep-toggle small { font-family: var(--font-body); font-weight: 500; color: var(--pp-text-muted); margin-left: 6px; }
.kb-prep-toggle i:first-child, .kb-prep-toggle span i { color: var(--pp-coral-strong); margin-right: 6px; }
.kb-chev { transition: transform 0.2s ease; }
.kb-prep.closed .kb-chev { transform: rotate(180deg); }
.kb-prep.closed .kb-prep-body { display: none; }

.kb-prep-body { padding: 18px; }
.kb-prep-empty { color: var(--pp-text-muted); font-size: 0.88rem; text-align: center; padding: 8px; }
.kb-prep-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.kb-prep-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--pp-text-muted); margin-bottom: 10px;
}

.kb-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kb-next li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--pp-border); border-radius: var(--radius-md);
  padding: 8px 10px;
}
.kb-next li:first-child { border-color: var(--pp-coral); background: var(--pp-coral-tint); }
.kb-next-n {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--pp-ink); color: #fff; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.kb-next li:first-child .kb-next-n { background: var(--pp-coral-strong); }
.kb-next-fig { font-size: 1.3rem; width: 28px; text-align: center; color: var(--pp-sage-strong); }
.kb-next-txt { flex: 1; min-width: 0; line-height: 1.25; }
.kb-next-txt strong { display: block; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-next-txt small { color: var(--pp-text-muted); font-size: 0.74rem; }
.kb-start {
  border: none; background: var(--pp-ink); color: #fff; font-size: 0.75rem; font-weight: 600;
  border-radius: 999px; padding: 5px 12px;
}
.kb-start:hover { background: var(--pp-coral-strong); }

.kb-mats { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kb-mats li { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.kb-mats li i { font-size: 0.6rem; color: var(--pp-sage-strong); }
.kb-mats li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-mats li small { color: var(--pp-text-muted); font-size: 0.72rem; }
.kb-sorts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.kb-sorts button { text-align: left; }
.kb-tip {
  font-size: 0.76rem; color: var(--pp-text-muted); background: var(--pp-bg);
  border-radius: var(--radius-md); padding: 8px 10px;
}
.kb-tip i { color: #c9962b; margin-right: 4px; }

/* ---------- Printplanning: bord ---------- */

.kb-col { background: #efefef; border-top-width: 4px; }
.kb-col-head { padding: 4px 4px 10px; }
.kb-mascot { transition: transform 0.25s ease; }
.kb-col:hover .kb-mascot { transform: rotate(-6deg) scale(1.06); }

.kb-card { padding: 12px 12px 8px; }
.kb-grip { color: #c4c4c4; font-size: 1.05rem; margin-right: -4px; }
.kb-card:hover .kb-grip { color: var(--pp-coral-strong); }
.kb-figure { position: relative; }
.kb-rank {
  position: absolute; top: -6px; left: -6px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--pp-ink); color: #fff; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--pp-surface);
}
.kb-col[data-status="binnen"] .kb-card:first-child .kb-rank { background: var(--pp-coral-strong); }
.kb-chip.mat i { font-size: 0.5rem; color: var(--pp-sage-strong); vertical-align: middle; }

.kb-ghost { opacity: 0.35; background: var(--pp-coral-tint); border-style: dashed; }
.kb-chosen { box-shadow: 0 12px 28px rgba(18, 18, 18, 0.2); }
.kb-drag { transform: rotate(2.5deg); }

.kb-empty span { display: block; font-size: 1.7rem; margin-bottom: 4px; }
.kb-more {
  border: none; background: transparent; color: var(--pp-text-muted);
  font-size: 0.78rem; font-weight: 600; padding: 2px;
}
.kb-more:hover { color: var(--pp-coral-strong); }

.kb-confetti {
  position: fixed; width: 9px; height: 9px; border-radius: 2px; z-index: 2000; pointer-events: none;
  animation: kb-pop 0.95s ease-out forwards;
}
@keyframes kb-pop {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

@media (max-width: 1100px) {
  .kb-prep-grid { grid-template-columns: 1fr; }
}

/* Kolommen exact even breed en even hoog */
.kb-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.kb-col { min-width: 250px; }
.kb-board { overflow-x: auto; }
.kb-list { flex: 1; }
.kb-col-head { min-height: 58px; }
.kb-col-title strong { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .kb-board { grid-template-columns: repeat(4, 260px); }
}

.kb-chip.shop { background: var(--pp-sage-tint); color: var(--pp-sage-strong); }
.kb-chip.shop:hover { background: var(--pp-sage); color: var(--pp-ink); }

.pp-flash {
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.pp-flash.ok { background: var(--pp-sage-tint); color: #3f6b59; }
.pp-flash.err { background: var(--pp-coral-tint); color: #a83f4a; }

.pp-secret-state {
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--pp-border);
}
.pp-secret-state.ok { background: var(--pp-sage-tint); color: #3f6b59; }
.pp-secret-state.err { background: var(--pp-coral-tint); color: #a83f4a; }

/* ---------- Herkomst (WhatsApp / Instagram / Aanvraag / Shopify) ---------- */

.kb-chip.src { display: inline-flex; align-items: center; gap: 4px; }
.kb-chip.src-whatsapp,  .kb-filter.src-whatsapp.active,  .kb-via .src-whatsapp.active  { background: #dff5e6; color: #1b7a43; }
.kb-chip.src-instagram, .kb-filter.src-instagram.active, .kb-via .src-instagram.active { background: #fbe3ef; color: #b02a73; }
.kb-chip.src-aanvraag,  .kb-filter.src-aanvraag.active,  .kb-via .src-aanvraag.active  { background: #e2ebfb; color: #35589f; }
.kb-chip.src-shopify,   .kb-filter.src-shopify.active,   .kb-via .src-shopify.active   { background: var(--pp-sage-tint); color: #4f7c6a; }

/* gekleurde bovenrand op de kaart per herkomst */
.kb-card.has-src { border-top: 3px solid transparent; }
.kb-card.src-whatsapp  { border-top-color: #4cc27b; }
.kb-card.src-instagram { border-top-color: #d9569b; }
.kb-card.src-aanvraag  { border-top-color: #5a86d6; }
.kb-card.src-shopify   { border-top-color: var(--pp-sage-strong); }

.kb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.kb-filter-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--pp-text-muted); margin-right: 2px; }
.kb-filter {
  border: 1px solid var(--pp-border); background: var(--pp-surface); color: var(--pp-text);
  border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600;
}
.kb-filter b { font-weight: 700; opacity: 0.7; margin-left: 2px; }
.kb-filter:hover { border-color: var(--pp-coral); }
.kb-filter.active { border-color: transparent; background: var(--pp-ink); color: #fff; }

.kb-via { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-via button {
  border: 1px solid var(--pp-border); background: var(--pp-surface); color: var(--pp-text);
  border-radius: var(--radius-md); padding: 9px 14px; font-size: 0.86rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.kb-via button:hover { border-color: var(--pp-coral); }
.kb-via button.active { border-color: currentColor; box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.05); }

/* ===== Ideeënbox ===== */
.id-capture {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.id-capture-unicorn { width: 56px; height: 56px; flex-shrink: 0; animation: id-float 4s ease-in-out infinite; }
.id-capture-main { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.id-capture-row { display: flex; gap: 10px; }
.id-capture-row .form-control { font-size: 1rem; padding: 11px 14px; border-radius: var(--radius-md); }
.id-types { display: flex; flex-wrap: wrap; gap: 6px; }
.id-type {
  border: 1px solid var(--pp-border);
  background: var(--pp-bg);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.id-type:hover { border-color: var(--pp-coral); }
.id-type.active { background: var(--pp-coral-tint); border-color: var(--pp-coral-strong); color: #a83f4a; }
.id-saved { color: var(--pp-sage-strong); font-size: 0.82rem; font-weight: 600; min-height: 1.1em; }

.id-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.id-toolbar .kb-filter-label { margin-right: 2px; }

.id-fig { font-size: 1.45rem; line-height: 1; width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--pp-bg); border-radius: var(--radius-md); }
.id-star { border: 0; background: transparent; color: #c9c9cc; font-size: 1.05rem; padding: 2px 4px; cursor: pointer; transition: transform 0.15s ease, color 0.15s ease; }
.id-star:hover { color: var(--pp-coral); transform: scale(1.15); }
.id-star.on { color: var(--pp-coral-strong); }
.kb-card.id-fav { box-shadow: 0 0 0 2px var(--pp-coral) inset; }
.kb-card.id-spot { animation: id-spot 1.6s ease 2; }
.id-card-notes { color: var(--pp-text-muted); font-size: 0.8rem; margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.id-type-pick { display: flex; flex-wrap: wrap; gap: 6px; }

.id-spotlight {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--pp-ink); color: #fff; border-radius: var(--radius-lg);
  padding: 12px 18px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 12px 32px rgba(18, 18, 18, 0.3); z-index: 1080; max-width: calc(100vw - 32px);
  animation: id-rise 0.3s ease;
}
.id-spotlight svg { width: 34px; height: 34px; flex-shrink: 0; }
.id-spotlight strong { display: block; font-family: var(--font-brand); }
.id-spotlight small { color: #b9bdc5; }
.id-spotlight button { border: 0; background: var(--pp-coral); color: var(--pp-ink); font-weight: 700; border-radius: 999px; padding: 6px 14px; }

@keyframes id-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes id-spot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); box-shadow: 0 0 0 4px var(--pp-coral); } }
@keyframes id-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .id-capture-unicorn, .kb-card.id-spot, .id-spotlight { animation: none; } }

/* Ideeënbox v2: kaartjesmuur */
.id-capture-row { align-items: center; }
.id-emoji-btn { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md); border: 1px solid var(--pp-border); background: var(--pp-bg); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.id-emoji-btn:hover { border-color: var(--pp-coral); }
.id-emoji-btn.pop { animation: id-pop 0.25s ease; }
@keyframes id-pop { 50% { transform: scale(1.25) rotate(-8deg); } }

.id-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.id-tab { border: 1px solid var(--pp-border); background: var(--pp-surface); border-radius: 999px; padding: 9px 18px; font-family: var(--font-brand); font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all 0.15s ease; }
.id-tab b { font-family: var(--font-body); font-size: 0.75rem; background: var(--pp-bg); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.id-tab:hover { border-color: var(--pp-coral); }
.id-tab.active { background: var(--pp-ink); border-color: var(--pp-ink); color: #fff; }
.id-tab.active b { background: var(--pp-coral); color: var(--pp-ink); }
.id-tab-sep { flex: 1; }
.id-chip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--pp-border); background: var(--pp-surface); font-size: 1.05rem; cursor: pointer; transition: all 0.15s ease; }
.id-chip:hover { transform: scale(1.1); }
.id-chip.active { background: var(--pp-coral-tint); border-color: var(--pp-coral-strong); }

.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ib-card { --tint: #f1f1f2; background: var(--tint); border: 1px solid rgba(18,18,18,0.06); border-radius: var(--radius-lg); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; animation: id-in 0.3s ease backwards; }
.ib-card:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--shadow-soft); }
.ib-card.leaving { opacity: 0; transform: scale(0.92); }
.ib-card.is-new { animation: id-spot 1.6s ease 2; }
.ib-card.t-foto { --tint: #fdeef0; } .ib-card.t-reel { --tint: #eaf3ef; } .ib-card.t-story { --tint: #efe9fb; }
.ib-card.t-post { --tint: #fff3d6; } .ib-card.t-product { --tint: #e3f0fa; }
.ib-card header { display: flex; justify-content: space-between; align-items: center; }
.ib-emoji { font-size: 1.7rem; line-height: 1; }
.ib-heart { border: 0; background: transparent; color: rgba(18,18,18,0.35); font-size: 1.1rem; cursor: pointer; transition: transform 0.15s ease; }
.ib-heart:hover { transform: scale(1.2); color: var(--pp-coral-strong); }
.ib-heart.on { color: var(--pp-coral-strong); }
.ib-title { font-family: var(--font-brand); font-weight: 700; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.ib-notes { font-size: 0.82rem; color: rgba(18,18,18,0.65); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ib-card footer { margin-top: auto; display: flex; gap: 6px; align-items: center; padding-top: 6px; }
.ib-card footer button { border: 0; border-radius: 999px; background: rgba(255,255,255,0.7); width: 34px; height: 34px; cursor: pointer; transition: all 0.15s ease; }
.ib-card footer button:hover { background: #fff; }
.ib-card footer .ib-go { margin-left: auto; width: auto; padding: 0 16px; background: var(--pp-ink); color: #fff; font-weight: 700; font-size: 0.85rem; }
.ib-card footer .ib-go:hover { background: var(--pp-coral-strong); }
.ib-card.is-fav { box-shadow: 0 0 0 2px var(--pp-coral-strong) inset; }

.id-empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--pp-text-muted); }
.id-empty-u svg { width: 90px; height: 90px; animation: id-float 4s ease-in-out infinite; }
.id-empty p { margin: 8px 0 0; font-size: 0.95rem; }
@keyframes id-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) { .id-tab { padding: 8px 12px; font-size: 0.85rem; } .id-tab-sep { flex-basis: 100%; height: 0; } }
@media (prefers-reduced-motion: reduce) { .ib-card, .id-empty-u svg { animation: none; } }

/* Joy's Sprankelhoek v3 */
.id-capture-label { font-family: var(--font-brand); font-weight: 700; font-size: 1.05rem; margin: 0; }
.id-capture-row { align-items: flex-end; }
.id-capture-row textarea.form-control { resize: none; min-height: 46px; line-height: 1.35; }
.id-mic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--pp-border); background: var(--pp-sage-tint); color: var(--pp-sage-strong); font-size: 1.15rem; cursor: pointer; transition: all 0.15s ease; }
.id-mic:hover { background: var(--pp-sage); color: var(--pp-ink); }
.id-mic.on { background: var(--pp-coral-strong); color: #fff; border-color: var(--pp-coral-strong); animation: id-pulse 1.1s ease infinite; }
@keyframes id-pulse { 50% { box-shadow: 0 0 0 8px rgba(217, 112, 122, 0.2); } }

.id-today { background: #fff8e3; border: 1px solid #f3e2a8; border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 14px; }
.id-today-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.id-today-head strong { font-family: var(--font-brand); }
.id-today-head small { color: var(--pp-text-muted); }
.id-sun { font-size: 1.2rem; }
.id-today-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.id-today-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-md); padding: 8px 10px; box-shadow: 0 1px 2px rgba(18,18,18,0.06); }
.id-today-fig { font-size: 1.3rem; }
.id-today-txt { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.id-today-item button { border: 0; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; flex-shrink: 0; transition: all 0.15s ease; }
.id-today-done { background: var(--pp-sage-tint); color: var(--pp-sage-strong); }
.id-today-done:hover { background: var(--pp-sage-strong); color: #fff; transform: scale(1.1); }
.id-today-x { background: transparent; color: var(--pp-text-muted); font-size: 0.75rem; }
.id-today-x:hover { background: var(--pp-bg); }
.id-today-empty { color: var(--pp-text-muted); font-size: 0.88rem; padding: 4px 0; }

.id-sunbtn { border: 0; background: transparent; font-size: 1.05rem; line-height: 1; padding: 2px 4px; cursor: pointer; filter: grayscale(1) opacity(0.45); transition: all 0.15s ease; }
.id-sunbtn:hover { filter: none; transform: scale(1.2) rotate(15deg); }
.id-sunbtn.on { filter: none; }
.kb-card.id-sunny { box-shadow: 0 0 0 2px #f5d97a inset; background: #fffdf3; }

/* Gedeelde typografie Werkbank + Joyce's Sprankelhoek (beide gebruiken de kb-* bouwstenen) */
.kb-hero h1 { font-size: 1.85rem; }
.kb-hero p { font-size: 0.98rem; }
.kb-col-title strong { font-size: 1rem; }
.kb-col-title small { font-size: 0.78rem; }
.kb-card-title { font-family: var(--font-brand); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.kb-card-client { font-size: 0.82rem; }
.kb-card-notes, .id-card-notes { font-size: 0.84rem; }
.kb-chip { font-size: 0.76rem; padding: 3px 9px; }
.kb-stat strong { font-size: 1.65rem; }
.kb-stat span:not(.kb-stat-icon) { font-size: 0.88rem; }
.kb-add, .kb-more { font-size: 0.86rem; }
.kb-prep-toggle { font-size: 1rem; }
.kb-next-txt strong { font-size: 0.92rem; }
.kb-next-txt small { font-size: 0.78rem; }
.kb-prep-label { font-size: 0.72rem; }
.id-capture-label { font-size: 1.05rem; }

/* ===== Wereld-schakelaar: Print&Play <-> Thuis ===== */
.ws-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 14px 16px 0; padding: 4px;
  background: rgba(255, 255, 255, 0.06); border-radius: 999px;
}
.ws-opt {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; border-radius: 999px;
  font-family: var(--font-brand); font-weight: 700; font-size: 0.8rem;
  color: var(--pp-sidebar-text-muted); transition: all 0.2s ease; white-space: nowrap;
}
.ws-opt:hover { color: #fff; }
.ws-opt.active { color: var(--pp-ink); }
.ws-opt-pp.active { background: #ef999f; }
.ws-opt-thuis.active { background: #b9a7e8; }

/* Thuis krijgt een eigen kleur: alles wat koraal is, wordt lila */
body.ws-thuis {
  --pp-coral: #b9a7e8;
  --pp-coral-strong: #8f77d6;
  --pp-coral-tint: #f1ecfc;
}
body.ws-thuis .btn-brand:hover { background: #7a62c4; border-color: #7a62c4; }

/* Toegang beheren (Instellingen): personen links, schakelaars rechts */
.section-card.wide { max-width: none; }
.acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.acc-users { display: flex; flex-direction: column; gap: 6px; }
.acc-user { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--pp-border); background: var(--pp-surface); border-radius: var(--radius-md); padding: 10px 12px; cursor: pointer; transition: all 0.15s ease; }
.acc-user:hover { border-color: var(--pp-coral); }
.acc-user.active { background: var(--pp-bg); border-color: var(--pp-ink); box-shadow: 0 0 0 1px var(--pp-ink) inset; }
.acc-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--pp-ink); color: #fff; font-weight: 700; font-size: 0.85rem; }
.acc-avatar.big { width: 46px; height: 46px; font-size: 1.1rem; }
.acc-uname { flex: 1; min-width: 0; line-height: 1.25; }
.acc-uname strong { display: block; font-size: 0.92rem; }
.acc-uname small { color: var(--pp-text-muted); font-size: 0.72rem; }
.acc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pp-border); margin-right: 4px; vertical-align: middle; }
.acc-dot.w1.on { background: #ef999f; } .acc-dot.w2.on { background: #b9a7e8; }

.acc-panel { border: 1px solid var(--pp-border); border-radius: var(--radius-lg); padding: 18px; background: var(--pp-surface); }
.acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acc-head h3 { font-family: var(--font-brand); font-size: 1.15rem; margin: 0; }
.acc-head p { margin: 0; color: var(--pp-text-muted); font-size: 0.85rem; }
.acc-world { border: 1px solid var(--pp-border); border-left: 4px solid #ef999f; border-radius: var(--radius-md); padding: 6px 14px 8px; margin-bottom: 12px; }
.acc-world.w2 { border-left-color: #b9a7e8; }
.acc-world header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--pp-border); }
.acc-world header strong { font-family: var(--font-brand); font-size: 1rem; }
.acc-page { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin: 0; cursor: pointer; border-bottom: 1px solid var(--pp-border); }
.acc-page:last-child { border-bottom: none; }
.acc-page-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--pp-bg); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.acc-page-txt { flex: 1; min-width: 0; line-height: 1.3; }
.acc-page-txt strong { display: block; font-size: 0.92rem; }
.acc-page-txt small { color: var(--pp-text-muted); font-size: 0.78rem; }

.acc-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.acc-switch.master span { font-size: 0.78rem; font-weight: 600; color: var(--pp-text-muted); }
.acc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.acc-switch i { width: 42px; height: 24px; border-radius: 999px; background: #d4d4d8; position: relative; transition: background 0.2s ease; flex-shrink: 0; }
.acc-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.acc-switch input:checked + i { background: var(--pp-sage-strong); }
.acc-switch input:checked + i::after { transform: translateX(18px); }
.acc-switch input:indeterminate + i { background: var(--pp-sage); }
.acc-switch input:indeterminate + i::after { transform: translateX(9px); }
.acc-switch input:disabled + i { opacity: 0.5; cursor: default; }
.acc-switch input:focus-visible + i { outline: 2px solid var(--pp-ink); outline-offset: 2px; }
.acc-saved { min-height: 1.2em; font-size: 0.85rem; font-weight: 600; }
.acc-saved.ok { color: var(--pp-sage-strong); } .acc-saved.err { color: #a83f4a; }
@media (max-width: 800px) { .acc { grid-template-columns: 1fr; } }

/* Instellingen: tabbladen */
.set-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--pp-border); }
.set-tab { border: 0; background: transparent; padding: 10px 16px; font-family: var(--font-brand); font-weight: 700; font-size: 0.95rem; color: var(--pp-text-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; transition: all 0.15s ease; }
.set-tab i { margin-right: 6px; }
.set-tab:hover { color: var(--pp-ink); }
.set-tab.active { color: var(--pp-ink); border-bottom-color: var(--pp-coral-strong); }
.set-pane[hidden] { display: none; }
.set-pane .section-card:not(.wide) { max-width: 760px; }
