.library-section { margin-top: 40px; }.library-filters { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }.library-filters p { margin: 0; }.library-filters label { color: var(--ink); }.library-filters input { width: 100%; max-width: none; min-height: 44px; padding: 9px; border: 1px solid #cbd2df; border-radius: 7px; background: #fffefb; font: inherit; }.filter-actions { display: flex; align-items: center; gap: 10px; }.filter-actions a { color: var(--ink); padding: 9px 4px; }.table-scroll { overflow-x: auto; border: 1px solid #eadbc5; border-radius: 12px; background: #fffdf9; }.memory-table { width: 100%; min-width: 830px; border-collapse: collapse; text-align: left; }.memory-table th, .memory-table td { padding: 13px 14px; border-bottom: 1px solid #efe4d5; vertical-align: middle; }.memory-table th { background: #fff8ed; font-size: .9rem; white-space: nowrap; }.memory-table th a { color: var(--ink); text-decoration: none; }.memory-table th a:hover { color: var(--accent); }.sort-icon { color: var(--accent); font-size: .85em; }.memory-table tbody tr:last-child td { border-bottom: 0; }.memory-table tbody tr:hover { background: #fffaf3; }.table-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }.table-actions a, .table-actions button { padding: 6px 9px; border-radius: 6px; font: inherit; }.table-actions a { color: #8b4b16; background: #f9e8cf; text-decoration: none; }.table-actions button { border: 1px solid #d8c2a4; background: white; color: var(--ink); cursor: pointer; }.table-actions form { display: inline; }.table-actions .danger { margin: 0; color: var(--danger); border-color: #f5c2c0; }.empty-table { text-align: center; color: var(--muted); padding-block: 30px !important; }.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }.pagination a, .pagination span { min-width: 34px; padding: 6px 9px; text-align: center; border-radius: 6px; }.pagination a { color: #8b4b16; background: #f9e8cf; text-decoration: none; }.pagination [aria-current=page] { background: var(--accent); color: white; }.edit-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 24px; color: var(--ink); box-shadow: 0 20px 50px #17203344; }.edit-dialog::backdrop { background: #24150b66; }.edit-dialog form p { margin-bottom: 14px; }.edit-dialog input { width: 100%; max-width: none; padding: 9px; border: 1px solid #cbd2df; border-radius: 7px; font: inherit; }.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.dialog-heading h2 { margin-bottom: 18px; }.dialog-heading button, .dialog-actions button { cursor: pointer; padding: 8px 12px; border-radius: 7px; border: 1px solid #d8c2a4; background: white; font: inherit; }.dialog-heading button { border: 0; font-size: 1.5rem; line-height: 1; padding: 0 4px 12px; }.dialog-actions { justify-content: flex-end; margin-top: 20px; }.dialog-actions .primary { border-color: var(--accent); background: var(--accent); color: white; }@media (max-width: 760px) { .library-filters { grid-template-columns: 1fr; }.filter-actions { justify-content: flex-start; } }
.library-filters .date-picker-display { display: block; }.delete-dialog > form > p { color: var(--muted); }.delete-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }.delete-details div { padding: 10px; border-radius: 8px; background: #fff8ed; }.delete-details dt { color: var(--muted); font-size: .8rem; }.delete-details dd { margin: 2px 0 0; font-weight: 650; }.dialog-actions .danger { color: white; border-color: var(--danger); background: var(--danger); }

/* Keep the actions cell as a table cell so it shares its row's computed height. */
.table-actions { display: table-cell; white-space: nowrap; }
.table-actions-content { display: flex; align-items: center; gap: 8px; }
