.summary-progress{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;margin-bottom:24px}.summary-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.summary-progress-header h4{margin:0;font-size:18px;font-weight:600;color:#111827}.summary-progress-stats{display:flex;gap:24px}.summary-progress-stat{font-size:14px;color:#6b7280}.summary-progress-stat strong{color:#111827;font-weight:600}.summary-progress-bar-container{width:100%;height:8px;background:#f3f4f6;border-radius:4px;overflow:hidden;margin-bottom:16px}.summary-progress-bar{height:100%;background:linear-gradient(90deg,#3b82f6,#2563eb);transition:width .3s ease}.summary-progress-current{display:flex;align-items:center;gap:12px;padding:12px;background:#f9fafb;border-radius:6px;margin-bottom:16px;font-size:14px;color:#374151}.summary-progress-spinner{font-size:18px;animation:spin 1s linear infinite}.summary-progress-sections{max-height:400px;overflow-y:auto;border:1px solid #e5e7eb;border-radius:6px}.summary-progress-table{width:100%;border-collapse:collapse;font-size:13px}.summary-progress-table thead{background:#f9fafb;position:sticky;top:0;z-index:1}.summary-progress-table th{padding:10px 16px;text-align:left;font-weight:600;color:#6b7280;border-bottom:1px solid #e5e7eb}.summary-progress-table td{padding:10px 16px;border-bottom:1px solid #f3f4f6}.summary-progress-table tbody tr:last-child td{border-bottom:none}.summary-progress-icon{width:60px;text-align:center;font-size:16px}.summary-progress-name{color:#374151}.summary-progress-duration{color:#6b7280;text-align:left;font-variant-numeric:tabular-nums}.summary-progress-status-completed{background:#f0fdf4}.summary-progress-status-completed .summary-progress-icon{color:#16a34a}.summary-progress-status-completed .summary-progress-name{color:#166534}.summary-progress-status-progress{background:#eff6ff}.summary-progress-status-progress .summary-progress-icon{color:#3b82f6;animation:spin 1s linear infinite}.summary-progress-status-progress .summary-progress-name{color:#1e40af;font-weight:500}.summary-progress-status-pending{background:#fff}.summary-progress-status-pending .summary-progress-icon{color:#d1d5db}.summary-progress-status-pending .summary-progress-name{color:#9ca3af}.summary-progress-status-error{background:#fef2f2}.summary-progress-status-error .summary-progress-icon{color:#dc2626}.summary-progress-status-error .summary-progress-name{color:#991b1b}.heirs-table-container{position:relative;overflow-x:auto;border-radius:8px;box-shadow:0 1px 3px #0000001a;background:#fff}.heirs-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}.heirs-table th{background:#f8fafc;border-bottom:2px solid #e2e8f0;padding:12px 16px;text-align:left;font-weight:600;color:#374151;font-size:13px;letter-spacing:.025em}.heirs-table td{padding:12px 16px;border-bottom:1px solid #f1f5f9;vertical-align:middle;transition:background-color .15s ease}.heirs-table tbody tr:hover{background:#f8fafc}.heirs-table tbody tr:last-child td{border-bottom:none}.heirs-share-input{width:100%;padding:6px 8px;border:2px solid #3b82f6;border-radius:4px;font-size:14px;background:#fff;outline:none;transition:border-color .15s ease}.heirs-share-input:focus{border-color:#1d4ed8;box-shadow:0 0 0 3px #3b82f61a}.heirs-share-value{cursor:pointer;padding:6px 8px;border-radius:4px;transition:all .15s ease;display:inline-block;min-width:60px;color:#374151}.heirs-share-value:hover{background:#f3f4f6;color:#1f2937}.heirs-loading-cell{display:flex;align-items:center;justify-content:flex-end;height:20px}.heirs-skeleton{height:16px;width:60px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200% 100%;border-radius:4px;animation:skeleton-shimmer 1.5s ease-in-out infinite;position:relative;overflow:hidden}.heirs-skeleton:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);animation:skeleton-wave 1.5s ease-in-out infinite}@keyframes skeleton-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes skeleton-wave{0%{transform:translate(-100%)}to{transform:translate(300%)}}.heirs-currency{text-align:right;font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace;color:#374151}.heirs-total-cell{font-weight:600;color:#059669}.heirs-status{text-align:center;font-size:16px}.heirs-save-btn,.heirs-cancel-btn,.heirs-edit-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;cursor:pointer;transition:all .15s ease;position:relative}.heirs-save-btn:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.heirs-save-btn:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.heirs-cancel-btn{background:#ef4444;color:#fff}.heirs-cancel-btn:hover:not(:disabled){background:#dc2626;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.heirs-cancel-btn:disabled{background:#9ca3af;cursor:not-allowed}.heirs-edit-btn{background:#f3f4f6;color:#6b7280}.heirs-edit-btn:hover:not(:disabled){background:#e5e7eb;color:#374151;transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.heirs-edit-btn:disabled{opacity:.5;cursor:not-allowed}.heirs-totals-row{background:#f8fafc;border-top:2px solid #e2e8f0}.heirs-totals-row td{font-weight:600;color:#374151;border-bottom:none;padding:16px}.heirs-totals-label{color:#1f2937;font-size:15px}@media (max-width: 768px){.heirs-table{font-size:12px}.heirs-table th,.heirs-table td{padding:8px 12px}.heirs-save-btn,.heirs-cancel-btn,.heirs-edit-btn{width:28px;height:28px}.heirs-edit-actions{gap:6px}}.heirs-table tbody tr.updating{background:#fef3c7;transition:background-color .3s ease}.heirs-table tbody tr.updating td{color:#92400e}.heirs-share-value,.heirs-save-btn,.heirs-cancel-btn,.heirs-edit-btn{transform-origin:center}.heirs-save-btn:active:not(:disabled){transform:scale(.95)}.heirs-cancel-btn:active:not(:disabled){transform:scale(.95)}.heirs-edit-btn:active:not(:disabled){transform:scale(.95)}*{box-sizing:border-box}body{margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.billing-preview-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center;padding:20px}.billing-preview-modal{background:#fff;border-radius:12px;width:90vw;max-width:1200px;height:90vh;max-height:900px;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.billing-preview-header{padding:24px 32px;border-bottom:1px solid #e5e7eb;background:#f9fafb;border-radius:12px 12px 0 0}.billing-preview-header h2{margin:0 0 8px;font-size:24px;font-weight:600;color:#111827}.billing-preview-subtitle{margin:0;font-size:14px;color:#6b7280}.billing-preview-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.billing-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:500;border:1px solid transparent;background:#f8fafc;color:#0f172a}.billing-chip svg{display:block}.chip-draft{background:#fff7ed;color:#9a3412;border-color:#fdba74}.chip-live{background:#ecfdf3;color:#166534;border-color:#4ade80}.chip-time{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.chip-cache{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.billing-preview-summary{padding:24px 32px;border-bottom:1px solid #e5e7eb;background:#fff}.billing-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.billing-summary-item{display:flex;justify-content:space-between;padding:12px;background:#f8fafc;border-radius:8px;border:1px solid #e5e7eb}.billing-summary-item.billing-summary-total{background:#fef3c7;border-color:#f59e0b;font-weight:600}.billing-summary-label{color:#6b7280;font-size:14px}.billing-summary-value{color:#111827;font-weight:500}.billing-preview-pdf-container{flex:1;padding:32px;display:flex;flex-direction:column}.billing-preview-pdf-wrapper{width:100%;height:100%;display:flex;flex-direction:column}.billing-preview-pdf-toolbar{display:flex;justify-content:flex-end;padding:8px;background:#f9fafb;border:1px solid #d1d5db;border-bottom:none;border-radius:8px 8px 0 0}.billing-preview-pdf-download{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;font-size:14px;cursor:pointer;transition:all .2s ease}.billing-preview-pdf-download:hover{background:#f3f4f6;border-color:#9ca3af}.billing-preview-pdf-download svg{width:16px;height:16px}.billing-preview-pdf{width:100%;height:100%;border:1px solid #d1d5db;border-top:none;border-radius:0 0 8px 8px;background:#fff;min-height:400px}.billing-preview-pdf-error{width:100%;height:100%;border:2px dashed #d1d5db;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#f9fafb}.billing-preview-pdf-error-content{text-align:center;color:#6b7280}.billing-preview-pdf-error-content svg{margin-bottom:16px;opacity:.5}.billing-preview-pdf-error-content h3{margin:0 0 8px;font-size:18px;color:#374151}.billing-preview-pdf-error-content p{margin:0;font-size:14px}.billing-preview-actions{padding:24px 32px;border-top:1px solid #e5e7eb;background:#f9fafb;border-radius:0 0 12px 12px;display:flex;justify-content:flex-end;gap:12px}.billing-preview-button{padding:12px 24px;border-radius:8px;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s ease;border:1px solid}.billing-preview-button:disabled{opacity:.5;cursor:not-allowed}.billing-preview-button-cancel{background:#fff;color:#6b7280;border-color:#d1d5db}.billing-preview-button-cancel:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.billing-preview-button-confirm{background:#059669;color:#fff;border-color:#059669}.billing-preview-button-confirm:hover:not(:disabled){background:#047857;border-color:#047857}.floating-button{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;border:none;background:linear-gradient(135deg,#111827,#0f172a);color:#f8fafc;font-weight:600;letter-spacing:.02em;cursor:pointer;box-shadow:0 12px 32px #0f172a40;transition:transform .2s ease,box-shadow .2s ease,background .3s ease;z-index:10000;pointer-events:auto}.floating-button:hover{transform:translateY(-1px) scale(1.02);box-shadow:0 16px 36px #0f172a47;background:linear-gradient(135deg,#0b1220,#0f172a)}.floating-button:active{transform:scale(.98)}.assistant-panel{position:fixed;top:0;right:0;height:100vh;width:35vw;min-width:320px;max-width:520px;background:#fff;box-shadow:-12px 0 32px #0f172a29;display:flex;flex-direction:column;transform:translate(100%);opacity:0;transition:transform .35s ease,opacity .25s ease,width .3s ease,max-width .3s ease;z-index:10001;pointer-events:auto}.assistant-panel.maximized{width:90vw;max-width:90vw}.assistant-panel.standalone{width:100vw;max-width:100vw;left:0;right:auto}.assistant-panel.open{transform:translate(0);opacity:1}.assistant-panel.closed{pointer-events:none}.assistant-panel-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e2e8f0;background:#fff}.assistant-panel-kicker{margin:0;color:#64748b;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.assistant-panel-title{margin:2px 0 0;font-size:20px;font-weight:700;letter-spacing:-.01em}.assistant-panel-actions{display:flex;align-items:center;gap:8px}.assistant-panel-action{border:none;background:#f3f4f6;width:32px;height:32px;border-radius:6px;color:#4b5563;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;padding:0}.assistant-panel-action:hover{background:#e5e7eb;color:#111827}.assistant-panel-action:active{transform:scale(.95)}.assistant-panel-content{flex:1;overflow-y:auto;padding:16px 20px;background:linear-gradient(180deg,#f8fafc,#fff 60%)}.assistant-panel-footer{border-top:1px solid #e2e8f0;padding:14px 16px;background:#fff}.message-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.message-item{display:flex;flex-direction:column;gap:6px;max-width:100%}.message-item.user{align-items:flex-end}.message-item.assistant{align-items:flex-start}.message-role{margin:0;font-size:12px;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em}.message-bubble{margin:0;padding:12px 14px;border-radius:14px;background:#0f172a;color:#f8fafc;line-height:1.5;box-shadow:0 6px 18px #0f172a26;width:fit-content;max-width:100%;white-space:pre-wrap;word-break:break-word}.message-item.assistant .message-bubble{background:#fff;color:#0f172a;border:1px solid #e2e8f0;box-shadow:0 8px 18px #0f172a1f}.message-item.pending .message-bubble{opacity:.8}.external-link{display:inline-flex;align-items:center;gap:4px;color:#2563eb;text-decoration:none;font-weight:500;padding:2px 8px;margin:0 2px;border-radius:6px;background:#eff6ff;transition:all .2s ease}.external-link:hover{background:#dbeafe;color:#1d4ed8;text-decoration:none}.external-link:after{content:"↗";font-size:.85em;opacity:.7}.md-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px;background:#f8fafc;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0}.md-table thead{background:#f1f5f9}.md-table th{padding:10px 12px;text-align:left;font-weight:600;color:#475569;border-bottom:2px solid #e2e8f0;font-size:12px;text-transform:uppercase;letter-spacing:.03em}.md-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;color:#334155}.md-table tbody tr:last-child td{border-bottom:none}.md-table tbody tr:hover{background:#f1f5f9}.md-table th:last-child,.md-table td:last-child{text-align:right}.md-divider{border:none;border-top:1px solid #e2e8f0;margin:16px 0}.message-empty{padding:32px 24px;text-align:center;color:#475569;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}.message-empty-title{margin:0 0 6px;font-weight:700;color:#0f172a}.message-empty-text{margin:0;color:#64748b}.message-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}.usage-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:10px}.usage-chip{display:inline-flex;align-items:center;gap:10px;padding-right:10px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;box-shadow:0 8px 18px #0f172a14}.usage-chip.accent{background:linear-gradient(135deg,#0f172a,#1f2937);color:#f8fafc;border-color:transparent}.usage-label{margin:0;font-size:12px;color:#64748b;letter-spacing:.02em}.usage-chip.accent .usage-label{color:#ffffffd1}.usage-value{margin:2px 0 0;font-size:15px;font-weight:700;color:#0f172a}.usage-chip.accent .usage-value{color:#f8fafc}.usage-sub{display:block;margin-top:2px;font-size:12px;color:#94a3b8}.usage-chip.accent .usage-sub{color:#fffc}.usage-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#e2e8f0;color:#0f172a}.usage-icon--time{background:#4ade8029;color:#15803d}.usage-icon--cost{background:#2563eb1f;color:#1d4ed8}.usage-icon--tokens{background:#0f172a14;color:#0f172a}.usage-breakdown{display:flex;flex-wrap:wrap;gap:8px;margin-top:0;flex-basis:100%}.usage-inline-detail{font-size:12px;color:#475569;border-radius:10px;padding:6px 10px;background:#eef2ff;border:1px solid #d6dbe8}.usage-tooltip-wrapper{position:relative;display:inline-flex;align-items:center}.usage-tooltip-trigger{width:32px;height:32px;border-radius:12px;border:none;padding:0;background:#2563eb1f;color:#1d4ed8;cursor:help;display:inline-flex;align-items:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:transform .15s ease,background .15s ease;outline:none}.usage-tooltip-trigger:hover,.usage-tooltip-trigger:focus-visible{transform:translateY(-2px);background:#2563eb33;box-shadow:0 0 0 3px #3b82f666}.usage-tooltip-panel{position:absolute;top:calc(100% + 4px);left:0;min-width:220px;padding:12px;border-radius:12px;background:#0f172a;color:#f8fafc;box-shadow:0 16px 32px #0f172a80;opacity:0;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease;pointer-events:none;z-index:10}.usage-tooltip-wrapper:hover .usage-tooltip-panel,.usage-tooltip-wrapper:focus-within .usage-tooltip-panel{opacity:1;transform:translateY(0);pointer-events:auto}.usage-tooltip-panel-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:4px}.usage-tooltip-panel-row:last-of-type{margin-bottom:0}.usage-tooltip-panel-row span{color:#f8fafccc;font-size:12px}.usage-tooltip-detail{margin:8px 0 0;font-size:12px;color:#f8fafcb8}.usage-mini-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;background:#eef2ff;border:1px solid #d6dbe8;color:#0f172a;font-size:12px;font-weight:600}.usage-mini-chip:before{content:"";width:6px;height:6px;border-radius:999px;background:#2563eb}.prompt-form{display:flex;flex-direction:column;gap:8px}.context-chips{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap;align-items:center}.context-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f0f7ff;border:1px solid #bfdbfe;border-radius:16px;animation:slideIn .2s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}.context-chip-label{font-size:13px;font-weight:500;color:#0f172a}.context-chip-remove{background:none;border:none;cursor:pointer;padding:2px 4px;font-size:14px;color:#64748b;transition:color .2s ease;display:flex;align-items:center;justify-content:center}.context-chip-remove:hover{color:#0f172a}.context-chip-remove:active{transform:scale(.95)}.prompt-label{font-size:12px;color:#94a3b8;letter-spacing:.06em;text-transform:uppercase;margin:0}.prompt-field{display:flex;flex-direction:column;gap:10px}.prompt-textarea{flex:1;border-radius:12px;border:1px solid #cbd5e1;padding:12px 14px;font-size:15px;line-height:1.5;resize:vertical;min-height:72px;background:#f8fafc;color:#0f172a;transition:border .2s ease,box-shadow .2s ease;font-family:inherit;width:100%;box-sizing:border-box}.prompt-textarea:focus{outline:none;border-color:#0f172a;box-shadow:0 0 0 3px #0f172a1a;background:#fff}.prompt-textarea:disabled{opacity:.6;cursor:not-allowed}.prompt-send{border:none;border-radius:12px;background:#0f172a;color:#f8fafc;padding:12px 16px;font-weight:600;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .3s ease;box-shadow:0 10px 24px #0f172a2e;align-self:flex-end}.prompt-send:hover:enabled{transform:translateY(-1px);box-shadow:0 12px 28px #0f172a3d}.prompt-send:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.prompt-helper{margin:0;font-size:12px;color:#94a3b8}.history-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;z-index:30;animation:fadeIn .2s ease;pointer-events:auto}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.history-panel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:90%;max-width:480px;max-height:600px;background:#fff;border-radius:8px;box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;z-index:31000;animation:slideIn .3s ease;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;pointer-events:auto}@keyframes slideIn{0%{opacity:0;transform:translate(-50%,-48%)}to{opacity:1;transform:translate(-50%,-50%)}}.history-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb}.history-title{margin:0;font-size:16px;font-weight:600;color:#111827}.history-close{border:none;background:#f3f4f6;width:32px;height:32px;border-radius:6px;color:#4b5563;font-size:20px;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;line-height:1}.history-close:hover{background:#e5e7eb;color:#111827}.history-close:active{transform:scale(.95)}.history-content{flex:1;overflow-y:auto;padding:8px 0}.history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:12px}.history-empty-icon{width:48px;height:48px;border-radius:50%;background:#f3f4f6;position:relative}.history-empty-icon:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;border:2px solid #d1d5db;border-radius:4px}.history-empty-text{margin:0;color:#9ca3af;font-size:13px;font-weight:400}.history-list{list-style:none;margin:0;padding:0}.history-item{border-bottom:1px solid #f3f4f6}.history-item:last-child{border-bottom:none}.history-item-row{display:flex;align-items:stretch;gap:8px;padding:0 12px}.history-item-button{flex:1;border:none;background:#fff;padding:16px 20px;cursor:pointer;transition:background-color .15s ease;text-align:left;display:flex;flex-direction:column;gap:8px}.history-item-button:hover{background:#f9fafb}.history-item-header{display:flex;align-items:center;gap:10px}.history-item-icon{width:16px;height:16px;flex-shrink:0;position:relative;background:#fff;border:1.5px solid #0078d4;border-radius:50%}.history-item-icon:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:1.5px;background:#0078d4;box-shadow:0 3px #0078d4,0 -3px #0078d4}.history-item-date{font-size:12px;color:#6b7280;font-weight:500}.history-item-preview{margin:0;font-size:13px;color:#374151;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.history-copy{align-self:center;border:1px solid #e5e7eb;background:#f9fafb;color:#4b5563;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.history-copy:hover{background:#eef2ff;border-color:#c7d2fe;color:#1d4ed8}.history-copy:active{transform:scale(.96)}.history-copy-icon{display:block}.history-footer{border-top:1px solid #e5e7eb;padding:16px 20px;display:flex;flex-direction:column;gap:12px}.history-load-more{width:100%;border:1px solid #e5e7eb;background:#fff;color:#1d4ed8;padding:10px 16px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.history-load-more:hover:not(:disabled){background:#eef2ff;border-color:#c7d2fe}.history-load-more:active:not(:disabled){transform:scale(.98)}.history-load-more:disabled{opacity:.5;cursor:not-allowed}.history-clear{width:100%;border:1px solid #e5e7eb;background:#fff;color:#dc2626;padding:10px 16px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.history-clear:hover{background:#fef2f2;border-color:#fecaca}.history-clear:active{transform:scale(.98)}.prompt-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.cache-label{display:flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none}.cache-checkbox{cursor:pointer;width:16px;height:16px;accent-color:#0f172a}.cache-checkbox:disabled{cursor:not-allowed;opacity:.5}.cache-text{font-size:12px;color:#64748b;white-space:nowrap}.analysis-card{color:#111827;border-radius:8px;padding:0;border:1px solid #e5e7eb;box-shadow:0 1px 3px #00000014;min-width:360px;max-width:100%;display:flex;flex-direction:column;gap:0;margin-bottom:16px;background:#fff}.analysis-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:20px;background:#fff;border-bottom:1px solid #f3f4f6}.analysis-kicker{margin:0 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;font-weight:500}.analysis-title{margin:0;font-size:16px;font-weight:600;color:#111827;letter-spacing:-.01em}.analysis-counters{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;align-items:center}.analysis-badge{background:#f3f4f6;color:#374151;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;border:none;white-space:nowrap}.analysis-section{padding:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;display:flex;flex-direction:column;box-shadow:0 1px 3px #0000000f;overflow:hidden}.analysis-section-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.analysis-section-title{display:flex;align-items:center;gap:12px}.analysis-section h4{margin:0;font-size:14px;font-weight:600;color:#111827;letter-spacing:-.01em}.analysis-count{background:#e5e7eb;color:#6b7280;border-radius:12px;padding:2px 8px;font-size:11px;font-weight:600}.analysis-duration{color:#6b7280;font-size:12px;font-weight:400}.analysis-subtle{color:#94a3b8;font-size:12px}.analysis-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px;gap:12px}.analysis-empty-icon{width:48px;height:48px;border-radius:50%;background:#f3f4f6;position:relative}.analysis-empty-icon:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;border:2px solid #d1d5db;border-radius:4px}.analysis-empty-text{margin:0;color:#9ca3af;font-size:13px;font-weight:400}.analysis-grid{display:grid;grid-template-columns:1fr;gap:0}.analysis-result{background:#fff;border-bottom:1px solid #f3f4f6;padding:16px 20px;display:flex;flex-direction:column;gap:12px;transition:background-color .15s ease;cursor:pointer;position:relative}.analysis-result:last-child{border-bottom:none}.analysis-result:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#0078d4;transform:scaleX(0);transition:transform .15s ease}.analysis-result:hover{background:#f9fafb}.analysis-result:hover:before{transform:scaleX(1)}.analysis-result-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.analysis-file-info{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.analysis-file-icon{width:16px;height:20px;flex-shrink:0;position:relative;background:#fff;border:1.5px solid #0078d4;border-radius:2px}.analysis-file-icon:before{content:"";position:absolute;top:-1.5px;right:-1.5px;width:0;height:0;border-style:solid;border-width:0 6px 6px 0;border-color:transparent #0078d4 transparent transparent}.analysis-file-icon:after{content:"";position:absolute;top:6px;left:3px;right:3px;height:1.5px;background:#0078d4;box-shadow:0 3px #0078d4,0 6px #0078d4}.analysis-filename{margin:0;font-weight:600;font-size:13px;color:#111827;word-break:break-word;line-height:1.4}.analysis-download-btn{border:none;background:transparent;padding:4px;cursor:pointer;color:#64748b;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease;flex-shrink:0}.analysis-download-btn:hover{background:#f1f5f9;color:#0078d4;transform:translateY(-1px)}.analysis-download-btn:active{transform:translateY(0);background:#e2e8f0}.analysis-summary{margin:0;color:#4b5563;line-height:1.5;font-size:13px}.analysis-summary strong{font-weight:600;color:#111827}.analysis-summary ul{margin:8px 0;padding-left:20px;list-style-type:disc}.analysis-summary li{margin:4px 0;line-height:1.5}.analysis-summary p{margin:0 0 8px}.analysis-summary p:last-child{margin-bottom:0}.analysis-summary h1{margin:12px 0 6px;font-size:18px;font-weight:700;color:#111827;line-height:1.3}.analysis-summary h1:first-child{margin-top:0}.analysis-summary h2{margin:10px 0 6px;font-size:16px;font-weight:700;color:#111827;line-height:1.3}.analysis-summary h2:first-child{margin-top:0}.analysis-summary h3{margin:8px 0 4px;font-size:14px;font-weight:700;color:#111827;line-height:1.3}.analysis-summary h3:first-child{margin-top:0}.analysis-summary h4{margin:8px 0 4px;font-size:13px;font-weight:700;color:#111827;line-height:1.3}.analysis-summary h4:first-child{margin-top:0}.analysis-summary h5{margin:6px 0 4px;font-size:12px;font-weight:700;color:#111827;line-height:1.3}.analysis-summary h5:first-child{margin-top:0}.analysis-result-footer{display:flex;justify-content:space-between;align-items:center}.analysis-timestamp{margin:0;font-size:11px;color:#9ca3af;font-weight:400}.analysis-tag-cache{background:#ecfdf5;color:#065f46;border:1px solid #d1fae5;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:600;flex-shrink:0}.analysis-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}.analysis-missing,.analysis-error{padding:12px 20px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #f3f4f6;background:#fff;transition:background-color .15s ease}.analysis-missing:last-child,.analysis-error:last-child{border-bottom:none}.analysis-missing:hover,.analysis-error:hover{background:#f9fafb}.analysis-error{background:#fef2f2;border-left:3px solid #dc2626}.analysis-error:hover{background:#fee2e2}.analysis-error .analysis-filename{color:#991b1b;font-weight:600;font-size:13px}.analysis-error .analysis-subtle{color:#7f1d1d;font-size:12px}.analysis-missing{border-left:3px solid #f59e0b;background:#fffbeb}.analysis-missing:hover{background:#fef3c7}.analysis-missing .analysis-filename{color:#92400e;font-weight:600;font-size:13px}.analysis-missing .analysis-subtle{color:#78350f;font-size:12px}.analysis-streaming{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#0078d4;margin-left:8px;font-weight:500;padding:4px 10px;background:#f0f9ff;border-radius:4px;border:1px solid #bae6fd}.analysis-streaming:before{content:"";width:6px;height:6px;border-radius:50%;background:#0078d4;animation:analysisPulse 1.5s ease-in-out infinite}@keyframes analysisPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)}}.analysis-loader-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px dashed #cbd5e1;border-radius:10px;background:linear-gradient(135deg,#f8fafc,#fff);margin-bottom:-16px}.message-loader{margin:0;width:100%;box-sizing:border-box}.analysis-loader-sticky{position:sticky;bottom:0;margin-top:12px;background:linear-gradient(180deg,#ffffffe6,#fff 60%);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding:6px 0 0;border-top:1px solid #e5e7eb;z-index:2}.analysis-loader-container{margin-top:12px;padding:6px 0 0}.analysis-loader{display:inline-flex;align-items:center;justify-content:center;gap:4px}.analysis-loader span{width:8px;height:8px;border-radius:50%;background:#2563eb;animation:analysisPulseLoader .9s infinite ease-in-out}.analysis-loader span:nth-child(2){animation-delay:.15s;opacity:.85}.analysis-loader span:nth-child(3){animation-delay:.3s;opacity:.7}.analysis-loader-text{margin:0;font-size:13px;color:#1e293b;font-weight:500}.analysis-loader-subtext{margin:2px 0 0;font-size:12px;color:#475569;font-weight:400}@keyframes analysisPulseLoader{0%{transform:translateY(0);opacity:.6}50%{transform:translateY(-3px);opacity:1}to{transform:translateY(0);opacity:.6}}.analysis-skeleton{animation:shimmer 1.5s infinite;background:linear-gradient(90deg,#f9fafb 25%,#f3f4f6,#f9fafb 75%);background-size:200% 100%;min-height:80px;border-bottom:1px solid #f3f4f6;padding:16px 20px}.analysis-skeleton:last-child{border-bottom:none}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.analysis-skeleton-line{display:block;height:1em;background:#e5e7eb;border-radius:4px;margin:8px 0}@media (max-width: 900px){.assistant-panel{width:100vw;max-width:100vw;min-width:0}}.data-table-wrapper{margin:16px 0;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000d;background:#fff}.data-table-title{padding:14px 16px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;font-size:15px;font-weight:600;letter-spacing:.01em;border-bottom:2px solid #334155}.data-table-container{overflow-x:auto;max-width:100%}.data-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}.data-table thead{background:linear-gradient(180deg,#f9fafb,#f3f4f6);border-bottom:2px solid #e5e7eb}.data-table-header{padding:12px 16px;text-align:left;font-weight:600;color:#1f2937;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease;white-space:nowrap}.data-table-header:hover{background-color:#3b82f60d}.data-table-header-content{display:flex;align-items:center;gap:8px}.data-table-sort-icon{color:#3b82f6;font-size:12px;font-weight:700}.data-table tbody tr{border-bottom:1px solid #f3f4f6;transition:background-color .15s ease}.data-table tbody tr:hover{background-color:#f9fafb}.data-table tbody tr:last-child{border-bottom:none}.data-table-cell{padding:12px 16px;color:#374151}.data-table-footer{padding:12px 16px;background:#fafbfc;border-top:1px solid #e5e7eb;font-size:13px;color:#6b7280;text-align:right}@media (max-width: 768px){.data-table{font-size:13px}.data-table-header,.data-table-cell{padding:10px 12px}.data-table-footer{padding:10px 12px;font-size:12px}}.model-selector-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0006;z-index:99998;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:auto}.model-selector-panel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:12px;box-shadow:0 4px 24px #00000026;width:90%;max-width:480px;max-height:80vh;overflow:hidden;z-index:99999;display:flex;flex-direction:column;pointer-events:auto}.model-selector-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e5e7eb}.model-selector-header h3{margin:0;font-size:18px;font-weight:600;color:#1f2937}.model-selector-close{background:none;border:none;font-size:28px;line-height:1;color:#6b7280;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.model-selector-close:hover{background-color:#f3f4f6;color:#1f2937}.model-selector-loading{padding:40px 24px;text-align:center;color:#6b7280;font-size:14px}.model-selector-list{overflow-y:auto;padding:16px;flex:1}.model-option{width:100%;background:#fff;border:1.5px solid #e5e7eb;border-radius:8px;padding:16px;margin-bottom:12px;cursor:pointer;transition:all .2s;text-align:left}.model-option:hover{border-color:#3b82f6;background-color:#f9fafb}.model-option.selected{border-color:#3b82f6;background-color:#eff6ff}.model-option-content{display:flex;flex-direction:column;gap:6px}.model-option-header{display:flex;justify-content:space-between;align-items:center}.model-option-name{font-size:15px;font-weight:600;color:#1f2937}.model-option-check{color:#3b82f6;flex-shrink:0}.model-option-description{margin:0;font-size:13px;color:#6b7280;line-height:1.4}.folder-cache-indicator{position:relative}.folder-cache-indicator:hover:after{content:attr(title);position:absolute;bottom:100%;left:50%;transform:translate(-50%);background:#374151;color:#fff;padding:8px 12px;border-radius:6px;font-size:12px;white-space:nowrap;z-index:1000;margin-bottom:5px}.folder-cache-indicator:hover:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:5px solid transparent;border-top-color:#374151;z-index:1000}.folder-genealex-link{transition:all .2s ease-in-out}.folder-genealex-link:hover{transform:scale(1.1)}.folder-genealex-link:focus{outline:2px solid #3b82f6;outline-offset:2px}.heirs-table-container{width:100%;overflow-x:auto;margin:1rem 0}.heirs-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.heirs-table th{background:#f8f9fa;padding:12px;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb}.heirs-table td{padding:12px;border-bottom:1px solid #f3f4f6}.heirs-table tr:last-child td{border-bottom:none}.heirs-share-value{cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s;display:inline-block;min-width:60px}.heirs-share-value:hover{background-color:#f3f4f6}.heirs-share-input{width:80px;padding:4px 8px;border:1px solid #d1d5db;border-radius:4px;font-size:14px}.heirs-share-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.heirs-edit-actions{display:flex;gap:8px;align-items:center}.heirs-save-btn,.heirs-cancel-btn,.heirs-edit-btn{padding:6px;border:none;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.heirs-save-btn{background:#10b981;color:#fff}.heirs-save-btn:hover{background:#059669}.heirs-save-btn:disabled{opacity:.6;cursor:not-allowed}.heirs-cancel-btn{background:#6b7280;color:#fff}.heirs-cancel-btn:hover{background:#4b5563}.heirs-edit-btn{background:#f3f4f6;color:#374151}.heirs-edit-btn:hover{background:#e5e7eb}.heirs-edit-btn:disabled{opacity:.6;cursor:not-allowed}.heirs-spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.heirs-currency{text-align:right;font-family:SF Mono,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:14px}.heirs-total-cell{font-weight:600}.heirs-status{font-size:13px;color:#6b7280}.heirs-totals-row{background-color:#f8f9fa;border-top:2px solid #e5e7eb}.heirs-totals-row td{padding:16px 12px;font-size:14px;border-bottom:none}.heirs-totals-label{font-weight:700;color:#111827;text-transform:uppercase;letter-spacing:.05em}
