/* Secret notes (DESIGN.md §9). */
.search-row { display: flex; gap: 10px; }
.search-row .input { flex: 1; min-width: 0; }
.search-row .btn { flex: none; }
.app .foot .spacer { flex: 1; }
.app .foot { gap: 8px; }
.note-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 32px; height: 32px; padding: 0 7px; background: #fff; border: 1px solid var(--line); color: var(--faint); cursor: pointer; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.note-btn svg { width: 16px; height: 16px; flex: none; }
.note-btn:hover, .note-btn:focus-visible { color: var(--ink); border-color: var(--ink); }
.note-btn.has { color: var(--brand); border-color: var(--brand); }
.note-btn.labeled { color: var(--muted); }
.note-btn.labeled.has { color: var(--brand); }
.row .note-open { all: unset; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.row .note-open:hover b { color: var(--brand); }
.row .note-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.note-card { margin-top: 14px; }
.note-card h3 { margin: 0 0 4px; }

.modal .card.note { max-height: calc(100dvh - 32px); overflow-y: auto; }
.note-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.note-head h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.note-head img, .note-head .ph { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; flex: none; }
.note-head .ph { display: grid; place-items: center; padding: 0; color: var(--muted); font-weight: 600; }
.note .hint { font-size: 13px; margin: 0 0 14px; }
.note label { display: block; margin: 14px 0 6px; }
.note-field { display: flex; gap: 6px; align-items: stretch; }
.note-field .input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 14px; }
.note-field textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.note-field .input[readonly] { cursor: pointer; }
.note-field .tools { display: flex; gap: 6px; flex: none; align-self: flex-start; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--ink); border-color: var(--ink); }
.icon-btn.done { color: var(--ok); border-color: var(--ok); }
.note-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.note-actions .spacer { flex: 1; }
@media (max-width: 760px) { .row .note-btn.labeled { padding: 0 7px; } }
@media (max-width: 480px) { .search-row { flex-wrap: wrap; } .search-row .btn { width: 100%; } }
