@layer components{.preferences{min-width:0;max-width:1600px;padding-block:20px}.preferences h1{letter-spacing:-.8px;font-size:clamp(26px,3vw,36px)}.preferences>header{border-bottom:1px solid var(--border);padding-bottom:16px}.preferences>header p{max-width:960px;color:var(--muted);font-size:14px;line-height:1.6}.preferences [data-slot=card]{box-shadow:none;border-radius:8px}.preferences>[role=alert]{background:var(--surface);border-radius:8px;padding:20px}.preference-identity h2{margin:0 0 .25rem;font-size:13px;font-weight:600;line-height:1.4}.preferences p{margin:.6rem 0;line-height:1.5}.preference-muted{color:var(--muted-foreground)}.preferences-header{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;margin-bottom:.5rem;display:grid}.preferences-header .preference-export{display:contents}.preferences-title-help{flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0;display:flex}.preferences-title-help>button{flex-shrink:0}.preferences-header .preference-export p{grid-column:1/-1;margin:0}.preferences-context{color:var(--muted-foreground);overflow-wrap:anywhere;margin:1rem 0;font-size:12px}.preferences-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;margin:2rem 0 1rem;display:flex}.preferences-toolbar span{font-size:12px}.preference-export{overflow-wrap:anywhere;margin:.75rem 0}.preference-export p{color:var(--muted-foreground);font-size:12px}.preference-export-status:empty{display:none}.preference-export .preference-export-status--error{color:var(--destructive)}.preferences-ledger{border:1px solid var(--border);border-radius:var(--radius);background:var(--card);overflow:hidden}.preferences-ledger table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:13px;line-height:1.4}.preferences-ledger th,.preferences-ledger td{text-align:left;vertical-align:middle;overflow-wrap:anywhere;padding:10px 8px}.preferences-ledger thead{background:var(--surface-soft);color:var(--muted-foreground);font-size:12px}.preferences-ledger table:not(.preference-resizable-table) th:first-child{width:64px}.preferences-ledger table:not(.preference-resizable-table) th:nth-child(2){width:30%}.preferences-ledger table:not(.preference-resizable-table) th:nth-child(4),.preferences-ledger table:not(.preference-resizable-table) th:nth-child(5){width:7%}.preferences-ledger table:not(.preference-resizable-table) th:nth-child(6),.preferences-ledger table:not(.preference-resizable-table) th:nth-child(7){width:11%}.preference-row{border-top:1px solid var(--border)}.preference-identity p,.preference-institution p{margin:3px 0 0;font-size:12px;line-height:1.3}.preference-code{color:var(--primary);font-family:ui-monospace,monospace}.preference-unavailable{color:var(--muted-foreground)}.preference-position{color:var(--primary);font-variant-numeric:tabular-nums;font-size:18px;font-weight:700}.preference-rank,.preference-score,.preference-year{font-variant-numeric:tabular-nums}.preference-row .preference-rank,.preference-row .preference-score{text-align:right}.preference-position-control,.preference-title{align-items:center;gap:4px;display:flex}.preference-title{justify-content:space-between;align-items:flex-start}.preference-position-control{flex-direction:column;gap:0}.preference-title h2{flex:1}.preference-drag-handle,.preference-menu-trigger{width:44px;min-width:44px;height:44px;color:var(--muted-foreground);padding:0}.preference-drag-handle{touch-action:none;cursor:grab}.preference-drag-handle:active{cursor:grabbing}.preference-row[data-dragging]{opacity:.35}.preference-row[data-drop-target]{background:var(--accent);outline:2px solid var(--primary);outline-offset:-2px}.preference-drag-preview{border:2px solid var(--primary);border-radius:var(--radius);background:var(--card);max-width:min(480px,100vw - 32px);color:var(--foreground);padding:16px;font-size:14px;box-shadow:0 8px 24px #0002}.preference-drag-preview span{color:var(--muted-foreground);margin-top:4px;font-size:12px;display:block}@media (prefers-reduced-motion:reduce){.preference-row{transition:none!important}}.preferences-bottom{color:var(--muted-foreground);padding-block:.5rem;font-size:12px}@media (max-width:800px){.preferences-header{grid-template-columns:auto minmax(0,1fr);justify-items:start}.preferences-title-help{grid-column:1/-1}.preferences-ledger .preference-resizable-table{width:100%!important;min-width:0!important}.preferences-ledger .preference-resizable-table>colgroup,.preferences-ledger thead{display:none}.preference-row{grid-template-columns:60px minmax(0,1fr) minmax(0,1fr);padding:16px 0;display:grid}.preferences-ledger td{min-width:0;padding:0 8px 10px}.preference-position{grid-area:1/1}.preference-identity,.preference-institution{grid-column:2/-1}.preference-type,.preference-rank{grid-column:2}.preference-year,.preference-score{grid-column:3}.preference-row .preference-rank,.preference-row .preference-score{text-align:left}.preference-row [data-label]:before{content:attr(data-label);color:var(--muted-foreground);margin-bottom:3px;font-size:12px;display:block}.preference-row [data-label]{min-height:44px}}.preferences>.catalogue-source{margin-block:1rem}.preference-note-preview{min-width:0;margin-top:8px}.preference-note-add{color:var(--muted-foreground);font-weight:400}.preference-note-card{background:var(--surface-soft);box-shadow:inset 2px 0 0 var(--border)}.preference-note-heading{color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:500;display:flex}.preference-note-text{white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:3;color:var(--foreground);-webkit-box-orient:vertical;font-size:12px;font-weight:400;line-height:1.5;display:-webkit-box;overflow:hidden}.preference-note-editor-code{margin-top:4px;font-family:ui-monospace,monospace;font-size:12px;display:block}.preference-note-form{gap:12px;display:grid}.preference-note-meta{color:var(--muted-foreground);flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:12px;display:flex}.preference-note-count{font-variant-numeric:tabular-nums;margin-left:auto}.preference-note-help{color:var(--muted-foreground);margin:0;font-size:12px;line-height:1.6}.preference-note-status:empty{display:none}.preference-note-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;margin-top:4px;padding-top:16px;display:flex}.preference-conflict-note{white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width:520px){.preferences-header{grid-template-columns:minmax(0,1fr);justify-items:stretch}.preferences-header .preference-export>button{width:100%}}}
