.kp-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #2b2620; }
.kp-app * { box-sizing: border-box; }

.kp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.kp-filter-cat { padding: 8px 12px; border-radius: 8px; border: 1px solid #ccc; font-size: 14px; }
.kp-filter-ages { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-age-pill {
	--kp-kleur: #999;
	border: 2px solid var(--kp-kleur);
	background: #fff;
	color: #333;
	border-radius: 999px;
	padding: 5px 14px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.kp-age-pill.is-active { background: var(--kp-kleur); color: #fff; }

.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.kp-card { border: none; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; text-align: center; }
.kp-card img { width: 100%; height: 120px; object-fit: contain; display: block; border-radius: 8px; background: #f7f7f7; pointer-events: none; }
.kp-card-title { display: block; margin-top: 6px; font-weight: 700; font-size: 13px; }
.kp-status { grid-column: 1 / -1; text-align: center; color: #666; padding: 20px; }

.kp-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kp-btn { font-weight: 700; border: none; border-radius: 999px; padding: 9px 16px; cursor: pointer; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.12); color: #2b6ea0; }
.kp-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }

.kp-overview[hidden], .kp-colorview[hidden] { display: none !important; }
.kp-status-error { color: #b3261e; font-weight: 600; }

.kp-board { background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(20,60,90,.15); padding: 8px; }
.kp-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; border-radius: 8px; }

.kp-tray { margin-top: 14px; padding: 12px 10px; border-radius: 16px 16px 4px 4px; background: linear-gradient(180deg, #e7c08a, #c98a4b); }
.kp-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 3px; }
.kp-pencil { width: 28px; background: none; border: none; padding: 4px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; border-radius: 8px; }
.kp-pencil .kp-tip { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #e8c39e; }
.kp-pencil .kp-band { width: 14px; height: 3px; background: #3a3a3a; }
.kp-pencil .kp-body { width: 14px; height: 30px; border: 1px solid rgba(0,0,0,.18); border-top: none; }
.kp-pencil .kp-eraser { width: 14px; height: 6px; background: #f2a6bd; border-radius: 0 0 3px 3px; border: 1px solid rgba(0,0,0,.15); border-top: none; }
.kp-pencil.selected { background: rgba(255,255,255,.4); transform: translateY(-3px) scale(1.08); }

.kp-mail-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); align-items: center; justify-content: center; z-index: 9999; display: none; }
.kp-mail-modal:not([hidden]) { display: flex; }
.kp-mail-box { background: #fff; padding: 20px; border-radius: 14px; width: 90%; max-width: 320px; text-align: center; }
.kp-mail-box input[type="email"] { width: 100%; padding: 9px; border-radius: 8px; border: 1px solid #ccc; margin: 10px 0; }
.kp-mail-actions { display: flex; gap: 8px; justify-content: center; }
.kp-mail-status { font-size: 13px; min-height: 18px; }

@media print {
	.no-print, .kp-overview, .kp-mail-modal { display: none !important; }
	.kp-board { box-shadow: none; }
}
