/* ═══════════════════════════════
   panels.css — Notes, Stats, Settings
   ═══════════════════════════════ */

/* ── Notes grid ── */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 9px;
}
.note-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  cursor: pointer;
  transition: border-color .12s;
  min-height: 90px;
}
.note-card:hover { border-color: var(--color-border-md); }

.nc-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-body {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}
.nc-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--acc-l);
  color: var(--acc);
}
.nc-date { font-size: 10px; color: var(--color-text-tertiary); }
.nc-del {
  font-size: 12px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  line-height: 1;
}
.nc-del:hover { color: var(--color-danger); }

/* ── Note editor ── */
.note-editor {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.ne-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 0.5px solid var(--color-border);
}
.ne-ti {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  border: none;
  outline: none;
  background: none;
  color: var(--color-text-primary);
}
.ne-bd {
  width: 100%;
  min-height: 90px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.7;
  border: none;
  outline: none;
  resize: none;
  background: none;
  color: var(--color-text-primary);
  font-family: inherit;
}
.ne-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-top: 0.5px solid var(--color-border);
  background: var(--color-bg-secondary);
  gap: 8px;
}
.ne-ref {
  font-size: 10px;
  color: var(--color-text-tertiary);
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ne-save {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--acc);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.ne-save:hover { opacity: .9; }

/* ── Stats bars ── */
.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.stat-bar-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-bar-track {
  flex: 1;
  height: 4px;
  background: var(--color-bg-secondary);
  border-radius: 99px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  background: var(--acc-m);
  border-radius: 99px;
}
.stat-bar-count {
  font-size: 10px;
  color: var(--color-text-tertiary);
  width: 24px;
  text-align: right;
}
