/* Neelix — Konsum-Logbuch (Local-First) */
.nc-kl { background: #fff; border: 1px solid #dcfce7; border-radius: 16px; padding: 18px; margin: 18px 0; }
.nc-kl-local { font-size: .82rem; line-height: 1.5; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.nc-kl-local a { color: #15803d; font-weight: 700; }

.nc-kl-form { display: block; }
.nc-kl-cravbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed #86efac; border-radius: 12px; background: #f7fef9; font-size: .85rem; color: #14532d; line-height: 1.4; margin-bottom: 12px; cursor: pointer; }
.nc-kl-cravbox input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }

.nc-kl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .nc-kl-grid { grid-template-columns: 1fr; } }
.nc-kl-field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: #334155; }
.nc-kl-field input, .nc-kl-field select, .nc-kl-field textarea { font-size: .9rem; font-weight: 400; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; width: 100%; box-sizing: border-box; }
.nc-kl-field input:disabled, .nc-kl-field select:disabled { background: #f1f5f9; color: #94a3b8; }
.nc-kl-field textarea { resize: vertical; }
.nc-kl-range { display: flex; align-items: center; gap: 10px; }
.nc-kl-range input[type=range] { flex: 1; }
.nc-kl-out { font-weight: 700; color: #16a34a; min-width: 1.6em; text-align: center; }

.nc-kl-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.nc-kl-save { background: linear-gradient(135deg, #16a34a, #059669); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.nc-kl-save:hover { filter: brightness(1.05); }
.nc-kl-msg { font-size: .82rem; color: #64748b; }
.nc-kl-msg.is-err { color: #dc2626; font-weight: 600; }

.nc-kl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
@media (max-width: 560px) { .nc-kl-stats { grid-template-columns: repeat(2, 1fr); } }
.nc-kl-stat { background: linear-gradient(135deg, rgba(34,197,94,.07), rgba(6,182,212,.05)); border: 1px solid #dcfce7; border-radius: 12px; padding: 12px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.nc-kl-stat-ic { font-size: 1.2rem; }
.nc-kl-stat-val { font-size: 1.05rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.nc-kl-stat-lbl { font-size: .72rem; color: #64748b; }

.nc-kl-insight { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.nc-kl-insight p { margin: 0 0 8px; font-size: .88rem; line-height: 1.55; color: #334155; }
.nc-kl-insight p:last-child { margin-bottom: 0; }
.nc-kl-micro { color: #0f172a !important; }
.nc-kl-win { color: #166534 !important; font-weight: 600; }

.nc-kl-list { margin: 16px 0; }
.nc-kl-list h3 { margin: 0 0 10px; font-size: 1rem; color: #0f172a; }
.nc-kl-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #f1f5f9; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.nc-kl-item.is-win { background: #f0fdf4; border-color: #bbf7d0; }
.nc-kl-item-main { flex: 1; min-width: 0; }
.nc-kl-item-head { font-size: .9rem; color: #0f172a; }
.nc-kl-item-date { color: #94a3b8; font-weight: 400; font-size: .78rem; }
.nc-kl-item-bits { font-size: .78rem; color: #64748b; margin-top: 2px; }
.nc-kl-item-note { font-size: .82rem; color: #475569; font-style: italic; margin-top: 4px; }
.nc-kl-del { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.nc-kl-del:hover { background: #fee2e2; color: #dc2626; }

.nc-kl-empty { font-size: .88rem; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 16px; text-align: center; margin: 14px 0; }

.nc-kl-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.nc-kl-exp { background: #fff; border: 1px solid #16a34a; color: #16a34a; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.nc-kl-exp:hover { background: #f0fdf4; }
.nc-kl-clr { background: #fff; border: 1px solid #e2e8f0; color: #94a3b8; border-radius: 999px; padding: 8px 16px; font-size: .82rem; cursor: pointer; }
.nc-kl-clr:hover { border-color: #fca5a5; color: #dc2626; }

.nc-kl-disc-wrap { margin-top: 16px; }
.nc-kl-disc { font-size: .78rem; color: #64748b; line-height: 1.5; }
