.chat-graph-replace-confirm-overlay{z-index:60;background:#0f172a73;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.chat-graph-replace-confirm-dialog{border:1px solid hsl(var(--border));background:hsl(var(--background));border-radius:.5rem;width:min(100%,24rem);padding:1rem;box-shadow:0 8px 24px #0f172a2e}.chat-graph-replace-confirm-title{color:hsl(var(--foreground));margin:0;font-size:.9375rem;font-weight:600}.chat-graph-replace-confirm-body{color:hsl(var(--muted-foreground));margin:.5rem 0 0;font-size:.8125rem;line-height:1.45}.chat-graph-replace-confirm-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;font-size:.8125rem;display:flex}.chat-graph-replace-confirm-actions button{border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));border-radius:.375rem;padding:.375rem .75rem}.chat-graph-replace-confirm-actions .chat-graph-replace-confirm-primary{border-color:hsl(var(--foreground));background:hsl(var(--foreground));color:hsl(var(--background))}
.chat-graph-canvas{touch-action:none;background:#e8f2fc;position:absolute;inset:0;overflow:hidden}.chat-graph-surface{transform-origin:0 0;position:absolute;inset:0;overflow:visible}.chat-graph-edge-layer{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:visible}.chat-graph-node{cursor:pointer;background:0 0;border:0;padding:0;position:absolute}.chat-graph-node-inner{width:100%;height:100%;display:block;position:relative}.chat-graph-expand-ring{pointer-events:none;box-sizing:border-box;border:2px solid;border-radius:50%;position:absolute;inset:-6px}.chat-graph-node-body{box-sizing:border-box;text-align:center;border:1.5px solid;border-radius:50%;justify-content:center;align-items:center;width:100%;height:100%;font-size:11px;font-weight:600;line-height:1.2;transition:box-shadow .16s ease-out,border-color .16s ease-out,background .16s ease-out;display:flex;position:relative}.chat-graph-node-label{white-space:nowrap;text-overflow:ellipsis;max-width:90%;font-family:var(--font-geist-mono), monospace;padding:0 4px;font-size:10px;font-weight:600;overflow:hidden}.chat-graph-node:focus-visible{outline-offset:2px;outline:2px solid #2563eb}@media (prefers-reduced-motion:reduce){.chat-graph-node-body{transition:none}}.chat-graph-context-action{z-index:10;pointer-events:none;position:absolute;top:.75rem;right:.75rem}.chat-graph-context-action button{pointer-events:auto}.chat-graph-view-undo-toast{z-index:10;pointer-events:none;position:absolute;top:.75rem;left:.75rem}.chat-graph-view-undo-toast-icon-btn,.chat-graph-view-undo-toast-chip{pointer-events:auto}.chat-graph-view-undo-toast-icon-btn{border:1px solid hsl(var(--border));background:hsl(var(--background));width:2rem;height:2rem;box-shadow:0 1px 3px hsl(var(--foreground) / .08);cursor:pointer;color:hsl(var(--muted-foreground));border-radius:999px;justify-content:center;align-items:center;display:flex}.chat-graph-view-undo-toast-chip{border:1px solid hsl(var(--border));background:hsl(var(--background));max-width:min(100vw - 2rem,18rem);box-shadow:0 1px 3px hsl(var(--foreground) / .08);color:hsl(var(--foreground));cursor:pointer;border-radius:999px;align-items:center;gap:.375rem;padding:.375rem .625rem;font-size:.75rem;line-height:1.2;display:inline-flex}.chat-graph-view-undo-toast-label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.chat-group-view{background:#e8f2fc;flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:visible;container-type:size}.chat-group-view-genealogy-panel{overscroll-behavior:contain;width:max-content;max-width:min(34rem,100cqi - 18.25rem);max-height:min(100cqh - 1.5rem,100dvh - 1.5rem);position:absolute;top:0;right:calc(100% + .75rem);overflow-y:auto}.chat-group-view-selection-card{flex-direction:column;max-height:calc(100cqh - 4.25rem);display:flex}.chat-group-view-selection-card>*{flex-shrink:0}.chat-group-view-batch-targets-region{flex-direction:column;flex:auto;min-height:0;display:flex}.chat-group-view-batch-targets{overscroll-behavior:contain;flex:auto;min-height:0;overflow-y:auto}.chat-group-view-selection-card>[data-group-selection-material]{flex-direction:column;flex:auto;min-height:0;display:flex}.chat-group-view-selection-card>[data-group-selection-material]>[data-group-selection-material-id]{flex-shrink:0}.chat-group-view-selection-card>[data-group-selection-material]>.chat-group-view-material-section,.chat-group-view-material-body{flex-direction:column;flex:auto;min-height:0;display:flex}.chat-group-view-material-body>:not(.chat-group-view-batch-targets-region){flex-shrink:0}@container (max-width:42rem){.chat-group-view-selection-card{max-height:calc(100cqh - 17rem)}.chat-group-view-genealogy-panel{width:34rem;max-width:calc(100cqi - 1.5rem);max-height:min(100cqh - 100% - 2.25rem,100dvh - 100% - 2.25rem);top:calc(100% + .75rem);bottom:auto;right:0}}.chat-group-view-toolbar{z-index:10;padding:.75rem;position:absolute;top:0;left:0}.chat-group-view-set-action{z-index:10;position:absolute;top:.75rem;right:.75rem}.chat-group-view-title{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.chat-group-view-filter-trigger{border:1px solid hsl(var(--border));background:hsl(var(--background) / .94);width:2.25rem;height:2.25rem;color:hsl(var(--foreground));border-radius:.375rem;justify-content:center;align-items:center;transition:background-color .12s,border-color .12s;display:inline-flex;box-shadow:0 1px 2px #0f172a14,0 2px 6px #0f172a14}.chat-group-view-filter-trigger:hover{border-color:hsl(var(--foreground) / .2);background:hsl(var(--background))}.chat-group-view-filter-trigger:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.chat-group-view-grouping{--grouping-row-inset:.75rem;--grouping-row-gap:.5rem;--grouping-checkbox:.8125rem;z-index:50;border:1px solid hsl(var(--border));background:hsl(var(--popover));max-width:calc(100vw - 1.5rem);color:hsl(var(--popover-foreground));border-radius:.375rem;outline:none;box-shadow:0 4px 12px #0f172a24}.chat-group-view-grouping-head{border-bottom:1px solid hsl(var(--border));justify-content:space-between;align-items:center;gap:1rem;padding:.5rem .5rem .5rem .75rem;display:flex}.chat-group-view-grouping-title{color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:500}.chat-group-view-grouping-add,.chat-group-view-grouping-menu-trigger{width:1.5rem;height:1.5rem;color:hsl(var(--muted-foreground));border-radius:.25rem;justify-content:center;align-items:center;display:inline-flex}.chat-group-view-grouping-add:hover:not(:disabled),.chat-group-view-grouping-menu-trigger:hover{background:hsl(var(--muted));color:hsl(var(--foreground))}.chat-group-view-grouping-add:disabled{opacity:.4}.chat-group-view-grouping-columns{align-items:flex-start;display:flex}.chat-group-view-grouping-column{width:11rem;padding:.5rem 0;position:relative}.chat-group-view-grouping-column-wide{width:20rem}.chat-group-view-grouping-column+.chat-group-view-grouping-column{border-left:1px solid hsl(var(--border))}.chat-group-view-grouping-column-head{justify-content:space-between;align-items:center;gap:.25rem;padding:0 .5rem .25rem 0;display:flex}.chat-group-view-grouping-column-title{font-size:.875rem;font-weight:500}.chat-group-view-grouping-column-head>.chat-group-view-grouping-column-title{padding:.25rem 0 .25rem calc(var(--grouping-row-inset) + var(--grouping-checkbox) + var(--grouping-row-gap))}.chat-group-view-grouping-empty{padding:.25rem .5rem .5rem calc(var(--grouping-row-inset) + var(--grouping-checkbox) + var(--grouping-row-gap));color:hsl(var(--muted-foreground));margin:0;font-size:.75rem}.chat-group-view-grouping-notice{margin:0 .5rem .25rem var(--grouping-row-inset);color:#92400e;background:#fffbeb;border:1px solid #f59e0b;border-radius:.25rem;padding:.25rem .5rem;font-size:.75rem}.chat-group-view-grouping-draft .chat-group-view-grouping-notice{margin:0}.chat-group-view-grouping-values{max-height:12rem;overflow-y:auto}.chat-group-view-grouping-values>li,.chat-group-view-grouping-window>li{justify-content:space-between;align-items:center;gap:.5rem;padding-right:.5rem;display:flex}.chat-group-view-grouping-row{align-items:center;gap:var(--grouping-row-gap);min-width:0;padding:.25rem var(--grouping-row-inset);flex:1;font-size:.875rem;display:flex}.chat-group-view-grouping-row>input[type=checkbox]{width:var(--grouping-checkbox);height:var(--grouping-checkbox);flex:none}.chat-group-view-grouping-row>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-group-view-grouping-window{box-sizing:border-box}.chat-group-view-grouping-row-text{flex-direction:column;min-width:0;line-height:1.125rem;display:flex}.chat-group-view-grouping-row-text>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-group-view-grouping-row-secondary{min-height:1rem;color:hsl(var(--muted-foreground));font-size:.75rem;line-height:1rem}.chat-group-view-grouping-row-text mark{color:hsl(var(--foreground));background:#fde587}.chat-group-view-grouping-column-search{padding:0 .5rem .25rem var(--grouping-row-inset)}.chat-group-view-grouping-value-group{color:hsl(var(--muted-foreground));font-size:.75rem}.chat-group-view-grouping-value-group:hover{color:hsl(var(--foreground));text-decoration:underline}.chat-group-view-grouping-menu,.chat-group-view-grouping-confirm{border:1px solid hsl(var(--border));background:hsl(var(--background));border-radius:.375rem;margin:.25rem .5rem;padding:.5rem;font-size:.8125rem;box-shadow:0 2px 8px #0f172a1f}.chat-group-view-grouping-menu{flex-direction:column;align-items:flex-start;gap:.25rem;display:flex}.chat-group-view-grouping-actions{justify-content:flex-end;align-items:center;gap:.5rem;padding-top:.5rem;font-size:.8125rem;display:flex}.chat-group-view-grouping-primary,.chat-group-view-grouping-danger{background:hsl(var(--foreground));color:hsl(var(--background));border-radius:.25rem;padding:.25rem .625rem}.chat-group-view-grouping-danger{color:#fff;background:#dc2626}.chat-group-view-grouping-primary:disabled{opacity:.45}.chat-group-view-grouping-draft{flex-direction:column;gap:.5rem;width:24rem;padding:.75rem;display:flex}.chat-group-view-grouping-field{color:hsl(var(--muted-foreground));flex-direction:column;gap:.25rem;font-size:.75rem;display:flex}.chat-group-view-grouping-field>select,.chat-group-view-grouping-field>input{border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));border-radius:.25rem;padding:.25rem;font-size:.875rem}.chat-group-view-grouping-chips{flex-wrap:wrap;align-content:flex-start;gap:.25rem;max-height:6rem;display:flex;overflow-y:auto}.chat-group-view-grouping-chip{border:1px solid hsl(var(--border));border-radius:.25rem;align-items:center;gap:.25rem;padding:.125rem .375rem;font-size:.75rem;display:inline-flex}.chat-group-view-grouping-values-draft{border-top:1px solid hsl(var(--border));padding-top:.25rem}.chat-group-view-grouping-add:focus-visible,.chat-group-view-grouping-menu-trigger:focus-visible,.chat-group-view-grouping-value-group:focus-visible,.chat-group-view-grouping-actions button:focus-visible,.chat-group-view-grouping-menu button:focus-visible,.chat-group-view-grouping-chip button:focus-visible,.chat-group-view-grouping-field select:focus-visible,.chat-group-view-grouping-field input:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.chat-group-view-date-filter{touch-action:none;flex:1;min-width:0;position:relative}.chat-group-view-sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.chat-group-view-date-accessible-slider{pointer-events:none}.chat-group-view-date-chart{width:100%;height:1.75rem;display:block;position:absolute;bottom:0;left:0;overflow:visible}.chat-group-view-histogram-bar{fill:hsl(var(--muted-foreground) / .14);transition:fill .18s ease-out}.chat-group-view-histogram-bar.is-in-range{fill:hsl(var(--muted-foreground) / .62)}.chat-group-view-histogram-bar.is-active{fill:#38bdf8}.chat-group-view-date-track{opacity:0;transition:opacity .18s ease-out}.chat-group-view-date-track.is-visible{opacity:1}.chat-group-view-date-track>line:first-child{stroke:hsl(var(--border));stroke-width:2px}.chat-group-view-date-track-active{stroke:#38bdf8;stroke-width:3px;stroke-linecap:round}.chat-group-view-date-track [data-group-view-date-range]{cursor:grab}.chat-group-view-date-track [data-group-view-date-range].is-dragging{cursor:grabbing}.chat-group-view-date-track circle{cursor:grab;fill:hsl(var(--background));stroke:#38bdf8;stroke-width:2px}.chat-group-view-date-track circle:active{cursor:grabbing}.chat-group-view-date-track circle.is-keyboard-focused{stroke:#1d4ed8;stroke-width:3px;filter:drop-shadow(0 0 2px #1d4ed8a6)}.chat-group-view-date-summary{color:hsl(var(--muted-foreground));white-space:nowrap;font-size:.625rem;position:absolute;top:.125rem;left:50%;transform:translate(-50%)}.chat-group-view-date-tooltips{opacity:0;pointer-events:none;transition:opacity .18s ease-out;position:absolute;inset-inline:0}.chat-group-view-date-tooltips.is-visible{opacity:1}.chat-group-view-date-tooltips{height:0;top:calc(100% + .75rem)}.chat-group-view-date-tooltips>span{color:#fff;white-space:nowrap;background:#38bdf8;border-radius:999px;padding:.125rem .5rem;font-size:.625rem;font-weight:600;position:absolute;top:0;transform:translate(-50%);box-shadow:0 1px 3px #0f172a29}.chat-group-view-date-selection-menu{z-index:30;flex-direction:column;align-items:center;gap:.375rem;display:flex;position:absolute;top:calc(100% + .75rem);transform:translate(-50%)}.chat-group-view-date-selection-pill{color:#fff;white-space:nowrap;background:#38bdf8;border-radius:999px;justify-content:center;align-items:center;max-width:11rem;min-height:1.5rem;padding:.125rem .625rem;font-size:.625rem;font-weight:600;display:inline-flex}.chat-group-view-date-selection-pill:hover{filter:brightness(1.05)}.chat-group-view-date-selection-pill:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.chat-group-view-date-input{border:1px solid hsl(var(--border));background:hsl(var(--background) / .94);width:auto;min-height:2rem;color:hsl(var(--foreground));border-radius:1.75rem;align-items:center;font-size:.6875rem;font-weight:400;display:inline-flex;box-shadow:0 1px 2px #0f172a14}.chat-group-view-date-input:focus-within{outline-offset:0;border-color:#2563eb;outline:1px solid #2563eb}.chat-group-view-date-input>input{width:6rem;min-width:0;color:inherit;font:inherit;text-align:center;background:0 0;border:0;outline:none;padding:.375rem 0 .375rem .25rem}.chat-group-view-date-input>input[aria-invalid=true]{text-underline-offset:.125rem;-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.chat-group-view-date-calendar{width:2rem;height:2rem;color:hsl(var(--muted-foreground));border-radius:999px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.chat-group-view-date-calendar>svg{pointer-events:none;width:.875rem;height:.875rem}.chat-group-view-date-calendar>input{cursor:pointer;opacity:0;width:100%;min-width:0;height:100%;position:absolute;inset:0}.chat-group-view-date-calendar:focus-within{background:hsl(var(--accent));color:hsl(var(--accent-foreground));outline-offset:-2px;outline:2px solid #2563eb}.chat-group-view-date-calendar:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.chat-group-view-date-step-controls{align-items:center;gap:.125rem;display:flex;position:absolute;top:0;right:0}.chat-group-view-date-step-controls>button{background:hsl(var(--background) / .78);width:1.75rem;height:1.75rem;color:hsl(var(--foreground) / .68);border-radius:.25rem;justify-content:center;align-items:center;display:inline-flex}.chat-group-view-date-step-controls>button:hover:not(:disabled){color:hsl(var(--foreground))}.chat-group-view-date-step-controls>button:disabled{opacity:.3}.chat-group-view-date-step-controls>button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.chat-group-view-date-step-controls svg{width:1.25rem;height:1.25rem}.chat-group-view-date-back{z-index:1;background:hsl(var(--background) / .9);width:1.5rem;height:1.5rem;color:hsl(var(--foreground) / .68);border-radius:.25rem;justify-content:center;align-items:center;padding:.125rem;font-size:.625rem;display:inline-flex;position:absolute;top:0;left:0}.chat-group-view-date-back>svg{width:1rem;height:1rem}.chat-group-view-date-back-label{white-space:nowrap;display:none}.chat-group-view-date-back:hover{width:auto;color:hsl(var(--foreground));gap:.25rem;padding-left:.25rem}.chat-group-view-date-back:hover>.chat-group-view-date-back-label,.chat-group-view-date-back:focus-visible>.chat-group-view-date-back-label{display:inline}.chat-group-view-date-back:focus-visible{outline-offset:2px;outline:2px solid #2563eb;gap:.25rem;width:auto;padding-left:.25rem}.chat-group-view-status{text-align:center;color:hsl(var(--muted-foreground));flex:1;justify-content:center;align-items:center;padding:2rem;font-size:.875rem;display:flex}.chat-group-view-pack{flex:1;min-height:0;position:relative;overflow:hidden}.chat-group-view-canvas{touch-action:none;display:block}.chat-group-view-backdrop{fill:#0000}.chat-group-circle{cursor:pointer;outline:none}.chat-group-circle-shape{fill:#6baaeb;stroke:#5298e3;stroke-width:1.5px;transition:fill .12s,stroke .12s}.chat-group-circle[data-kind=material]>.chat-group-circle-shape{fill:#b3d4f5;stroke:#93bfee}.chat-group-circle[data-kind=nc]>.chat-group-circle-shape{fill:#6baaeb;stroke:#5298e3}.chat-group-circle:hover>.chat-group-circle-shape{stroke:#1e3a8a}.chat-group-circle:focus-visible>.chat-group-circle-shape{stroke:#1d4ed8;stroke-width:3px}.chat-group-circle[aria-selected=true]>.chat-group-circle-shape{stroke:#1d4ed8;stroke-width:3.5px}.chat-group-circle-label{fill:#fff;pointer-events:none;text-anchor:middle;dominant-baseline:middle;font-weight:500}.chat-group-circle[data-kind=material]>.chat-group-circle-label{fill:#1e3a8a}@media (prefers-reduced-motion:reduce){.chat-group-view-filter-trigger,.chat-group-circle-shape,.chat-group-view-histogram-bar,.chat-group-view-date-track,.chat-group-view-date-tooltips{transition:none}}
.chat-workspace{flex:1;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}.chat-workspace-open{grid-template-columns:minmax(18rem, var(--chat-workspace-chat-width)) 5px minmax(20rem, 1fr)}.chat-workspace-chat,.chat-workspace-canvas{flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.chat-workspace-divider{z-index:20;cursor:col-resize;border-left:1px solid hsl(var(--border));border-right:1px solid hsl(var(--border));background:hsl(var(--muted));touch-action:none;position:relative}.chat-workspace-divider:hover{background:hsl(var(--muted-foreground) / .25)}.chat-workspace-canvas{background:hsl(var(--background))}.chat-workspace-group-surface{height:100%;min-height:0;position:relative}.chat-workspace-group-surface>.chat-graph-view-undo-toast{top:3.5rem}.chat-group-notice-on-graph{z-index:20;width:min(32rem,100% - 2rem);position:absolute;top:3.5rem;left:50%;transform:translate(-50%)}.chat-workspace-group-surface-hidden{visibility:hidden;pointer-events:none;position:absolute;inset:0}.chat-workspace-canvas-header{z-index:20;border-bottom:1px solid hsl(var(--border));flex-shrink:0;position:relative}.chat-workspace-canvas-header-row{grid-template-columns:minmax(0,max-content) minmax(10rem,1fr) auto;align-items:center;gap:.5rem;height:3rem;padding:0 .75rem;display:grid}.chat-workspace-canvas-header-slot{align-self:stretch;min-width:0;display:flex}.chat-workspace-canvas[data-canvas-mode=preview]{box-shadow:inset 0 0 0 2px hsl(var(--muted-foreground) / .35)}.chat-workspace-canvas[data-canvas-mode=preview]>header{background:hsl(var(--muted))}.chat-workspace-canvas-body{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.chat-workspace-canvas-body--split{flex-direction:row}.chat-workspace-graph{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.chat-workspace-details{border-left:1px solid hsl(var(--border));background:hsl(var(--background));flex-direction:column;flex-shrink:0;width:min(24rem,45%);min-height:0;padding:1rem;display:flex;overflow:hidden}@media (max-width:47.999rem){.chat-workspace-open{grid-template-columns:minmax(0,1fr)}.chat-workspace-divider{display:none}.chat-workspace-canvas{z-index:30;position:absolute;inset:0}.chat-workspace-canvas-body--split{flex-direction:column}.chat-workspace-details{border-top:1px solid hsl(var(--border));border-left:none;width:100%;max-height:min(24rem,45%)}}@media (prefers-reduced-motion:no-preference){.chat-workspace-canvas{animation:.18s ease-out chat-workspace-enter}}@keyframes chat-workspace-enter{0%{opacity:0}}.chat-composer-input{position:relative}.chat-composer-input p{z-index:1;margin:0;position:relative}.chat-composer-input[data-empty=true]:after{content:attr(data-placeholder);z-index:0;color:hsl(var(--muted-foreground));pointer-events:none;position:absolute;top:.5rem;left:.5rem}
