/* ---------- reflection notes ---------- */
.ayah-text.small { font-size: 19px; line-height: 1.9; margin-bottom: 10px; }
.note-card { background: var(--paper-2); border: 1px solid var(--gold-soft); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.note-meta b { color: var(--accent); font-size: 14px; }
.note-text { font-size: 16px; line-height: 1.9; color: var(--ink); white-space: normal; word-break: break-word; text-align: right; }
.note-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.note-actions { display: flex; gap: 14px; margin-top: 6px; }
.note-actions button { font-size: 13px; color: var(--accent); }
.note-actions button[data-del] { color: var(--note); }
.tag { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--gold-soft); color: var(--ink-2); }

.note-form { margin-top: 6px; }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.prompts span { font-size: 12.5px; color: var(--ink-3); }
.prompts button { font-size: 13px; padding: 5px 10px; border-radius: 14px; border: 1px dashed var(--gold-2); color: var(--accent); }
.note-input {
  width: 100%; font: inherit; font-size: 17px; line-height: 1.9; padding: 12px 14px; border-radius: 14px; resize: vertical; min-height: 150px;
  border: 1px solid var(--gold-2); background: var(--paper); color: var(--ink); outline: none;
  background-image: linear-gradient(transparent calc(100% - 1px), var(--line) 0); background-size: 100% 1.9em; background-attachment: local;
}
.note-input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--gold-soft); }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tag-pick button { font-size: 13px; padding: 5px 12px; border-radius: 14px; background: var(--paper-2); color: var(--ink-2); border: 1px solid transparent; }
.tag-pick button.on { background: var(--green); color: var(--on-green); border-color: var(--gold); }
.tag-pick.filter { margin: 0 0 8px; }

.notes-surah { font-family: "Amiri", serif; font-size: 18px; color: var(--accent); margin: 16px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--gold-soft); }
.note-item { display: block; width: 100%; text-align: right; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.note-item:active { background: var(--gold-soft); }
.backup { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--paper-2); }
.backup-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.otd { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: right; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: var(--on-green); border: 1px solid var(--gold); }
.otd-k { font-size: 12.5px; color: var(--gold-2); font-weight: 700; }
.otd-k small { color: var(--on-green); opacity: .75; font-weight: 400; margin-inline-start: 6px; }
.otd-ref { font-family: "Amiri", serif; font-size: 17px; }
.otd-text { font-size: 15px; line-height: 1.8; opacity: .95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* reminder banner: «كتبتَ هنا قبل …» */
.memory {
  position: absolute; left: 10px; right: 10px; top: calc(var(--safe-top) + 10px); z-index: 50;
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--gold-2); box-shadow: var(--shadow); animation: drop .3s ease;
}
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.mem-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--gold-2); display: flex; align-items: center; justify-content: center; }
.mem-icon svg { width: 20px; height: 20px; }
.mem-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.mem-body b { font-size: 14px; color: var(--accent); }
.mem-ref { font-family: "Amiri", serif; font-size: 15px; color: var(--ink-2); }
.mem-text { font-size: 14.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mem-x { flex: none; color: var(--ink-3); }
.mem-x svg { width: 20px; height: 20px; }

/* lighter mark for ayahs with a reflection */
.w.has-note { text-decoration: underline dotted 1.5px; text-decoration-color: rgba(180, 82, 45, .6); text-underline-offset: .3em; }
