.doc-chip{gap:.375rem;min-width:0;max-width:100%;font-weight:400}.doc-chip-icon{margin-left:-.25rem;display:inline-flex}.doc-chip[data-missing]{color:var(--muted-foreground);text-decoration:line-through}.doc-chip-version{font-variant-numeric:tabular-nums;color:var(--muted-foreground)}.doc-chip-version[data-outdated]{color:oklch(45% .09 70);background:oklch(95% .045 85);border-radius:3px;padding:0 .25rem}.dark .doc-chip-version[data-outdated]{color:oklch(86% .08 85);background:oklch(32% .04 75)}.doc-peek{grid-template-rows:auto minmax(0,1fr) auto;max-height:min(48rem,100dvh - 2rem);overflow:hidden}.doc-peek-header{border-bottom:1px solid var(--border);padding:1rem 3.5rem .75rem 1.25rem}.doc-peek-body{background:var(--muted);padding:1rem;overflow:auto}.doc-peek-footer{border-top:1px solid var(--border);margin:0;padding:.75rem 1.25rem}.note-editor{flex-direction:column;gap:.5rem;min-width:0;display:flex}.note-editor-field{overflow-wrap:anywhere;white-space:pre-wrap;cursor:text;border:1px solid var(--input);border-radius:var(--radius-md);background:0 0;outline:none;width:100%;min-height:4.5rem;padding:.5rem .625rem;font-size:.875rem;line-height:1.6;transition:color .15s,box-shadow .15s;position:relative;box-shadow:0 1px 2px #0000000d}.dark .note-editor-field{background:color-mix(in oklab, var(--input) 30%, transparent)}.note-editor-field:focus-visible{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent)}.note-editor-field[data-empty]:before{color:var(--muted-foreground);pointer-events:none;content:attr(data-placeholder);position:absolute;inset:.5rem .625rem}.note-mention{vertical-align:baseline;white-space:nowrap;cursor:pointer;-webkit-user-select:all;user-select:all;background:var(--muted);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;gap:.3rem;max-width:100%;margin:0 .0625rem;padding:0 .375rem 0 .1875rem;font-size:.8125rem;line-height:1.45;display:inline-flex}.note-mention:hover{background:var(--accent)}.note-mention-ext{color:#fff;letter-spacing:.02em;background:var(--file-color);border-radius:3px;padding:0 .25rem;font-size:.625rem;font-weight:700;line-height:1.5}.note-mention-name{text-overflow:ellipsis;min-width:0;max-width:18rem;overflow:hidden}.note-mention[data-missing]{color:var(--muted-foreground);cursor:default}.note-mention[data-missing] .note-mention-name{text-decoration:line-through}.note-editor-files{flex-wrap:wrap;gap:.375rem;display:flex}.note-editor-files>li{min-width:0;max-width:100%}@layer components{.history-trigger[data-active]{color:var(--primary);background:var(--accent)}.history-popover-body{flex-direction:column;max-height:min(520px,100vh - 120px);display:flex}.history-popover-header,.history-popover-footer{justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:6px 8px 6px 14px;display:flex}.history-popover-header{border-bottom:1px solid var(--border)}.history-popover-footer{border-top:1px solid var(--border)}.history-heading{font-weight:600}.history-hint{color:var(--muted-foreground);flex-wrap:wrap;align-items:center;gap:4px;font-size:12px;display:inline-flex}.history-undo-buttons{flex-wrap:wrap;gap:6px;display:flex}.history-loading{flex-direction:column;gap:6px;padding:12px;display:flex}.history-scroll{outline:none;flex:1;min-height:0;max-height:340px;padding:4px;overflow-y:auto}.history-day-label{color:var(--muted-foreground);margin:0;padding:8px 10px 4px;font-size:12px;font-weight:500}.history-list{flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;display:flex}.history-row{border-radius:var(--radius);grid-template-columns:auto minmax(0,1fr) auto 24px;align-items:start;gap:10px;padding:7px 6px 7px 10px;display:grid}.history-row:hover,.history-row:focus-within{background:var(--muted)}.history-row-undo{opacity:0;grid-column:4}.history-row:hover .history-row-undo,.history-row-undo:focus-visible{opacity:1}@media (hover:none){.history-row-undo{opacity:1}}.history-row.is-undone .history-entry-title,.history-row.is-undone .history-avatar{opacity:.55}.history-group{flex-direction:column;display:flex}.history-group.is-undone>.history-row .history-entry-title,.history-group.is-undone>.history-row .history-avatar{opacity:.55}.history-group-trigger{min-width:0;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:4px;outline:none;justify-content:space-between;align-items:start;gap:6px;padding:0;display:flex}.history-group-trigger:focus-visible{box-shadow:0 0 0 3px color-mix(in oklch, var(--ring), transparent 50%)}.history-group-chevron{width:16px;height:16px;color:var(--muted-foreground);flex:none;margin-top:2px;transition:rotate .15s}.history-group-trigger[data-state=open] .history-group-chevron{rotate:180deg}@media (prefers-reduced-motion:reduce){.history-group-chevron{transition:none}}.history-group-steps{padding-left:34px}.history-row.is-nested{grid-template-columns:minmax(0,1fr) auto 24px;padding-block:5px}.history-row.is-nested .history-row-undo{grid-column:3}.history-row.is-nested .history-entry-title{font-weight:400}.history-avatar{margin-top:1px;font-size:10px;font-weight:600}.history-avatar[data-agent] [data-slot=avatar-fallback]{color:var(--primary);background:var(--accent)}.history-entry-text{flex-direction:column;gap:1px;min-width:0;display:flex}.history-entry-title{overflow-wrap:anywhere;font-weight:500}.history-entry-meta,.history-row-time{color:var(--muted-foreground);font-size:12px}.history-row-time{font-variant-numeric:tabular-nums;padding-top:1px}.history-changes{flex-direction:column;gap:8px;margin:0;padding:0;font-size:13px;list-style:none;display:flex}.history-change-label{align-items:center;gap:6px;font-weight:500;display:flex}.history-fields{grid-template-columns:max-content minmax(0,1fr);gap:2px 10px;margin:3px 0 0;display:grid}.history-fields>div{display:contents}.history-fields dt{color:var(--muted-foreground)}.history-fields dd{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:4px;margin:0;display:flex}.history-fields dd svg{width:12px;height:12px;color:var(--muted-foreground)}.history-before{color:var(--muted-foreground)}.history-after{color:var(--foreground)}.history-more{color:var(--muted-foreground);font-size:12px}}
