/* One home per note (A11): the File in My Life sheet, the "Filed in" line
   under a page's title, and an item's Everything here. */

.file-sheet { border: 0; border-radius: 16px; padding: 20px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--bg); color: var(--ink); }
.file-sheet::backdrop { background: rgba(0, 0, 0, .35); }
.file-sheet h2 { margin: 0 0 8px; font: 600 22px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.file-sheet .file-what { margin: 0 0 10px; color: var(--soft); font-size: 15px; overflow-wrap: anywhere; }
.file-sheet .search { width: 100%; box-sizing: border-box; }
.file-list { list-style: none; margin: 8px 0 12px; padding: 0; max-height: min(320px, 45dvh); overflow: auto; }
.file-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.file-opt .item-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.file-opt .item-when { color: var(--soft); font-size: 14px; }
.file-opt.on { background: var(--accent-soft); }
.file-sug { flex-basis: 100%; color: var(--goal); font-size: 14px; }
.file-none { padding: 8px 10px; color: var(--soft); }
.file-why { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; color: var(--soft); }
.file-why span { font-size: 13px; }
.file-why input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.file-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.file-bar kbd { font: inherit; font-size: 12px; opacity: .8; }

.filed-in { margin: 4px 0 8px; color: var(--soft); font-size: 15px; overflow-wrap: anywhere; }
.filed-chip { white-space: normal; }
.filed-kind { color: var(--soft); }
.filed-out { border: 0; background: none; color: var(--soft); font: inherit; padding: 0 4px; cursor: pointer; min-width: 24px; min-height: 24px; }
.filed-out:hover { color: var(--accent); }

.everything .list { list-style: none; margin: 0; padding: 0; }
.everything li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.everything li > a, .everything li > label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.everything li > label { flex-direction: row; align-items: baseline; gap: 8px; }
.everything .item-title { overflow-wrap: anywhere; }
.everything .ev-kind { color: var(--soft); font-size: 14px; white-space: nowrap; }
.everything .ev-reason { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.everything li.done .item-title { text-decoration: line-through; color: var(--soft); }
.everything-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
