@import"https://fonts.googleapis.com/css2?family=Nunito&display=swap";@import"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css";@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap";.chat-data-table-container{overflow-x:auto;padding:.75rem;margin-top:1rem;background:var(--card-bg);border-radius:var(--card-radius);box-shadow:0 .4rem 1rem var(--shadow);transition:transform .3s ease,box-shadow .3s ease}.chat-data-table{width:100%;border-collapse:collapse;color:var(--color-primary);font-family:Inter,sans-serif}.chat-data-table th,.chat-data-table td{padding:.5rem 1rem;text-align:left;white-space:nowrap}.chat-data-table th{background-color:#6cbcff1a;font-weight:600}.chat-data-table tbody tr{transition:background-color .3s ease}.chat-data-table tbody tr:hover{background-color:#6cbcff33}.chat-data-table-card{background:var(--card-bg);border-radius:var(--card-radius);box-shadow:0 .4rem 1rem var(--shadow);display:flex;flex-direction:column;padding:1rem;gap:.5rem;width:100%;max-width:100%}.chat-data-table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.export-button{background-color:#4a90e2;color:#fff;border:none;padding:.4rem .8rem;border-radius:.4rem;cursor:pointer;transition:background-color .3s ease}.export-button:hover{background-color:#357abd}.chat-data-table-container{overflow-x:auto;overflow-y:auto;max-height:400px}.chat-data-table{width:100%;border-collapse:collapse;color:var(--color-primary);font-family:Inter,sans-serif;font-size:.85rem}.chat-data-table th,.chat-data-table td{padding:.5rem .8rem;text-align:left;white-space:nowrap}.chat-data-table th{background-color:#6cbcff26;font-weight:600;position:sticky;top:0;z-index:1}.chat-data-table tbody tr:nth-child(odd){background-color:#ffffff05}.chat-data-table tbody tr:hover{background-color:#6cbcff1a}.claims-report{max-width:78ch}.chat-bubble-assistant .md-callout{border-left:4px solid var(--link-color);padding:.5rem .75rem;margin:.5rem 0 1rem;background:#00000008}[data-theme=dark] .chat-bubble-assistant .md-callout{background:#ffffff0a}.chat-bubble-assistant .md-details{margin:.25rem 0 .75rem;border:1px solid rgba(127,127,127,.25);border-radius:8px;padding:.4rem .6rem}.chat-bubble-assistant .md-summary{cursor:pointer;font-weight:600;list-style:none}.chat-bubble-assistant .md-summary::-webkit-details-marker{display:none}.chat-bubble-assistant .md-summary:before{content:"▸";display:inline-block;margin-right:6px;transition:transform .15s ease}.chat-bubble-assistant .md-details[open] .md-summary:before{transform:rotate(90deg)}.chat-bubble-assistant .badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-weight:700;font-size:.9rem;margin-right:.25rem}.badge--approve{background:#1d8f3f22;color:#1d8f3f}.badge--partial{background:#b5890022;color:#b58900}.badge--decline{background:#c92a2a22;color:#c92a2a}.badge--info{background:#3a77c622;color:#3a77c6}.chat-bubble-assistant .chip{display:inline-block;font-size:.82rem;padding:.15rem .45rem;border:1px solid currentColor;border-radius:999px;margin-right:.25rem;opacity:.9}.chip--good{color:#1d8f3f}.chip--warn{color:#b58900}.chip--bad{color:#c92a2a}.chip--neutral{color:#555}.chat-bubble-assistant .md-table{width:100%}.md-table{width:100%;border-collapse:collapse}.md-table th,.md-table td{border:1px solid var(--border-200);padding:6px 10px}.md-table th.text-left,.md-table td.text-left{text-align:left}.md-table th.text-center,.md-table td.text-center{text-align:center}.md-table th.text-right,.md-table td.text-right{text-align:right}.report-card{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff}.report-card__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.report-card__files{display:grid;grid-template-columns:1fr;gap:8px}.report-card__file{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;text-decoration:none;color:inherit}.report-card__file:hover{background:#f9fafb}.report-card__file-cta{color:#2563eb;font-size:13px}.export-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.btn{--_bg: var(--button-bg-gradient, linear-gradient(135deg, #eef2ff, #e0e7ff));--_bg-hover: var( --button-bg-gradient-hover, linear-gradient(135deg, #e0e7ff, #c7d2fe) );--_text: var(--button-text-color, #1f2937);--_shadow: var(--button-shadow-hover, rgba(31, 41, 55, .18));--_border: var(--bubble-border-user, rgba(0, 0, 0, .08));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--_border);background:var(--_bg);color:var(--_text);padding:8px 12px;font-size:.9rem;line-height:1;border-radius:10px;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease;display:inline-flex;align-items:center;gap:8px;text-decoration:none}.btn:hover{background:var(--_bg-hover);box-shadow:0 6px 12px var(--_shadow);transform:translateY(-1px)}.btn:active{transform:translateY(0);box-shadow:0 2px 6px var(--_shadow)}.btn:focus-visible{outline:2px solid var(--link-color, #3b82f6);outline-offset:2px}.btn[disabled],.btn:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.btn-small{padding:6px 10px;font-size:.82rem;border-radius:9px}.btn-ghost{background:transparent;border-color:transparent;color:var(--link-color, #2563eb)}.btn-ghost:hover{background:#0000000a;border-color:#0000000f}[data-theme=dark] .btn-ghost:hover,.theme-dark .btn-ghost:hover{background:#ffffff0f;border-color:#ffffff1f}.theme-light .btn,:root:not([data-theme=dark]) .btn{--_text: var(--button-text-color, #1f2937);--_border: var(--bubble-border-user, rgba(0, 0, 0, .08))}.theme-dark .btn,[data-theme=dark] .btn{--_bg: linear-gradient( 135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .06) );--_bg-hover: linear-gradient( 135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .08) );--_text: rgba(255, 255, 255, .92);--_border: rgba(255, 255, 255, .18);--_shadow: rgba(0, 0, 0, .35);border-color:var(--_border)}.chat-bubble-assistant .export-toolbar .btn{font-weight:500}.btn .icon{display:inline-flex;font-size:1em;line-height:1}.report-card{border:1px solid var(--bubble-border-user, rgba(0, 0, 0, .08));border-radius:14px;padding:12px;background:var( --card-bg-gradient, linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .8)) );box-shadow:0 6px 14px var(--shadow-hover, rgba(0, 0, 0, .08))}.theme-dark .report-card,[data-theme=dark] .report-card{background:linear-gradient(180deg,#ffffff0f,#ffffff0a);border-color:#ffffff26;box-shadow:0 6px 14px #00000073}.report-card__title{font-weight:600}.report-card__subtitle{font-size:12px;color:#6b7280}.report-card__files{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}@media (min-width: 768px){.report-card__files{grid-template-columns:repeat(3,1fr)}}.report-card__file{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--bubble-border-user, rgba(0, 0, 0, .08));border-radius:10px;padding:8px 10px;text-decoration:none;color:inherit;transition:background .2s ease,box-shadow .2s ease,transform .1s ease;background:transparent}.report-card__file:hover{background:#00000008;transform:translateY(-1px);box-shadow:0 4px 10px var(--shadow-hover, rgba(0, 0, 0, .08))}.theme-dark .report-card__file,[data-theme=dark] .report-card__file{border-color:#ffffff29}.theme-dark .report-card__file:hover,[data-theme=dark] .report-card__file:hover{background:#ffffff0f}.report-card__file-left{display:flex;gap:10px;align-items:center}.report-card__file-icon{font-size:18px}.report-card__file-name{font-size:14px;font-weight:500}.report-card__file-sub{font-size:12px;color:#6b7280}.report-card__file-cta{color:var(--link-color, #2563eb);font-size:13px;font-weight:600}.report-card__file:hover .report-card__file-cta{color:var(--link-hover-color, #1d4ed8)}.status-indicator-card,.status-card,.status,.error{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--border-radius, 20px);font-family:var(--font-family, "Inter", sans-serif);font-size:.9rem;font-weight:500;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:9000;margin-bottom:150px;margin-left:50px}.status-indicator-icon{display:inline-flex;align-items:center;justify-content:center}.status-message{margin:0;line-height:1}.theme-light .status-indicator-card,.theme-light .status-card,.theme-light .status,.theme-light .error{background:inherit;box-shadow:var(--card-shadow-light, 0 5px 20px rgba(0, 0, 0, .1));border:1px solid transparent;color:var(--text-color-light, #333333)}.theme-dark .status-indicator-card,.theme-dark .status-card,.theme-dark .status,.theme-dark .error{background:inherit;border:1px solid transparent;box-shadow:var(--card-shadow-dark, 0 5px 25px rgba(0, 0, 0, .2));color:var(--text-color-dark, #f1f1f1)}.status-info,.status-processing{color:var(--primary-color, #3b82f6)}.theme-dark .status-info,.theme-dark .status-processing{color:var(--icon-color-primary-dark, #60a5fa)}.status-success{color:#28a745}.theme-dark .status-success{color:#34d399}.status-error,.error{color:var(--danger-primary, #dc3545)}.theme-dark .status-error,.theme-dark .error{color:#f87171}.glyph-indicator{position:relative;width:24px;height:24px;transform:translateY(5px)}.glyph-indicator:before,.glyph-indicator:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%}.status-processing .glyph-indicator:before,.status-info .glyph-indicator:before{border:3px solid rgba(96,165,250,.3)}.status-processing .glyph-indicator:after,.status-info .glyph-indicator:after{animation:draw-and-rotate 2s infinite cubic-bezier(.65,0,.35,1);border:3px solid transparent;border-top-color:#60a5fa}@keyframes scale-up-fade-in{to{transform:scale(1);opacity:1}}.status-success .glyph-indicator:before,.status-error .glyph-indicator:before,.error .glyph-indicator:before{content:"";position:absolute;top:-4px;left:-4px;width:32px;height:32px;border-radius:50%;border-style:solid;border-width:2px;transform:scale(.8);opacity:0;animation:scale-up-fade-in .4s .1s forwards cubic-bezier(.25,1,.5,1)}.status-success .glyph-indicator:before{border-color:#34d399}.status-success .glyph-indicator:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:100%;animation:pop-in .5s .2s forwards cubic-bezier(.68,-.6,.32,1.6);box-shadow:0 0 12px -3px #34d399}.status-error .glyph-indicator:before,.error .glyph-indicator:before{border-color:#f87171}.status-error .glyph-indicator:after,.error .glyph-indicator:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");background-size:100%;animation:pop-in-shake .6s .2s forwards ease-out;box-shadow:0 0 12px -3px #f87171}:root{--qf-bg: var(--qa-surface, var(--act-surface, #ffffff));--qf-fg: var(--qa-text, var(--act-text, #111827));--qf-muted: var(--qa-subtext, #6b7280);--qf-border: var(--qa-border, var(--act-border, #e5e7eb));--qf-elev-border: var(--qa-input-border, var(--act-border, #d1d5db));--qf-shadow: var(--qa-shadow, 0 8px 28px rgba(0, 0, 0, .12));--qf-list-bg: var(--qa-item-bg, var(--qf-bg));--qf-chip-bg: var( --qa-chip-bg, color-mix(in oklab, var(--qf-bg) 92%, var(--qf-fg) 8%) );--qf-chip-border: var(--qa-border, var(--qf-border));--qf-accent: var(--qa-icon-strong, var(--act-link, #3a7bd5));--qf-ring-hsl: 216 94% 60%;--qf-hover-fallback: #f3f4f6;--qf-hover: color-mix( in oklab, var(--qf-accent, hsl(var(--qf-ring-hsl))) 12%, var(--qf-list-bg) 88% );--qf-urgent: #ef4444;--qf-overlay: var(--act-overlay-scrim, rgba(17, 24, 39, .45));--qf-modal-bg: var(--qf-bg);--qf-modal-border: var(--qf-border);--qf-radius-card: 12px;--qf-radius-input: 10px;--qf-radius-chip: 999px;--qf-font-size: 14px;--qf-label-size: 12px;--qf-pad-card: 12px;--qf-pad-input-y: 10px;--qf-pad-input-x: 12px;--qf-gap: 8px;--qf-list-max-h: 280px}:root[data-theme=dark],.theme-dark,.theme-dark :root{--qf-bg: var(--qa-surface, var(--act-surface, #0b0f16));--qf-fg: var(--qa-text, #e5e7eb);--qf-muted: var(--qa-subtext, #9ca3af);--qf-border: var(--qa-border, #1f2937);--qf-elev-border: var(--qa-input-border, #374151);--qf-shadow: var(--qa-shadow, 0 10px 32px rgba(0, 0, 0, .45));--qf-list-bg: var(--qa-item-bg, #0b0f16);--qf-chip-bg: var(--qa-chip-bg, #111827);--qf-chip-border: var(--qa-border, #374151);--qf-accent: var(--qa-icon-strong, var(--act-link, #7bbcff));--qf-hover-fallback: #0f172a;--qf-hover: color-mix(in oklab, var(--qf-accent) 14%, var(--qf-list-bg) 86%);--qf-urgent: #f87171;--qf-overlay: rgba(2, 6, 23, .65);--qf-modal-bg: var(--qf-bg);--qf-modal-border: var(--qf-elev-border)}@media (prefers-color-scheme: dark){:root:not([data-theme=light]):not(.theme-light){--qf-bg: var(--qa-surface, var(--act-surface, #0b0f16));--qf-fg: var(--qa-text, #e5e7eb);--qf-muted: var(--qa-subtext, #9ca3af);--qf-border: var(--qa-border, #1f2937);--qf-elev-border: var(--qa-input-border, #374151);--qf-shadow: var(--qa-shadow, 0 10px 32px rgba(0, 0, 0, .45));--qf-list-bg: var(--qa-item-bg, #0b0f16);--qf-chip-bg: var(--qa-chip-bg, #111827);--qf-chip-border: var(--qa-border, #374151);--qf-accent: var(--qa-icon-strong, var(--act-link, #7bbcff));--qf-hover-fallback: #0f172a;--qf-hover: color-mix( in oklab, var(--qf-accent) 14%, var(--qf-list-bg) 86% );--qf-urgent: #f87171;--qf-overlay: rgba(2, 6, 23, .65);--qf-modal-bg: var(--qf-bg);--qf-modal-border: var(--qf-elev-border)}}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,1px,1px);white-space:nowrap;border:0}.qf-card{background:var(--qf-bg);color:var(--qf-fg);border:1px solid var(--qf-border);border-radius:var(--qf-radius-card);padding:0;max-width:720px;box-shadow:var(--qf-shadow);transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease;color-scheme:light dark}.qf-toolbar{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:10px 12px;background:var(--qf-bg);border-bottom:1px solid var(--qf-border)}.qf-title{display:inline-flex;align-items:center;gap:8px;font-weight:700}.qf-title i{color:var(--qf-accent)}.qf-searchrow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.qf-badge{border:1px solid var(--qf-elev-border);background:var(--qf-chip-bg);color:var(--qf-fg);padding:6px 10px;border-radius:999px;font-size:12px}.qf-input-shell{position:relative;display:flex;flex:1}.qf-input{flex:1;padding:var(--qf-pad-input-y) calc(var(--qf-pad-input-x) + 28px) var(--qf-pad-input-y) var(--qf-pad-input-x);border:1px solid var(--qf-elev-border);border-radius:var(--qf-radius-input);font-size:var(--qf-font-size);background:var(--qf-list-bg);color:var(--qf-fg);outline:none;transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease}.qf-input:focus-visible{border-color:var(--qf-accent, hsl(var(--qf-ring-hsl)));box-shadow:0 0 0 3px color-mix(in oklab,var(--qf-accent, hsl(var(--qf-ring-hsl))) 25%,transparent),0 0 0 1px var(--qf-accent, hsl(var(--qf-ring-hsl)))}.qf-input-action{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:28px;height:28px;border-radius:7px;border:1px solid var(--qf-elev-border);background:var(--qf-chip-bg);color:var(--qf-fg);font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,opacity .12s ease,box-shadow .12s ease}.qf-input-action:hover{background:var(--qf-hover-fallback);background:color-mix(in oklab,var(--qf-accent) 12%,var(--qf-chip-bg) 88%)}.qf-input-action:disabled{opacity:.45;cursor:not-allowed}.qf-input-action:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-hint{padding:6px 12px 0;font-size:12.5px;color:var(--qf-muted)}.qf-filterbar{display:grid;grid-template-columns:repeat(6,minmax(0,auto));gap:10px 12px;align-items:end;padding:10px 12px 8px;background:var(--qf-bg);border-bottom:1px solid var(--qf-border)}@media (max-width: 860px){.qf-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 520px){.qf-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))}}.qf-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--qf-fg);opacity:.95;--webkit-user-select: none}.qf-toggle input[type=checkbox]{width:14px;height:14px;accent-color:var(--qf-accent)}.qf-field{display:flex;flex-direction:column;gap:6px;min-width:140px}.qf-field-label{font-size:12px;color:var(--qf-muted)}.qf-select{padding:8px 10px;border:1px solid var(--qf-elev-border);border-radius:8px;background:var(--qf-list-bg);color:var(--qf-fg);font:inherit;font-size:13px}.qf-select:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-daterange{grid-column:1 / -1}.qf-range{--from: 0%;--to: 100%;position:relative;height:32px;margin-top:2px}.qf-range-track,.qf-range-fill{position:absolute;left:0;right:0;top:50%;height:4px;transform:translateY(-50%);border-radius:999px}.qf-range-track{background:color-mix(in oklab,var(--qf-border) 70%,transparent)}.qf-range-fill{left:var(--from);right:calc(100% - var(--to));background:var(--qf-accent)}.qf-range input[type=range]{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;margin:0;padding:0;background:transparent;pointer-events:none;touch-action:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.qf-range input[type=range]::-webkit-slider-runnable-track{width:100%;height:32px;background:transparent;border:0}.qf-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--qf-bg);border:2px solid var(--qf-accent);box-shadow:0 1px 3px #00000026;cursor:pointer;margin-top:-6px;pointer-events:auto}.qf-range input[type=range]::-moz-range-track{height:32px;background:transparent}.qf-range input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--qf-bg);border:2px solid var(--qf-accent);box-shadow:0 1px 3px #00000026;cursor:pointer;pointer-events:auto}.qf-date-display{display:flex;gap:8px;align-items:center;margin-top:6px;font-size:12.5px;color:var(--qf-muted)}.qf-link-reset{margin-left:auto;background:transparent;border:0;color:var(--qf-accent);cursor:pointer;font-size:12.5px;padding:4px 6px;border-radius:6px}.qf-link-reset:hover{background:color-mix(in oklab,var(--qf-accent) 10%,transparent)}.qf-quick{padding:8px 12px;display:flex;flex-wrap:wrap;gap:6px}.qf-chip{border:1px solid var(--qf-chip-border);background:var(--qf-chip-bg);color:var(--qf-fg);border-radius:var(--qf-radius-chip);padding:6px 10px;font-size:12px;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,transform 80ms ease,box-shadow .12s ease}.qf-chip:hover{background:var(--qf-hover-fallback);background:color-mix(in oklab,var(--qf-accent) 12%,var(--qf-chip-bg) 88%)}.qf-chip:active{transform:translateY(.5px)}.qf-chip:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-list{margin:0;padding:8px 12px 12px;list-style:none;max-height:var(--qf-list-max-h);overflow:auto;border-top:1px solid var(--qf-border);background:var(--qf-list-bg)}.qf-list[hidden]{display:none}.qf-item{padding:8px;border-radius:10px;cursor:pointer;transition:background-color .12s ease;color:var(--qf-fg)}.qf-item:hover,.qf-item.active{background:color-mix(in oklab,var(--qf-accent) 10%,var(--qf-list-bg) 90%)}.qf-item:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-row{display:flex;align-items:center;justify-content:space-between}.qf-case{font-weight:600}.qf-urgent{color:var(--qf-urgent);font-size:10px;margin-left:6px}.qf-sub{color:var(--qf-muted);font-size:12px;margin-top:2px}.qf-empty{margin-top:10px;padding:10px;border:1px dashed var(--qf-elev-border);border-radius:10px;color:var(--qf-muted);background:color-mix(in oklab,var(--qf-bg),var(--qf-hover) 35%)}.qf-empty ul{margin:6px 0 0 18px;padding:0}.qf-empty code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.qf-footer{padding:10px 12px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--qf-border)}.qf-btn{padding:8px 12px;border-radius:10px;font-size:14px;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,opacity .12s ease,box-shadow .12s ease}.qf-btn:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-btn-primary{background:var(--button-bg-gradient, var(--qf-accent));color:var(--button-text-color, #fff);border:1px solid color-mix(in oklab,var(--qf-accent) 75%,#000 25%)}.qf-btn-primary:hover{filter:saturate(1.06);box-shadow:0 6px 12px color-mix(in oklab,var(--qf-accent) 25%,transparent)}.qf-btn-primary:disabled{opacity:.6;cursor:not-allowed;filter:none}.qf-btn-ghost{background:var(--qf-chip-bg);color:var(--qf-fg);border:1px solid var(--qf-elev-border)}.qf-btn-ghost:hover{background:var(--qf-hover-fallback);background:color-mix(in oklab,var(--qf-accent) 12%,var(--qf-chip-bg) 88%)}.qf-open-btn{padding:10px 14px;border-radius:10px;border:1px solid var(--qf-elev-border);background:var(--qf-chip-bg);color:var(--qf-fg);font-size:14px;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease}.qf-open-btn:hover{background:var(--qf-hover-fallback);background:var(--qf-hover)}.qf-open-btn:focus-visible{outline:2px solid var(--qf-accent);outline-offset:2px}.qf-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--qf-overlay);display:flex;align-items:center;justify-content:center;z-index:60;animation:qf-fade-in .16s ease}@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){.qf-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}}.qf-list::-webkit-scrollbar{width:10px}.qf-list::-webkit-scrollbar-track{background:transparent}.qf-list::-webkit-scrollbar-thumb{background:color-mix(in oklab,var(--qf-border),var(--qf-fg) 20%);border-radius:8px;border:2px solid var(--qf-list-bg)}.qf-list::-webkit-scrollbar-thumb:hover{background:color-mix(in oklab,var(--qf-border),var(--qf-fg) 35%)}.qf-list{scrollbar-width:thin;scrollbar-color:color-mix(in oklab,var(--qf-border),var(--qf-fg) 20%) var(--qf-list-bg)}@media (prefers-reduced-motion: reduce){.qf-overlay{animation:none!important}.qf-chip,.qf-item,.qf-btn,.qf-open-btn{transition:none!important}}@media (prefers-contrast: more){.qf-input,.qf-list,.qf-card{border-color:color-mix(in oklab,var(--qf-elev-border) 65%,#000 35%)}.qf-btn-primary{filter:saturate(1.1) contrast(1.05)}}.sidebar-documents{padding:0 8px;flex-grow:1;overflow-y:auto;min-height:0;transition:opacity .2s ease-in-out .1s;opacity:0}.sidebar.expanded .sidebar-documents{opacity:1}.sidebar-documents__title{margin:16px 0 8px 4px;padding:0;border-bottom:none;font-size:.8rem;font-weight:600;text-transform:uppercase;color:var(--text-gray);display:flex;align-items:center;gap:8px}.sidebar-documents__list{list-style:none;margin:0;padding:0}.sidebar-documents__item{display:flex;align-items:center;padding:6px 8px;border-radius:8px;transition:background-color .15s ease;position:relative}.sidebar-documents__item:hover{background-color:var(--sidebar-active-bg)}.sidebar-documents__label{display:flex;align-items:center;gap:10px;cursor:pointer;flex-grow:1;min-width:0;padding-right:28px}.sidebar-documents__filename{font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-documents__list .sidebar-documents__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;margin:0;width:18px;height:18px;cursor:pointer;position:relative;transition:all .2s ease;flex-shrink:0;border:2px solid var(--icon-color);border-radius:50%!important}.theme-light .sidebar-documents__list .sidebar-documents__checkbox{border-color:var(--icon-color-primary-light)}.sidebar-documents__checkbox:checked{background-color:var(--primary-color);border-color:var(--primary-color)}.sidebar-documents__checkbox:checked:after{content:"";display:block;width:5px;height:9px;border-style:solid;border-width:0 2px 2px 0;position:absolute;left:5px;top:2px}.theme-dark .sidebar-documents__checkbox:checked:after{border-color:var(--toggle-indicator-dark)}.theme-light .sidebar-documents__checkbox:checked:after{border-color:var(--toggle-indicator-light)}.sidebar-documents__delete{background:none;border:none;cursor:pointer;padding:4px 8px;font-size:.9rem;color:var(--icon-color);transition:opacity .2s ease,color .2s ease;position:absolute;right:8px;top:50%;transform:translateY(-50%);opacity:0;pointer-events:none}.sidebar-documents__delete:hover{color:#f87171}.sidebar-documents__item:hover .sidebar-documents__delete{opacity:1;pointer-events:auto}.sidebar-documents__empty{padding:24px 8px;text-align:center;font-size:.85rem;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-gray)}:root{--font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--border-radius-sm: 6px;--border-radius-md: 10px;--border-radius-lg: 16px;--transition-speed-fast: .15s;--transition-speed-med: .3s;--transition-timing: ease-in-out;--sidebar-offset: 50px;--background-dark: #070b14;--surface-dark: #121827;--surface-alt-dark: #1a202e;--border-dark: rgba(255, 255, 255, .1);--toolbar-bg-dark: rgba(18, 24, 39, .65);--text-primary-dark: #f1f1f1;--text-secondary-dark: #a7afc2;--accent-blue-dark: #6cbcff;--accent-glow-dark: rgba(108, 188, 255, .25);--shadow-dark: var(--accent-glow-dark);--shadow-md-dark: 0 8px 30px rgba(0, 0, 0, .4);--button-hover-dark: rgba(255, 255, 255, .08);--focus-ring-dark: rgba(108, 188, 255, .5);--header-gradient-dark: linear-gradient(90deg, #1f2937 0%, #111827 100%);--page-bg-gradient-dark: linear-gradient( 135deg, rgba(18, 24, 39, .9), rgba(7, 11, 20, .85) );--background-light: #f9fafb;--surface-light: #ffffff;--surface-alt-light: #f3f4f6;--border-light: #e5e7eb;--toolbar-bg-light: rgba(255, 255, 255, .65);--text-primary-light: #1f2937;--text-secondary-light: #6b7280;--accent-blue-light: #3b82f6;--accent-glow-light: rgba(59, 130, 246, .2);--shadow-light: rgba(100, 116, 139, .15);--shadow-md-light: 0 8px 30px rgba(100, 116, 139, .2);--button-hover-light: rgba(0, 0, 0, .05);--focus-ring-light: rgba(59, 130, 246, .5);--header-gradient-light: linear-gradient(90deg, #ffffff 0%, #f3f4f6 100%);--page-bg-gradient-light: linear-gradient( 135deg, rgba(244, 244, 244, .95), rgba(215, 227, 234, .9) )}.theme-dark{--header-bg: var(--header-gradient-dark);--page-bg: var(--page-bg-gradient-dark);--bg-color: var(--background-dark);--surface-color: var(--surface-dark);--surface-alt-color: var(--surface-alt-dark);--border-color: var(--border-dark);--toolbar-bg-color: var(--toolbar-bg-dark);--text-primary-color: var(--text-primary-dark);--text-secondary-color: var(--text-secondary-dark);--accent-color: var(--accent-blue-dark);--accent-glow: var(--accent-glow-dark);--shadow-color: var(--shadow-dark);--shadow-md: var(--shadow-md-dark);--button-hover-bg: var(--button-hover-dark);--focus-ring-color: var(--focus-ring-dark);--editor-page-bg: #111725;--editor-page-text: var(--text-primary-dark)}.theme-light{--header-bg: var(--header-gradient-light);--page-bg: var(--page-bg-gradient-light);--bg-color: var(--background-light);--surface-color: var(--surface-light);--surface-alt-color: var(--surface-alt-light);--border-color: var(--border-light);--toolbar-bg-color: var(--toolbar-bg-light);--text-primary-color: var(--text-primary-light);--text-secondary-color: var(--text-secondary-light);--accent-color: var(--accent-blue-light);--accent-glow: var(--accent-glow-light);--shadow-color: var(--shadow-light);--shadow-md: var(--shadow-md-light);--button-hover-bg: var(--button-hover-light);--focus-ring-color: var(--focus-ring-light);--editor-page-bg: var(--surface-light);--editor-page-text: var(--text-primary-light)}.drafting-page{width:100%;height:100%;display:flex;flex-direction:column;background:var(--page-bg);box-sizing:border-box;transition:background .3s ease}.draft-canvas-wrapper{container-type:inline-size;container-name:editor-page;display:flex;justify-content:center;align-items:flex-start;padding:3rem 1rem;overflow:auto;transform:translateY(-50px)}.draft-canvas-wrapper .tox-tinymce{width:100%;max-width:1100px;height:auto!important;aspect-ratio:210 / 297;flex-shrink:0;box-shadow:0 4px 12px #0000001a}.draft-canvas-wrapper.ready{opacity:1}.editor-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--background-color-primary);display:flex;justify-content:center;align-items:center;font-size:1.2rem;color:var(--text-color-secondary);z-index:2000;opacity:1;transition:opacity .2s ease-out}.draft-canvas-wrapper.ready .editor-loading-overlay{opacity:0;pointer-events:none}.tox-tinymce{border:1px solid var(--border-color)!important;border-radius:var(--border-radius-md)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;transition:background-color var(--transition-speed-med) var(--transition-timing)}.tox .tox-editor-header{border-bottom:none!important;box-shadow:inset 0 -1px 0 var(--border-color);padding:6px 4px!important;flex-shrink:0;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;transition:background var(--transition-speed-med) var(--transition-timing),box-shadow var(--transition-speed-med) var(--transition-timing)}.tox .tox-menubar,.tox .tox-toolbar-overlord,.tox .tox-toolbar__primary{background:transparent!important}.tox .tox-mbtn,.tox .tox-tbtn{background:transparent!important;border:none!important;border-radius:var(--border-radius-sm)!important;transition:all var(--transition-speed-fast) var(--transition-timing)}.tox .tox-mbtn,.tox .tox-mbtn:hover,.tox .tox-mbtn--active{border-radius:var(--border-radius-sm)!important;background-clip:padding-box!important;box-shadow:none!important;outline:none!important}.tox .tox-mbtn:hover,.tox .tox-mbtn--active{background-color:var(--button-hover-bg)!important}.tox .tox-mbtn span,.tox .tox-mbtn div{border-radius:inherit!important}.tox .tox-mbtn,.tox .tox-mbtn:hover,.tox .tox-mbtn:focus,.tox .tox-mbtn--select,.tox .tox-mbtn--select:hover,.tox .tox-mbtn--select:focus{border:none!important;outline:none!important}.tox .tox-tbtn svg,.tox .tox-mbtn svg{fill:var(--icon-color-primary)!important;transition:fill var(--transition-speed-fast) var(--transition-timing)}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--active svg,.tox .tox-mbtn--active svg{fill:#fff!important}.tox .tox-collection__item-icon svg{fill:var(--icon-color-primary)!important;transition:fill var(--transition-speed-fast) var(--transition-timing)}.tox .tox-collection__item--active .tox-collection__item-icon svg{fill:#fff!important}.tox .tox-collection__item:hover .tox-collection__item-icon svg{fill:var(--accent-color)!important}.tox .tox-tbtn:hover{background-color:var(--button-hover-bg)!important;transform:scale(1.1)}.tox .tox-tbtn:hover svg{fill:var(--accent-color)}.tox button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-ring-color)}.tox .tox-menu{border:none!important;border-radius:var(--border-radius-md)!important;box-shadow:var(--shadow-md);-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;padding:4px!important}.tox .tox-collection__item{border-radius:var(--border-radius-sm)!important;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.theme-dark .drafting-page{background-color:var(--bg-color)}.theme-dark .tox-tinymce{background:var(--surface-color)!important}.theme-dark .tox .tox-tbtn--enabled,.theme-dark .tox .tox-tbtn--active,.theme-dark .tox .tox-mbtn--active{background-color:var(--accent-color)!important;color:#070b14!important;box-shadow:0 0 15px var(--accent-glow);transform:scale(1.1);transition:all var(--transition-speed-fast) var(--transition-timing)}.theme-dark .tox .tox-menu{background-color:#040c1799!important;border:1px solid var(--border-color)!important;box-shadow:var( --shadow-md )!important;border-radius:var(--border-radius-md)!important;padding:4px!important}.theme-dark .tox .tox-collection__item{background-color:transparent!important;color:var(--text-secondary-color)!important;transition:all .2s ease-in-out;border:1px solid transparent;border-radius:var(--border-radius-sm)!important;margin:2px 0}.theme-dark .tox .tox-collection__item:not(.tox-collection__item--active):hover{background-color:#2dbeff26!important;color:var(--neon-blue)!important;border-color:#2dbeff4d!important}.theme-dark .tox .tox-collection__item--active{background-color:var(--neon-blue)!important;color:var(--background-dark)!important;border-color:var(--neon-blue)!important}.theme-dark .tox .tox-tbtn--enabled svg,.theme-dark .tox .tox-tbtn--active svg,.theme-dark .tox .tox-mbtn--active svg,.theme-dark .tox .tox-collection__item--active .tox-collection__item-icon svg{fill:var(--background-dark)!important}.theme-dark .tox-dialog{background-color:var(--surface-color)!important}.theme-dark .tox-dialog__header,.theme-dark .tox-dialog__body{color:var(--text-primary-color)!important}.theme-dark .tox-button{background:var(--accent-color)!important;border:none!important;color:#070b14!important;border-radius:var(--border-radius-sm)!important;font-weight:500;padding:8px 16px;transition:all var(--transition-speed-fast) var(--transition-timing)}.theme-dark .tox-button:hover{transform:scale(1.05);filter:brightness(1.1)}.theme-dark .tox-button--secondary{background:transparent!important;color:var(--text-secondary-color)!important;border:1px solid var(--border-color)!important}.theme-dark .tox-button--secondary:hover{background:var(--button-hover-bg)!important;color:var(--text-primary-color)!important;border-color:var(--accent-color)!important;transform:scale(1.05)}.theme-light .drafting-page{background-color:var(--bg-color)}.theme-light .tox-tinymce{background:var(--surface-color)!important}.theme-light .tox .tox-editor-header{background:var(--toolbar-bg-color)!important}.theme-light .tox .tox-tbtn--enabled,.theme-light .tox .tox-tbtn--active,.theme-light .tox .tox-mbtn--active{background-color:var(--accent-color)!important;color:#fff!important;box-shadow:0 0 15px var(--accent-glow);transform:scale(1.1);transition:all var(--transition-speed-fast) var(--transition-timing)}.theme-light .tox .tox-menu{background-color:#fffc!important;border:1px solid var(--border-color)!important;box-shadow:var(--shadow-md)!important;border-radius:var(--border-radius-md)!important;padding:4px!important}.theme-light .tox .tox-collection__item{background-color:transparent!important;color:var(--text-secondary-color)!important;border-radius:var(--border-radius-sm)!important;transition:all var(--transition-speed-fast) ease-in-out}.theme-light .tox .tox-collection__item:not(.tox-collection__item--active):hover{background-color:var(--accent-color)!important;color:#fff!important}.theme-light .tox .tox-collection__item:not(.tox-collection__item--active):hover .tox-collection__item-icon svg{fill:#fff!important}.theme-light .tox .tox-collection__item--active{background-color:var(--accent-color)!important;color:#fff!important}.theme-light .tox .tox-tbtn--enabled svg,.theme-light .tox .tox-tbtn--active svg,.theme-light .tox .tox-mbtn--active svg,.theme-light .tox .tox-collection__item--active .tox-collection__item-icon svg{fill:#fff!important}.theme-light .tox-dialog{background-color:var(--surface-color)!important}.theme-light .tox-dialog__header,.theme-light .tox-dialog__body{color:var(--text-primary-color)!important}.theme-light .tox-button{background:var(--accent-color)!important;border:none!important;color:#fff!important;border-radius:var(--border-radius-sm)!important;font-weight:500;padding:8px 16px;transition:all var(--transition-speed-fast) var(--transition-timing)}.theme-light .tox-button:hover{transform:scale(1.05);filter:brightness(1.1)}.theme-light .tox-button--secondary{background:transparent!important;color:var(--text-secondary-color)!important;border:1px solid var(--border-color)!important}.theme-light .tox-button--secondary:hover{background:var(--button-hover-bg)!important;color:var(--text-primary-color)!important;border-color:var(--accent-color)!important;transform:scale(1.05)}.tox .tox-tooltip{color:var(--text-primary-color)!important;border-radius:var(--border-radius-sm)!important}.theme-light .tox .tox-tooltip__arrow--n{border-top-color:var(--surface-light)!important}.theme-light .tox .tox-tooltip__arrow--s{border-bottom-color:var(--surface-light)!important}.theme-light .tox .tox-tooltip__arrow--e{border-right-color:var(--surface-light)!important}.theme-light .tox .tox-tooltip__arrow--w{border-left-color:var(--surface-light)!important}.theme-dark .tox .tox-tooltip__arrow--n{border-top-color:var(--surface-dark)!important}.theme-dark .tox .tox-tooltip__arrow--s{border-bottom-color:var(--surface-dark)!important}.theme-dark .tox .tox-tooltip__arrow--e{border-right-color:var(--surface-dark)!important}.theme-dark .tox .tox-tooltip__arrow--w{border-left-color:var(--surface-dark)!important}.theme-dark .tox .tox-editor-header,.theme-light .tox .tox-editor-header{background:var(--header-bg)!important}.tox .tox-dialog[aria-label="AI Assistant"] textarea,.tox .tox-dialog[aria-label="AI Assistant"] input[type=text]{display:block!important;width:100%!important;white-space:pre-wrap!important;word-break:break-word!important;overflow:auto!important;min-height:96px!important;max-height:40vh!important;line-height:1.4!important}.tox .tox-dialog[aria-label="AI Assistant"] input[type=text]{height:auto!important;padding-top:8px!important;padding-bottom:8px!important}.tox-pop{position:absolute!important;z-index:1000!important;border:2px solid var(--neon-blue)!important;border-bottom:1.5px solid var(--neon-blue)!important;border-radius:var(--border-radius-md)!important;box-shadow:var(--shadow-md)!important;transition:background-color .3s ease,box-shadow .3s ease,border-color .3s ease}.theme-dark .tox-pop{background-color:#0d2a52cc!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.theme-light .tox-pop{background-color:#f2f2f3cc!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.tox .tox-collection__item-label *{background-color:transparent!important;color:inherit!important}.tox-pop>*{background-color:transparent!important;color:inherit!important}.tox-dialog{border:none!important;border-radius:var(--border-radius-lg)!important;box-shadow:var(--shadow-md);transition:background-color var(--transition-speed-med) var(--transition-timing),box-shadow var(--transition-speed-med) var(--transition-timing)}.tox-dialog[aria-label="AI Assistant"],.tox-dialog[aria-label="Insert AI-Generated Section"],.tox-dialog[aria-label="Advanced Legal Draft"],.tox-dialog[aria-label="Legal AI Response"],.tox-dialog[aria-label="Link Document to Case"]{position:fixed!important;display:flex!important;flex-direction:column!important;z-index:1000!important;bottom:auto!important;top:50%!important;left:calc(50% + var(--sidebar-offset, 0px) / 2)!important;transform:translate(-50%,-50%)!important;width:90vw!important;max-width:700px!important;height:auto!important;max-height:85vh!important;border:1.5px solid var(--neon-blue)!important;border-radius:var(--border-radius-md)!important;box-shadow:var(--shadow-md)!important;transition:background-color .3s ease,box-shadow .3s ease,border-color .3s ease}body.tox-dialog--dragging .tox-dialog[aria-label="AI Assistant"],body.tox-dialog--dragging .tox-dialog[aria-label="Insert AI-Generated Section"],body.tox-dialog--dragging .tox-dialog[aria-label="Advanced Legal Draft"],body.tox-dialog--dragging .tox-dialog[aria-label="Legal AI Response"],body.tox-dialog--dragging .tox-dialog[aria-label="Link Document to Case"]{transform:none!important;top:unset!important;left:unset!important}.tox-dialog[aria-label="AI Assistant"] .tox-dialog__title,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title,.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title,.tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title{cursor:grab;position:relative;padding-left:32px!important}.tox-dialog[aria-label="AI Assistant"] .tox-dialog__title:active,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title:active,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title:active,.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title:active,.tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title:active{cursor:grabbing}.tox-dialog[aria-label="AI Assistant"] .tox-dialog__body,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__body,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__body,.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__body,.tox-dialog[aria-label="Link Document to Case"] .tox-dialog__body{flex-grow:1!important;display:flex!important;flex-direction:column!important;min-height:0;padding:0 16px 4px!important}.tox-dialog[aria-label="AI Assistant"] .tox-ai-assistant__history,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-ai-assistant__history,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-ai-assistant__history,.tox-dialog[aria-label="Legal AI Response"] .tox-ai-assistant__history,.tox-dialog[aria-label="Link Document to Case"] .tox-ai-assistant__history,.tox-ai-assistant__history{flex-grow:1!important;overflow-y:auto!important;padding-right:8px}.tox-dialog[aria-label="AI Assistant"]>*,.tox-dialog[aria-label="Insert AI-Generated Section"]>*,.tox-dialog[aria-label="Advanced Legal Draft"]>*,.tox-dialog[aria-label="Legal AI Response"]>*,.tox-dialog[aria-label="Link Document to Case"]>*{background-color:transparent!important;color:inherit!important}.theme-dark .tox-dialog[aria-label="AI Assistant"],.theme-dark .tox-dialog[aria-label="Insert AI-Generated Section"],.theme-dark .tox-dialog[aria-label="Advanced Legal Draft"],.theme-dark .tox-dialog[aria-label="Legal AI Response"],.theme-dark .tox-dialog[aria-label="Link Document to Case"]{background-color:#040c1799!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.theme-light .tox-dialog[aria-label="AI Assistant"],.theme-light .tox-dialog[aria-label="Insert AI-Generated Section"],.theme-light .tox-dialog[aria-label="Advanced Legal Draft"],.theme-light .tox-dialog[aria-label="Legal AI Response"],.theme-light .tox-dialog[aria-label="Link Document to Case"]{background-color:#e0e0e399!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.theme-dark .tox-dialog[aria-label="AI Assistant"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title:before{filter:brightness(0) invert(1)}.tox-dialog[aria-label="AI Assistant"] .tox-dialog__body,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__body,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__body,.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__body,.tox-dialog[aria-label="Link Document to Case"] .tox-dialog__body{flex-grow:1!important;display:flex!important;flex-direction:column!important;min-height:0;padding:0 16px 8px!important}.tox-dialog[aria-label="AI Assistant"] .tox-ai-assistant__history,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-ai-assistant__history,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-ai-assistant__history,.tox-dialog[aria-label="Legal AI Response"] .tox-ai-assistant__history,.tox-dialog[aria-label="Link Document to Case"] .tox-ai-assistant__history{flex-grow:1!important;overflow-y:auto!important;padding-right:8px}.tox-dialog[aria-label="AI Assistant"] .tox-textfield,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-textfield,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-textfield,.tox-dialog[aria-label="Legal AI Response"] .tox-textfield,.tox-dialog[aria-label="Link Document to Case"] .tox-textfield{width:100%;resize:none}.tox-dialog__title[aria-label="AI Assistant"],.tox-dialog__title[aria-label="Insert AI-Generated Section"],.tox-dialog__title[aria-label="Advanced Legal Draft"],.tox-dialog__title[aria-label="Legal AI Response"],.tox-dialog__title[aria-label="Link Document to Case"]{position:relative;padding-left:32px!important}.tox-dialog__header,.tox-dialog__body,.tox-dialog__footer{background-color:transparent!important}.tox-dialog__header{border-bottom:none!important;padding:8px 24px!important;transition:border-color var(--transition-speed-med) var(--transition-timing)}.tox-dialog__footer{border-top:1px solid var(--border-color)!important;transition:border-color var(--transition-speed-med) var(--transition-timing)}.tox-dialog[aria-label="AI Assistant"] .tox-dialog__title:before,.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title:before,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title:before,.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title:before,.tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title:before{content:""!important;position:absolute;left:0;top:50%;transform:translateY(-50%);width:24px;height:24px;background-size:contain;background-repeat:no-repeat;background-position:center;transition:background-image .3s ease;background-image:url(/assets/logos/lawyerly_image_blue.png)}.theme-dark .tox-dialog[aria-label="AI Assistant"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title:before,.theme-dark .tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title:before{background-image:url(/assets/logos/law_icon.png)}.theme-dark .tox-dialog[aria-label="AI Assistant"] .tox-dialog__title,.theme-dark .tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title,.theme-dark .tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title,.theme-dark .tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title,.theme-dark .tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title{color:#e0e0e0!important}.theme-light .tox-dialog[aria-label="AI Assistant"] .tox-dialog__title,.theme-light .tox-dialog[aria-label="Insert AI-Generated Section"] .tox-dialog__title,.theme-light .tox-dialog[aria-label="Advanced Legal Draft"] .tox-dialog__title,.theme-light .tox-dialog[aria-label="Legal AI Response"] .tox-dialog__title,.theme-light .tox-dialog[aria-label="Link Document to Case"] .tox-dialog__title{color:#202124!important}.tox-promotion{display:none!important}.tox-textarea,.tox-textfield{border:1px solid var(--border-color)!important;background-color:var(--surface-alt-color)!important;border-radius:var(--border-radius-md)!important;font-size:1em!important;padding:12px 16px!important;min-height:44px;transition:background-color var(--transition-speed-med) var(--transition-timing),border-color var(--transition-speed-med) var(--transition-timing),color var(--transition-speed-med) var(--transition-timing),box-shadow var(--transition-speed-med) var(--transition-timing)}.tox-textarea:focus,.tox-textfield:focus{border-color:var(--accent-color)!important;box-shadow:0 0 0 3px var(--accent-glow)!important;outline:none}.tox-pop .tox-toolbar,.tox-pop .tox-toolbar__group{background:transparent!important;padding:0!important}.tox-pop .tox-dialog__title{position:relative;padding-left:26px!important}.tox-pop .tox-dialog__title:before{content:""!important;position:absolute;left:0;top:50%;transform:translateY(-50%);width:20px;height:20px;background-image:url(/assets/logos/law_icon.png);background-size:contain;background-repeat:no-repeat;background-position:center}.theme-dark .tox-pop .tox-dialog__title:before{filter:brightness(0) invert(1)}.theme-dark .tox-pop,.theme-dark .tox-dialog[aria-label="AI Assistant"],.theme-dark .tox-dialog[aria-label="Insert AI-Generated Section"],.theme-dark .tox-dialog[aria-label="Advanced Legal Draft"],.theme-dark .tox-dialog[aria-label="Legal AI Response"],.theme-dark .tox-dialog[aria-label="Link Document to Case"]{background-color:#040c1799!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.theme-light .tox-pop,.theme-light .tox-dialog[aria-label="AI Assistant"],.theme-light .tox-dialog[aria-label="Insert AI-Generated Section"],.theme-light .tox-dialog[aria-label="Advanced Legal Draft"],.theme-light .tox-dialog[aria-label="Legal AI Response"],.theme-light .tox-dialog[aria-label="Link Document to Case"]{background-color:#e0e0e399!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)}.ai-response-container{padding:16px 24px;max-height:60vh;overflow-y:auto;line-height:1.7;color:var(--text-primary-color)}.ai-response-container::-webkit-scrollbar{width:8px}.ai-response-container::-webkit-scrollbar-track{background:transparent}.ai-response-container::-webkit-scrollbar-thumb{background-color:var(--border-color);border-radius:10px;border:2px solid transparent;background-clip:content-box}.ai-response-container::-webkit-scrollbar-thumb:hover{background-color:var(--accent-color)}.ai-response-container h1,.ai-response-container h2,.ai-response-container h3,.ai-response-container h4{margin-top:1.5em;margin-bottom:.75em;line-height:1.3;font-weight:600;color:var(--text-primary-color)}.ai-response-container p{margin-bottom:1.25em;color:var(--text-secondary-color)}.ai-response-container ul,.ai-response-container ol{padding-left:24px;margin-bottom:1.25em;color:var(--text-secondary-color)}.ai-response-container li{margin-bottom:.5em;padding-left:8px}.ai-response-container strong{color:var(--accent-color);font-weight:600}.ai-response-container blockquote{margin:1.5em 0;padding:10px 20px;border-left:4px solid var(--accent-color);background-color:var(--surface-alt-color);color:var(--text-secondary-color);border-radius:0 var(--border-radius-sm) var(--border-radius-sm) 0}.ai-response-container hr{border:none;height:1px;background-color:var(--border-color);margin:2em 0}.ai-response-container code{font-size:.9em;font-family:Fira Code,monospace}.ai-response-container :not(pre)>code{background-color:var(--surface-alt-color)!important;color:var(--text-primary-color);border:1px solid var(--border-color);padding:3px 6px;border-radius:var(--border-radius-sm)}.ai-response-container pre{background-color:var(--surface-alt-color)!important;border:1px solid var(--border-color);border-radius:var(--border-radius-md);padding:16px;margin:1.5em 0;overflow-x:auto;white-space:pre-wrap}.ai-response-container pre code{background:none!important;border:none!important;padding:0!important;font-size:.85em;line-height:1.6}.ai-copy-btn{background-color:var(--surface-alt-color);color:var(--text-secondary-color);border:1px solid var(--border-color);border-radius:var(--border-radius-sm);padding:4px 10px;font-size:12px;font-weight:500;cursor:pointer;transition:all var(--transition-speed-fast) var(--transition-timing)}.ai-copy-btn:hover,.ai-copy-btn:focus{background-color:var(--button-hover-bg);color:var(--accent-color);border-color:var(--accent-color);outline:none;transform:scale(1.05)}.ai-copy-btn.copied{background-color:var(--accent-color);color:var(--surface-color);border-color:var(--accent-color)}.ai-suggestion-active{transition:all .3s ease-in-out;background-color:#fde04780!important;box-shadow:0 0 10px #fde047b3}.tox-dialog[aria-label^="AI Suggestion"] .tox-dialog__title{position:relative;padding-left:32px!important}.tox-dialog[aria-label^="AI Suggestion"] .tox-dialog__title:before{content:""!important;position:absolute;left:0;top:50%;transform:translateY(-50%);width:24px;height:24px;background-size:contain;background-repeat:no-repeat;background-position:center;background-image:url(/assets/logos/lawyerly_image_blue.png)}.theme-dark .tox-dialog[aria-label^="AI Suggestion"] .tox-dialog__title:before{background-image:url(/assets/logos/law_icon.png)}.tox-dialog[aria-label^="AI Suggestion"]{background-color:#040c1799!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px);border:1px solid var(--accent-color)!important}.theme-light .tox-dialog[aria-label^="AI Suggestion"]{background-color:#e0e0e31a!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px);border:1px solid var(--accent-color)!important}body.tox-dialog--dragging .tox-dialog[aria-label="AI Assistant"],body.tox-dialog--dragging .tox-dialog[aria-label="Insert AI-Generated Section"],body.tox-dialog--dragging .tox-dialog[aria-label="Advanced Legal Draft"],body.tox-dialog--dragging .tox-dialog[aria-label="Legal AI Response"],body.tox-dialog--dragging .tox-dialog[aria-label="Link Document to Case"]{transform:none!important}.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__body-content button{background-color:var(--surface-alt-color)!important;color:var(--text-secondary-color)!important;border:1px solid var(--border-color)!important;border-radius:var(--border-radius-sm)!important;padding:4px 10px!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important;transition:all var(--transition-speed-fast) var(--transition-timing)!important}.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__body-content button:hover{background-color:var(--button-hover-bg)!important;color:var(--accent-color)!important;border-color:var(--accent-color)!important;transform:scale(1.05)}.tox-dialog[aria-label="Legal AI Response"] .tox-dialog__body-content button.copied{background-color:var(--accent-color)!important;color:var(--surface-color)!important;border-color:var(--accent-color)!important}.tox-dialog[aria-label="Insert AI-Generated Section"] .tox-label,.tox-dialog[aria-label="Advanced Legal Draft"] .tox-label{margin-bottom:12px!important}.cdg-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:color-mix(in oklab,black 60%,transparent);display:grid;place-items:center;padding:16px;z-index:1000}.cdg-card{width:min(560px,92vw);border-radius:16px;padding:20px;box-shadow:0 20px 60px #00000059;background:var(--surface-elevated, #101418);color:var(--text-primary, #e8eef5);border:1px solid color-mix(in oklab,var(--accent-primary, #7aa2f7) 20%,transparent)}.theme-light .cdg-card{background:var(--surface-elevated, #ffffff);color:var(--text-primary, #1d232a);border-color:color-mix(in oklab,var(--accent-primary, #3b82f6) 25%,transparent)}.cdg-title{margin:0 0 6px;font-size:1.125rem;font-weight:700}.cdg-text{margin:0 0 8px;opacity:.9}.cdg-list{margin:8px 0 14px 1rem;padding:0;opacity:.9}.cdg-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.cdg-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid color-mix(in oklab,currentColor 20%,transparent);background:var(--surface-muted, transparent);color:inherit;padding:10px 14px;border-radius:12px;font-weight:600;cursor:pointer;transition:transform .06s ease,opacity .2s ease,background .2s ease}.cdg-btn:hover{transform:translateY(-1px)}.cdg-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.cdg-btn-secondary{opacity:.9}.cdg-btn-danger{background:color-mix(in oklab,var(--accent-danger, #ef4444) 90%,black 10%);color:#fff;border-color:color-mix(in oklab,#ef4444 50%,transparent)}.theme-light .cdg-btn-danger{background:var(--accent-danger, #ef4444);border-color:color-mix(in oklab,#ef4444 40%,transparent)}:root{--separator-border: rgba(128, 128, 128, .35);--sash-hover-transition-duration: .1s}.allotment-module_splitView__L-yRc{height:100%;overflow:hidden;position:relative;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF{height:100%;pointer-events:none;position:absolute;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF>.allotment-module_sash__QA-2t{pointer-events:auto}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa{height:100%;position:relative;white-space:nowrap;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{overflow:hidden;position:absolute;white-space:initial}.allotment-module_splitView__L-yRc.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{width:100%}.allotment-module_splitView__L-yRc.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{height:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:1px;width:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:100%;width:1px}:root{--focus-border: #007fd4;--sash-size: 8px;--sash-hover-size: 4px}.sash-module_sash__K-9lB{position:absolute;z-index:35;touch-action:none;pointer-events:auto;text-align:initial}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{pointer-events:none}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_vertical__pB-rs{cursor:col-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_minimum__-UKxp{cursor:e-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_maximum__TCWxD{cursor:w-resize}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_horizontal__kFbiw{cursor:row-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_minimum__-UKxp{cursor:s-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_maximum__TCWxD{cursor:n-resize}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{cursor:default!important;pointer-events:none!important}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.sash-module_sash__K-9lB:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{cursor:nwse-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{cursor:nesw-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color var(--sash-hover-transition-duration) ease-out;background:transparent}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_hover__80W6I:before,.sash-module_sash__K-9lB.sash-module_active__bJspD:before{background:var(--focus-border)}:root,.theme-light{--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--base-font-size: 15px;--border-radius-sm: 6px;--border-radius-md: 10px;--border-radius-lg: 16px;--transition-speed: .3s;--backdrop-blur: 16px;--blue: #60a5fa;--blue-hover: #82b9fb;--green: #4ade80;--green-hover: #6ee699;--baby-blue: #1e90ff;--baby-blue-hover: #4ca1ff;--neon-blue: #2dbeff;--purple: #c084fc;--purple-hover: #d09efd;--cyan: #00d2ff;--dark-cyan: #5eead4;--dark-cyan-hover: #7af0de;--indigo: #a5b4fc;--indigo-hover: #c0cbfc;--coral: #f87171;--coral-hover: #f98e8e;--mustard: #facc15;--mustard-hover: #fce05b;--aurora-gradient: radial-gradient( ellipse at 20% 20%, hsla(21, 94%, 75%, .3), transparent ), radial-gradient(ellipse at 80% 70%, hsla(232, 59%, 85%, .3), transparent);--background-primary: #fdfdff;--background-secondary: rgba(255, 255, 255, .65);--background-tertiary: rgba(240, 242, 248, .7);--text-primary: var(--indigo);--text-secondary: #8892b0;--text-on-accent: #ffffff;--border-default: rgba(43, 52, 103, .12);--document-bg: #ffffff;--accent-primary: var(--baby-blue);--accent-primary-hover: var(--baby-blue-hover);--accent-secondary: rgba(30, 144, 255, .15);--accent-tertiary: var(--cyan);--accent-gradient: var(--purple);--danger-primary: var(--coral);--danger-primary-hover: var(--coral-hover);--title-item-hover-bg: #fdfdff;--title-item-active-bg: #fdfdff;--grid-bg: var(--aurora-gradient), var(--background-primary);--card-bg: var(--background-secondary);--input-bg-color: var(--background-tertiary);--highlight-color: var(--accent-primary)}.theme-dark{--blue: #60a5fa;--blue-hover: #82b9fb;--green: #4ade80;--green-hover: #6ee699;--baby-blue: #1e90ff;--baby-blue-hover: #4ca1ff;--neon-blue: #2dbeff;--purple: #c084fc;--purple-hover: #d09efd;--cyan: #00d2ff;--dark-cyan: #5eead4;--dark-cyan-hover: #7af0de;--indigo: #a5b4fc;--indigo-hover: #c0cbfc;--coral: #f87171;--coral-hover: #f98e8e;--mustard: #facc15;--mustard-hover: #fce05b;--aurora-gradient: radial-gradient( ellipse at 20% 20%, hsla(222, 76%, 20%, .6), transparent ), radial-gradient(ellipse at 80% 70%, hsla(265, 63%, 25%, .5), transparent);--background-primary: #0f172a;--background-secondary: rgba(30, 41, 59, .6);--background-tertiary: rgba(51, 65, 85, .5);--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-on-accent: #0f172a;--border-default: rgba(255, 255, 255, .1);--document-bg: #1e293b;--accent-primary: var(--baby-blue);--accent-primary-hover: var(--baby-blue-hover);--accent-secondary: rgba(30, 144, 255, .15);--accent-tertiary: var(--cyan);--accent-gradient: var(--purple);--danger-primary: var(--coral);--danger-primary-hover: var(--coral-hover);--title-item-hover-bg: #1e293b;--title-item-active-bg: #334155;--grid-bg: var(--aurora-gradient), var(--background-primary);--card-bg: var(--background-secondary);--input-bg-color: var(--background-tertiary);--highlight-color: var(--accent-primary)}@keyframes moveAurora{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}body{font-family:var(--font-sans);font-size:var(--base-font-size);color:var(--text-primary);background-color:var(--background-primary);background-image:var(--aurora-gradient);background-size:200% 200%;animation:moveAurora 15s ease-in-out infinite;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.document-grid{display:flex;flex-direction:column;height:95vh;width:100%;padding:0;box-sizing:border-box;gap:12px;background:transparent!important;transform:translateY(-25px);margin-left:-12px}.three-pane-container{display:flex;flex-grow:1;overflow:hidden}.pane{height:100%;overflow-y:auto;transition:background-color var(--transition-speed) ease}.pane::-webkit-scrollbar{width:12px}.pane::-webkit-scrollbar-track{background:transparent}.pane::-webkit-scrollbar-thumb{background-color:#78787833;background-clip:content-box}.pane:hover::-webkit-scrollbar-thumb{background-color:#78787866}.pane-header{border-radius:var(--border-radius-md);background-color:var(--background-secondary);-webkit-backdrop-filter:blur(var(--backdrop-blur));backdrop-filter:blur(var(--backdrop-blur));padding:8px 12px;margin:8px;display:flex;justify-content:center;align-items:center;gap:12px;box-shadow:0 5px 10px #0000000d}.group-pane{padding:12px;display:flex;flex-direction:column}.group-card{background-color:var(--background-secondary);-webkit-backdrop-filter:blur(var(--backdrop-blur));backdrop-filter:blur(var(--backdrop-blur));border-radius:var(--border-radius-md);margin:8px;padding:10px 0;overflow:hidden;box-shadow:0 6px 12px #0000000d;display:flex;flex-direction:column;flex-grow:1}.group-list{flex-grow:1;overflow-y:auto}.group-actions{display:flex;padding:8px 12px;gap:8px;border-top:1px solid var(--border-default)}.group-action-btn{flex:1;padding:8px;font-size:.85rem;font-weight:500;border-radius:var(--border-radius-sm);background-color:transparent;color:var(--text-secondary);border:1px solid var(--border-default);cursor:pointer;transition:all .2s ease}.theme-light .group-action-btn:hover:not(:disabled){color:var(--blue);border-color:var(--blue);background-color:#4a80f00d}.theme-dark .group-action-btn:hover:not(:disabled){color:var(--purple);border-color:var(--indigo);background-color:#5eead41a;box-shadow:0 0 8px #5eead433}.group-action-btn:disabled{opacity:.5;cursor:not-allowed}.group-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;border-radius:var( --border-radius-md );transition:all var(--transition-speed) ease;margin:4px 0;position:relative;border:1px solid transparent}.group-item:hover{background-color:var(--title-item-hover-bg);transform:translate(4px)}.group-item:hover,.group-item.active{box-shadow:3px 0 12px -2px var(--accent-secondary)}.group-icon{color:var(--text-secondary);flex-shrink:0;transition:color var(--transition-speed) ease;transform:translateY(-7px)}.theme-light .group-item.active .group-icon{color:var(--neon-blue)}.theme-dark .group-item.active .group-icon{color:var(--cyan)}.group-item:hover .group-icon,.group-item.active .group-icon,.group-item:hover .group-name,.group-item.active .group-name{color:var(--baby-blue)}.group-item:hover .group-count,.group-item.active .group-count{background-color:var(--baby-blue);color:var(--text-on-accent);border-color:transparent}.group-item.active{background-color:var(--title-item-active-bg);border-color:var(--baby-blue)}.group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.75rem;transition:color var(--transition-speed) ease}.group-item.active .group-name{color:var(--baby-blue)}.group-count{font-size:.75rem;padding:2px 8px;border-radius:12px;background-color:var(--background-tertiary);color:var(--text-secondary);font-weight:500;transition:all var(--transition-speed) ease;margin-left:auto;border:1px solid var(--border-default)}.group-item.active .group-count{color:var(--text-on-accent)}.theme-light .group-item.active .group-count{background-color:var(--neon-blue);border-color:transparent}.theme-dark .group-item.active .group-count{background-color:var(--accent-tertiary);color:#0f172a;border-color:transparent}.titles-pane{flex:0 0 200px;padding:12px 8px}.title-item{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:8px 0;cursor:pointer;position:relative;overflow:hidden;transition:all var(--transition-speed) ease;border-radius:var(--border-radius-md);background-color:var(--background-secondary);-webkit-backdrop-filter:blur(var(--backdrop-blur));backdrop-filter:blur(var(--backdrop-blur));border:1px solid var(--border-default)}.title-item:hover{transform:translateY(-2px);background-color:var(--title-item-hover-bg);border-color:var( --accent-secondary )}.title-item.active{background-color:var(--title-item-active-bg);box-shadow:0 4px 16px -2px var(--accent-secondary)}.theme-light .title-item.active,.theme-dark .title-item.active{border-color:var(--baby-blue)}.title-item.active .doc-checkbox{margin-left:4px}.title-item-content{flex-grow:1;overflow:hidden}.title-item-title{font-weight:500;font-size:.75rem;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px;transition:color var(--transition-speed) ease}.title-item.active .title-item-title{color:var(--accent-tertiary)}.title-item-date{font-size:.7rem;color:var(--text-secondary)}.title-item-date{font-size:.7rem;color:var(--text-secondary);transition:color var(--transition-speed) ease}.title-item:hover .title-item-date,.title-item.active .title-item-date,.theme-light .title-item.active .title-item-title,.theme-light .title-item.active .title-item-date{color:var(--baby-blue)}.doc-checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;margin:0;flex-shrink:0;width:18px;height:18px;border-radius:50%;border:2px solid var(--border-default);background-color:transparent;cursor:pointer;position:relative;transition:all .2s ease-in-out}.title-item:hover .doc-checkbox{border-color:var(--text-secondary)}.doc-checkbox:checked{border-color:transparent}.theme-light .doc-checkbox:checked{background-color:var(--blue)}.theme-dark .doc-checkbox:checked{background-color:var(--dark-cyan)}.doc-checkbox:checked:after{content:"";position:absolute;top:2px;left:5px;width:4px;height:8px;border:solid var(--text-on-accent);border-width:0 2px 2px 0;transform:rotate(45deg);animation:checkmark-pop .2s ease-in-out}@keyframes checkmark-pop{0%{transform:rotate(45deg) scale(0);opacity:0}80%{transform:rotate(45deg) scale(1.1)}to{transform:rotate(45deg) scale(1);opacity:1}}.delete-btn-list{flex-shrink:0;background:none;border:none;color:var(--text-secondary);cursor:pointer;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.8);transition:all var(--transition-speed) ease}.title-item:hover .delete-btn-list{opacity:.7;transform:scale(1)}.delete-btn-list:hover{opacity:1;color:var(--danger-primary)}.theme-light .delete-btn-list:hover{background-color:#f9665e1a}.theme-dark .delete-btn-list:hover{background-color:#f871711a}.dropdown-container{position:relative}.dropdown-menu{position:absolute;top:calc(100% + 8px);right:0;width:180px;z-index:10;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:var(--border-radius-md);animation:fade-slide-down .2s ease-out forwards;background-color:var(--background-secondary);-webkit-backdrop-filter:blur(var(--backdrop-blur));backdrop-filter:blur(var(--backdrop-blur));border:1px solid var(--border-default);box-shadow:0 4px 16px -2px var(--accent-secondary)}.dropdown-menu .select-option{background:transparent;border:none;color:var(--text-primary);padding:8px 12px;font-size:.85rem;font-weight:500;border-radius:var(--border-radius-sm);cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.dropdown-menu .select-option:hover{background-color:var(--title-item-hover-bg);transform:translate(4px)}.theme-light .dropdown-menu .select-option:hover{color:var(--blue)}.theme-dark .dropdown-menu .select-option:hover{color:var(--accent-primary)}.dropdown-menu .select-option.is-destructive:hover{color:var(--danger-primary);background-color:#f871711a}.select-icon{font-size:1rem}@keyframes fade-slide-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.preview-pane{flex:1;padding:0;display:flex;flex-direction:column;overflow:hidden;transform:translateY(-1px)}.preview-content-wrapper{flex-grow:1;overflow-y:auto;transform:none;width:100%;transform-origin:top left;box-sizing:border-box;padding:48px;border-top-right-radius:var(--border-radius-lg);border-bottom-right-radius:var(--border-radius-lg);box-shadow:0 8px 32px -8px var(--accent-secondary);border:1px solid var(--border-default);position:relative;z-index:1;background-color:var( --document-bg )}.preview-content-wrapper:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-2px;border-radius:inherit;transition:all var(--transition-speed) ease}.preview-content-wrapper h3{margin:0 0 8px;font-size:1.5rem;font-weight:700;letter-spacing:-.5px;color:var(--text-primary)}.preview-meta{font-size:.9rem;color:var(--text-secondary);margin-bottom:32px}.preview-body{font-size:1.05rem;line-height:1.8;color:var(--text-primary);white-space:pre-wrap}.open-editor-btn{position:absolute;top:8px;left:8px;z-index:10;width:57px;height:57px;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;background-image:var(--baby-blue);color:var(--text-on-accent);border:none;cursor:pointer;font-size:1.2rem;font-weight:600;transition:all var(--transition-speed) ease;box-shadow:0 4px 15px -2px var(--accent-secondary)}.theme-light .open-editor-btn{background:#3a7bd5!important;color:var(--text-on-accent)}.open-editor-btn:hover{transform:translateY(-3px);box-shadow:0 6px 20px -2px var(--accent-secondary)}.open-editor-btn:active{transform:translateY(-1px);box-shadow:0 3px 10px -2px var(--accent-secondary)}.empty-pane-message{display:flex;justify-content:center;align-items:center;height:100%;color:var(--text-secondary);font-size:1rem;text-align:center;-webkit-user-select:none;user-select:none}.preview-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.preview-header .open-editor-btn{margin-top:0;padding:8px 16px;font-size:.85rem;flex-shrink:0;background-color:var(--accent-primary);color:#fff;box-shadow:none}.preview-pane::-webkit-scrollbar{display:none}.preview-pane{-ms-overflow-style:none;scrollbar-width:none}.group-pane{display:flex;flex-direction:column;padding:0}.titles-pane{flex:0 0 200px;display:flex;flex-direction:column;padding:0}.titles-list{flex-grow:1;overflow-y:auto;padding:0 8px 8px}.group-list{padding:0 8px}.document-card{position:relative;flex:0 1 14rem;max-width:14rem;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;background:var(--card-border-hover-dark);border:1px solid var(--card-border-dark);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.document-card{padding:.4rem .6rem;border-radius:6px;min-width:160px;height:auto;box-shadow:0 1px 4px #0000001a}.document-card-title{font-size:.9rem;font-weight:600;color:var(--text-primary, #f1f1f1);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-card-date{font-size:.75rem;color:var(--text-secondary, #a7afc2);margin-bottom:10px}.document-card-snippet{font-size:.8rem;color:var(--text-secondary, #ccc);flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-card-title{font-size:.8rem;margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-grid-cards{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.status,.error,.empty-state{padding:16px;border-radius:10px;text-align:center;background-color:var(--status-bg);color:var(--text-secondary);box-shadow:0 3px 6px var(--status-shadow);margin-top:16px}.status-container,.editable-dropdown-field{font-size:.75rem;margin-top:.3rem}.status-badge-button,.status-bubble{font-size:.65rem;padding:2px 8px}.delete-btn{width:18px;height:18px;font-size:10px}.drag-handle,.grid-drag-handle{font-size:1rem}.document-card:hover{transform:translateY(-1px);box-shadow:0 2px 8px #00000026}.document-card.folded{height:48px;padding:6px 16px;overflow:hidden}.document-card.folded .document-card-date,.document-card.folded .document-card-content>*,.document-card.folded .status-container,.document-card.folded .editable-dropdown-field,.document-card.folded .metadata-tag{display:none}.document-card.folded .document-card-title{font-size:.85rem;margin:0;padding-left:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:36px}.fold-toggle-btn{position:absolute;top:12px;left:8px;background:none;border:none;cursor:pointer;color:var(--icon-color);transition:color .3s ease;z-index:1000;line-height:1}.document-card.folded .delete-btn{display:none}.document-card.folded .grid-drag-handle{top:12px;right:8px}.document-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px var(--shadow-hover-dark);border-color:var(--card-border-hover-dark)}.theme-light .document-card{background:var(--card-bg-light);border:1px solid var(--card-border-light);box-shadow:0 3px 8px var(--card-shadow-light)}.theme-light .document-card:hover{box-shadow:0 8px 16px var(--shadow-hover-light);border-color:var(--card-border-hover-light)}.document-card-content{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.document-card-title{font-family:var(--font-family);font-size:1rem;color:var(--text-color-dark);margin-bottom:.5rem;transition:color .3s ease}.theme-light .document-card-title{color:var(--body-text-color)}.document-card-title:hover{color:var(--link-hover-color)}.grid-drag-handle{position:absolute;top:.5rem;right:2.5rem;cursor:grab;color:var(--icon-color);transition:color .3s ease;-webkit-user-select:none;user-select:none;z-index:5000}.grid-drag-handle:hover{color:var(--icon-color-hover)}.delete-btn{position:absolute;bottom:.5rem;right:.5rem;width:24px;height:24px;border-radius:50%;background:#0009;color:var(--icon-color-secondary);border:none;opacity:0;visibility:hidden;display:flex;align-items:center;justify-content:center;font-size:14px;transition:opacity .2s ease,background .2s ease,color .3s ease}.document-card:hover .delete-btn{opacity:1;visibility:visible}.delete-btn:hover{background:#f00c;color:var(--icon-color-secondary-hover)}.status-badge-button{display:inline-block;font-family:var(--font-family);font-size:.75rem;padding:4px 10px;border-radius:var(--border-radius);color:var(--button-text-color-dark);border:none;cursor:pointer;transition:background .2s ease,transform .2s ease,opacity .2s ease}.status-badge-button:hover{transform:scale(1.05);opacity:.9}.status-bubble-menu{position:absolute;top:36px;left:0;display:flex;flex-direction:column;gap:6px;padding:6px 10px;background:var(--card-bg-dark);border-radius:var(--card-radius);border:1px solid var(--card-border-dark);box-shadow:0 4px 12px var(--card-shadow-dark);z-index:1000;overflow:hidden;transform:translateY(2px);transition:transform .2s ease,opacity .2s ease}.theme-light .status-bubble-menu{background:var(--card-bg-light);border-color:var(--card-border-light)}.status-bubble{padding:4px 10px;border-radius:999px;color:#fff;border:none;cursor:pointer;white-space:nowrap;transition:transform .15s ease}.status-bubble:hover{transform:scale(1.1)}.status-container,.editable-dropdown-field{margin-top:.5rem;font-size:.9rem}.document-card.folded{height:48px;padding:8px 16px}.fold-toggle-btn{position:absolute;top:.5rem;left:.5rem;background:none;border:none;cursor:pointer;color:var(--icon-color);transition:color .3s ease;z-index:1000}.fold-toggle-btn:hover{color:var(--icon-color-hover)}.document-card.folded .document-card-content p,.document-card.folded .status-badge-button{display:none}.document-card.folded .delete-btn{bottom:.3rem}.draggable-item:not(li){position:relative;padding-left:28px}.draggable-item.list-item{position:relative}.drag-handle{position:absolute;left:0;top:0;width:24px;height:100%;cursor:grab;opacity:0;transition:opacity .2s ease;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Ccircle cx='8' cy='5' r='1.5'/%3E%3Ccircle cx='8' cy='12' r='1.5'/%3E%3Ccircle cx='8' cy='19' r='1.5'/%3E%3Ccircle cx='16' cy='5' r='1.5'/%3E%3Ccircle cx='16' cy='12' r='1.5'/%3E%3Ccircle cx='16' cy='19' r='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center 6px;background-size:16px}.draggable-item:hover .drag-handle{opacity:.5}.drag-handle:hover{opacity:1}.draggable-item.list-item>.drag-handle{left:-28px;background-position:center .7em}.draggable-item.list-item .draggable-item .drag-handle{display:none}.ProseMirror-dragging .draggable-item{opacity:.4;background:var(--accent-secondary);box-shadow:none}.ProseMirror-dropCursor{border-top:3px solid var(--accent-primary)}.pane-header,.titles-header{width:100%;box-sizing:border-box;margin:0;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:0;transition:background-color .3s ease,box-shadow .3s ease}.theme-light .pane-header,.theme-light .titles-header{background-color:var(--primary-color, #3a7bd5);box-shadow:0 4px 10px #3a7bd540}.theme-dark .pane-header,.theme-dark .titles-header{background-color:var(--accent-primary);box-shadow:0 4px 12px #0000004d}.group-pane .pane-header{border-top-left-radius:25px;border-bottom-left-radius:25px}.titles-header{flex-direction:column;gap:8px;padding:10px 12px}.pane-btn,.group-by-btn{width:36px;height:36px;padding:6px;font-size:1rem;color:#fff;background-color:transparent;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .3s ease,transform .3s ease;border-radius:50%}.pane-btn:hover,.group-by-btn:hover,.pane-btn-active,.group-by-btn.active{background-color:#ffffff4d;transform:scale(1.1)}.pane-btn-active,.group-by-btn.active{box-shadow:0 3px 8px #0000001a}.pane-dropdown,.menu-pane-dropdown,.menu-bulk-actions{padding:10px 14px;box-shadow:0 8px 16px #0000001f;border:1px solid rgba(0,0,0,.08);flex-direction:column;gap:8px;width:100%;box-sizing:border-box;animation:slide-down .25s ease-out forwards;border-radius:var(--border-radius-md, 12px);margin-top:4px;transition:background-color .3s ease,box-shadow .3s ease,border-color .3s ease}.menu-pane-dropdown-item,.menu-bulk-action-btn{background:transparent;padding:6px 10px;width:100%;display:flex;justify-content:flex-start;align-items:center;gap:8px;border-radius:var(--border-radius-sm, 6px);transition:background-color .2s ease,transform .2s ease,color .2s ease;border:none;cursor:pointer}.menu-pane-dropdown-item:hover,.menu-bulk-action-btn:hover{transform:translate(4px)}.theme-light .menu-pane-dropdown,.theme-light .menu-bulk-actions{background-color:#fff;border:1px solid #e5e7eb}.theme-light .menu-pane-dropdown-item,.theme-light .menu-bulk-action-btn{color:#374151}.theme-light .menu-pane-dropdown-item:hover,.theme-light .menu-bulk-action-btn:hover{background-color:#f3f4f6;color:#111827}.theme-dark .menu-pane-dropdown,.theme-dark .menu-bulk-actions{background-color:#1f2937;border:1px solid #374151;box-shadow:0 8px 24px #0006}.theme-dark .menu-pane-dropdown-item,.theme-dark .menu-bulk-action-btn{color:#d1d5db}.theme-dark .menu-pane-dropdown-item svg,.theme-dark .menu-bulk-action-btn svg{color:#9ca3af}.theme-dark .menu-pane-dropdown-item:hover,.theme-dark .menu-bulk-action-btn:hover{background-color:#374151;color:#fff}.theme-dark .menu-pane-dropdown-item:hover svg,.theme-dark .menu-bulk-action-btn:hover svg{color:#fff}.menu-bulk-action-btn.danger{color:var(--danger-primary, #ef4444)}.theme-light .menu-bulk-action-btn.danger:hover{background-color:#ef44441a}.theme-dark .menu-bulk-action-btn.danger:hover{background-color:#ef444433}.menu-bulk-actions span{font-size:.85rem;font-weight:600;color:var(--text-primary)}.menu-bulk-actions-buttons{display:flex;gap:4px}.menu-pane-dropdown-item{font-family:Inter,sans-serif;font-size:10px;font-weight:500;text-align:left;border:none;cursor:pointer}.menu-pane-dropdown-item .select-icon{width:16px;height:16px;transition:color .2s ease}.theme-light .menu-pane-dropdown-item{color:#374151}.theme-light .menu-pane-dropdown-item .select-icon{color:#6b7280}.theme-light .menu-pane-dropdown-item:hover{background-color:#f3f4f6;color:#111827}.theme-light .menu-pane-dropdown-item:hover .select-icon{color:#111827}.theme-dark .menu-pane-dropdown-item{color:#d1d5db}.theme-dark .menu-pane-dropdown-item .select-icon{color:#9ca3af}.theme-dark .menu-pane-dropdown-item:hover{background-color:#374151;color:#fff}.theme-dark .menu-pane-dropdown-item:hover .select-icon{color:#fff}.menu-search-wrapper{position:relative;width:100%}.menu-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-secondary)}.menu-search-wrapper .search-input{width:100%;padding:8px 12px 8px 32px;border:1px solid var(--border-default);background-color:var(--background-primary);color:var(--text-primary);outline:none;border-radius:var(--border-radius-sm)}.menu-search-wrapper .search-input:focus{box-shadow:0 0 0 3px var(--accent-secondary)}@keyframes slide-down{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.pane-btn svg,.group-by-btn svg,.menu-pane-dropdown-item svg,.menu-bulk-action-btn svg{font-size:1rem;width:1em;height:1em}.search-and-actions{padding:0;margin:0}.status-success:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:100%;animation:pop-in .5s forwards cubic-bezier(.68,-.6,.32,1.6)}.status-error:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");background-size:100%;animation:pop-in-shake .6s forwards ease-out}.drafting-chat-input-container{position:fixed;bottom:15px;left:calc(50% + 25px);transform:translate(-50%);width:90%;max-width:800px;padding:.5rem 1rem;border-radius:20px;border:1px solid var(--input-border-dark);background:linear-gradient(135deg,#121827,#070b14);box-shadow:0 4px 12px var(--shadow-dark);display:flex;align-items:center;box-sizing:border-box;z-index:1000}.upload-box-container{position:fixed;bottom:85px;left:calc(50% + 25px);transform:translate(-50%);width:100%;max-width:800px;background:var(--input-bg-dark);border:1px solid var(--input-border-dark);border-radius:10px;padding:10px;box-shadow:0 2px 5px var(--shadow-dark);z-index:999}.drafting-chat-input-container:focus-within{border-color:var(--active-border-highlight);animation:glowHighlight 3s ease forwards}.drafting-chat-input-box{flex:1;width:100%;border:none!important;outline:none!important;background:transparent!important;color:var( --input-text-dark )!important;font-size:clamp(.9rem,2vw,1rem);padding:.5rem;resize:none;overflow-y:auto;max-height:9rem;font-family:inherit;line-height:1.4;box-shadow:none!important;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.drafting-chat-input-box::placeholder{color:var(--input-text-dark);opacity:.6}.theme-light .drafting-chat-input-box{color:var(--input-text-light)!important}.drafting-chat-input-icons{display:flex;align-items:center;gap:.8rem;margin-right:.75rem}.drafting-chat-input-icons i{font-size:1.1rem;width:2rem;height:2rem;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:color .2s ease,transform .2s ease}.drafting-chat-input-icons i:hover{transform:scale(1.2)}.chat-send-btn{background:transparent;border:2px solid var(--icon-color-primary-dark);color:var(--icon-color-primary-dark);border-radius:50%;height:2rem;width:2rem;min-width:2rem;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .2s ease}.chat-send-btn i{font-size:1rem}.chat-send-btn:hover{border-color:var(--icon-color-hover-dark);color:var(--icon-color-hover-dark);box-shadow:0 4px 8px #00d2ff4d}.theme-light .drafting-chat-input-icons i,.theme-light .chat-send-btn{color:var(--icon-color-primary-light)!important;border-color:var(--icon-color-primary-light)}.theme-light .chat-send-btn:hover{color:var(--icon-color-hover-light)!important;border-color:var(--icon-color-hover-light);box-shadow:0 4px 8px #1e90ff4d}.draft-rewrite-toggle{position:absolute;top:-1.5rem;right:1rem;background:var(--input-bg-dark);border:1px solid var(--input-border-dark);border-radius:12px;padding:3px 8px;font-size:.75rem;color:var(--icon-color-primary-dark);cursor:pointer;z-index:1001}.draft-rewrite-toggle:hover{background:var(--highlight-color);color:#fff;border-color:var(--highlight-color)}.theme-light .draft-rewrite-toggle{background:var(--input-bg-light);border-color:var(--input-border-light);color:var(--icon-color-primary-light)}.theme-light .draft-rewrite-toggle:hover{background:var(--link-hover-color);border-color:var(--link-hover-color);color:#fff}.drafting-chat-input-icons,.drafting-chat-input-icons *,.drafting-chat-input-icons i{color:var(--icon-color-primary-light)!important}.drafting-chat-input-icons i:hover{color:var(--icon-color-hover-light)!important}.chat-send-btn{color:var(--icon-color-primary-light)!important;border-color:var(--icon-color-primary-light)!important}.chat-send-btn:hover{color:var(--icon-color-hover-light)!important;border-color:var(--icon-color-hover-light)!important}.theme-light .drafting-chat-input-container{background:var(--input-bg-light);border:1px solid var(--input-border-light);box-shadow:0 4px 8px var(--shadow-light)}.theme-light .drafting-chat-input-container:focus-within{border-color:var(--active-border-highlight);box-shadow:0 0 15px #3a7bd566}.theme-light .drafting-chat-input-box{color:var(--input-text-light)}.theme-light .drafting-chat-input-box::placeholder{color:var(--input-text-light);opacity:.5}.theme-light .drafting-chat-input-icons{color:var(--icon-color-primary-light)}.theme-light .drafting-chat-input-icons i:hover{color:var(--icon-color-hover-light)}.theme-light .chat-send-btn{border-color:var(--icon-color-primary-light);color:var(--icon-color-primary-light)}.theme-light .chat-send-btn:hover{border-color:var(--icon-color-hover-light);color:var(--icon-color-hover-light);box-shadow:0 6px 12px #1e90ff4d}.scrollable-inner-content{flex-grow:1;overflow-y:auto;padding:20px}.drafting-note{position:absolute;bottom:12px;left:50%;transform:translate(-50%);color:var(--text-muted, #888);font-size:.75rem}.action-button{background:var(--button-bg-gradient);color:var(--button-text-color);border-radius:8px;padding:10px 16px;cursor:pointer;border:none;display:flex;align-items:center;gap:8px;transition:transform .3s ease,box-shadow .3s ease}.action-button:hover{transform:translateY(-2px);box-shadow:0 4px 10px var(--shadow-hover)}.drafting-menu-popup{position:absolute;bottom:60px;left:0;width:100%;max-width:600px;background-color:var(--sidebar-bg, rgba(255, 255, 255, .95));border-radius:12px;padding:20px;box-shadow:var(--box-shadow, 0 4px 8px rgba(0, 0, 0, .2));z-index:1500;animation:fadeInUp .3s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.open-drafting-menu-btn{position:fixed;bottom:80px;right:20px;background-color:var(--highlight-gold);color:#fff;border:none;border-radius:50px;padding:12px 16px;font-size:.9rem;display:flex;align-items:center;cursor:pointer;box-shadow:0 4px 8px #0003;transition:background-color .3s ease}.open-drafting-menu-btn:hover{background-color:var(--highlight-gold-hover, #c29500)}.open-drafting-menu-btn i{margin-right:8px}.close-menu-btn:hover{color:var(--primary, #3a7bd5)}.drafting-top-section{display:flex;justify-content:center;align-items:center;padding:0;margin:0}.grid-logo{width:190px;height:190px;background-size:100%;background-position:center;background-repeat:no-repeat;flex-shrink:0;padding:0;margin:0}.drafting-page.theme-dark{background:transparent!important;background-image:none!important}.theme-dark{--right-pane-bg: linear-gradient( 135deg, rgba(18, 24, 39, .9), rgba(7, 11, 20, .85) );--right-pane-border: rgba(255, 255, 255, .2);--right-pane-text-color: #f1f1f1;--right-pane-active-bg: rgba(108, 188, 255, .3);--right-pane-shadow: rgba(0, 0, 0, .4);--right-pane-backdrop-filter: blur(14px)}.theme-light{--right-pane-bg: linear-gradient( 135deg, rgba(244, 244, 244, .95), rgba(202, 214, 229, .9) );--right-pane-border: rgba(0, 0, 0, .1);--right-pane-text-color: #333333;--right-pane-active-bg: rgba(58, 123, 213, .15);--right-pane-shadow: rgba(0, 0, 0, .2);--right-pane-backdrop-filter: blur(10px)}.right-pane{position:fixed;top:0;right:-50%;width:50%;height:100vh;background:var(--right-pane-bg);border-left:1px solid var(--right-pane-border);box-shadow:-2px 0 10px var(--right-pane-shadow);-webkit-backdrop-filter:var(--right-pane-backdrop-filter);backdrop-filter:var(--right-pane-backdrop-filter);padding:20px;transition:right .3s ease;z-index:4200;display:flex;flex-direction:column;color:var(--right-pane-text-color)}.right-pane.open{right:0}.right-pane-toggle-btn{position:fixed;top:50%;right:50%;transform:translateY(-50%);background:var(--primary, #3a7bd5);border:none;border-radius:50%;color:#fff;width:30px;height:30px;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 2px 4px #0003;transition:transform .3s ease,right .3s ease;z-index:1300}.right-pane.open+.right-pane-toggle-btn{right:50%;transform:translateY(-50%) rotate(180deg)}.right-pane:not(.open)+.right-pane-toggle-btn{right:0}.right-pane-toggle-btn:hover{transform:translateY(-50%) scale(1.1)}.right-pane-content{overflow-y:auto;flex-grow:1}.right-pane-content h3{margin-bottom:16px;border-bottom:1px solid var(--right-pane-border);padding-bottom:8px;font-size:1.2rem;color:var(--right-pane-text-color)}.right-pane-content .copy-btn{margin-top:12px;background-color:var(--primary, #3a7bd5);color:#fff;border:none;border-radius:8px;padding:8px 12px;cursor:pointer;display:flex;align-items:center;gap:6px}.right-pane-content .copy-btn:hover{background-color:var(--secondary, #2a6cb4)}.right-pane-content{overflow-y:auto;flex-grow:1;transform-origin:top right;transition:transform .3s ease}.document-uploader{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;z-index:9999;background-color:var(--uploader-overlay-bg);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.document-uploader.visible{opacity:1;visibility:visible}.upload-zone{display:flex;flex-direction:column;align-items:center;gap:16px;padding:48px;border-radius:var(--border-radius, 12px);text-align:center;cursor:pointer;transition:transform .2s ease,box-shadow .3s ease,border-color .3s ease;transform:scale(.95);transition-property:transform,box-shadow,border-color,background-color;transition-duration:.3s;transition-timing-function:ease;background-color:var( --card-bg-dark );border:2px dashed var(--item-border-dark);box-shadow:var(--card-shadow-dark)}.document-uploader.visible .upload-zone{transform:scale(1)}.upload-zone h3{margin:0;font-size:1.25rem;font-weight:600;color:var(--text-color-dark)}.upload-zone p{margin:0;color:var(--body-text-color);max-width:300px}.theme-dark .document-uploader{--uploader-overlay-bg: rgba(7, 11, 20, .6)}.theme-dark .upload-zone{background-color:var(--card-bg-dark);border-color:var(--item-border-dark);box-shadow:var(--card-shadow-dark)}.theme-dark .upload-zone h3{color:var(--text-color-dark)}.theme-light .document-uploader{--uploader-overlay-bg: rgba(242, 242, 242, .6)}.theme-light .upload-zone{background-color:var(--container-bg-light);border-color:var(--item-border-light);box-shadow:var(--card-shadow-light)}.theme-light .upload-zone h3{color:var(--text-color-light)}.drag-active .upload-zone{transform:scale(1.05);border-color:var(--primary-color);box-shadow:0 0 24px var(--shadow-hover-light);background-image:linear-gradient(-45deg,var(--accent-primary) 25%,transparent 25%,transparent 50%,var(--accent-primary) 50%,var(--accent-primary) 75%,transparent 75%,transparent);background-size:50px 50px;animation:marching-ants 1.5s linear infinite}.theme-dark .drag-active .upload-zone{box-shadow:0 0 24px var(--shadow-hover-dark)}.upload-icon{width:56px;height:56px;color:var(--icon-color-primary-dark);transition:all .3s ease}.theme-light .upload-icon{color:var(--icon-color-primary-light)}.drag-active .upload-icon{transform:scale(1.1);color:var(--primary-color)}@keyframes marching-ants{to{background-position:100% 0}}.filters-pane.permanent{display:flex;flex-direction:column;gap:.75rem;background:transparent;order:-1;flex:0 0 auto;height:100%;width:20%;overflow-y:auto;position:relative}.filter-card-container{background:var(--ui-surface-raised);border:1px solid var(--ui-border-default);border-radius:var(--ui-border-radius);padding:.75rem 1rem;transition:all var(--ui-transition)}.filter-card-container.is-expanded{border-color:var(--ui-border-interactive);box-shadow:var(--ui-shadow-default)}.filter-card-header{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:none;padding:0;cursor:pointer;text-align:left}.filter-card-title-text{color:var(--ui-text-primary);font-weight:600;font-size:.9rem}.expand-icon{color:var(--ui-text-tertiary);transition:transform var(--ui-transition)}.filter-card-container.is-expanded .expand-icon{transform:rotate(180deg)}.filter-card-content-wrapper{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .4s ease,opacity .3s ease-in-out}.filter-card-container.is-expanded .filter-card-content-wrapper{grid-template-rows:1fr;opacity:1}.filter-card-content{overflow:hidden;padding-top:1rem;display:flex;flex-direction:column;gap:.5rem}.filter-label{font-size:.85rem;font-weight:500;color:var(--ui-text-secondary)}.filter-btn,.filter-toggle-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.6rem 1rem;border-radius:.5rem;cursor:pointer;border:1px solid var(--ui-border-default);background:transparent;color:var(--ui-text-secondary);box-shadow:none;font-weight:500;transition:all var(--ui-transition)}.filter-btn:hover,.filter-toggle-btn:hover{transform:translateY(-2px);color:var(--ui-text-primary);border-color:var(--ui-border-interactive);background:var(--ui-surface-raised)}.filter-btn.active,.filter-toggle-btn.active{background:var(--ui-accent-gradient);color:var(--ui-text-on-accent);border-color:transparent;box-shadow:var(--ui-shadow-default);font-weight:600}.filter-select{width:100%;padding:.75rem;border-radius:.5rem;font-size:.9rem;background-color:var(--ui-surface-raised);color:var(--ui-text-primary);border:1px solid var(--ui-border-default);transition:all var(--ui-transition);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em}.filter-select:focus{outline:none;border-color:var(--ui-border-focus);box-shadow:0 0 0 3px var(--ui-border-focus-glow, rgba(58, 123, 213, .3))}.filter-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:var(--ui-slider-track-color);outline:none;cursor:pointer}.filter-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1rem;height:1rem;border-radius:50%;background-color:var(--ui-slider-thumb-color);border:2px solid var(--ui-slider-thumb-border);transition:transform .2s ease}.filter-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:50%;background-color:var(--ui-slider-thumb-color);border:2px solid var(--ui-slider-thumb-border);transition:transform .2s ease}.filter-slider::-webkit-slider-thumb:hover,.filter-slider::-moz-range-thumb:hover{transform:scale(1.2)}.slider-value{font-weight:600;color:var(--ui-slider-progress-color);font-size:.9rem;text-align:right}.theme-light .filter-card-container{background:var(--nebula-blue-500);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--nebula-blue-400)}.theme-light .filter-card-title-text,.theme-light .filter-label,.theme-light .expand-icon{color:var(--nebula-neutral-0)}.theme-light .filter-btn,.theme-light .filter-toggle-btn{color:var(--nebula-neutral-100);border-color:#fff6;background:transparent}.theme-light .filter-btn:hover,.theme-light .filter-toggle-btn:hover{color:var(--nebula-neutral-0);background-color:#ffffff1a;border-color:var(--nebula-neutral-0)}.theme-light .filter-btn.active,.theme-light .filter-toggle-btn.active{background:var(--nebula-neutral-0);color:var(--nebula-purple-400);border-color:var(--nebula-neutral-0);box-shadow:var(--ui-shadow-default);font-weight:700}.theme-light .filter-select{background-color:#0003;color:var(--nebula-neutral-0);border-color:#fff6;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}.theme-light .filter-slider{background:#0003}.theme-light .filter-slider::-webkit-slider-thumb{background-color:var(--nebula-neutral-0);border:2px solid var(--nebula-blue-500)}.theme-light .filter-slider::-moz-range-thumb{background-color:var(--nebula-neutral-0);border:2px solid var(--nebula-blue-500)}.dashboard-container{display:flex;flex-direction:column;height:100vh;max-width:1600px;gap:1.5rem;background-color:var(--ui-background);width:calc(100% + 4rem);margin:0 -2rem;padding:1.5rem;overflow:visible;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,black 3%,black 97%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0%,black 3%,black 97%,transparent 100%)}.dashboard-container{padding:1.5rem 20px 1.5rem 1.5rem}.dashboard-header-static{flex-shrink:0}.dashboard-title{text-align:center;font-size:2rem;font-weight:700;color:var(--ui-text-primary);padding-bottom:.5rem;margin-bottom:.5rem}.tab-navigation{display:flex;position:relative;border-radius:1rem;padding:.5rem;width:100%;max-width:450px;transition:background-color .3s ease,box-shadow .3s ease}.tab-btn{flex:1;padding:.85rem 1.5rem;background-color:transparent;border:none;border-radius:.75rem;font-size:1rem;font-weight:600;cursor:pointer;z-index:1;transition:all var(--ui-transition)}.theme-light .tab-navigation{background-color:var(--nebula-blue-500);box-shadow:0 4px 15px #0000001a,inset 0 2px 4px #0000001a}.theme-light .tab-btn{color:#ffffffb3}.theme-light .tab-btn:not(.active):hover{color:var(--nebula-neutral-0);transform:translateY(-2px)}.theme-light .tab-btn.active{background:var(--nebula-neutral-0);color:var(--nebula-purple-400);box-shadow:0 4px 10px #00000026;transform:translateY(-2px)}.theme-dark .tab-navigation{background-color:var(--ui-surface-raised);box-shadow:var(--ui-shadow-default)}.theme-dark .tab-btn{color:var(--ui-text-tertiary)}.theme-dark .tab-btn:not(.active):hover{color:var(--ui-text-primary);background-color:#ffffff0d}.theme-dark .tab-btn.active{background:var(--ui-accent-gradient);color:var(--ui-text-on-accent);box-shadow:var(--ui-shadow-interactive)}.dashboard-header{display:flex;align-items:center;justify-content:flex-start;margin-bottom:.5rem}.dashboard-body-scrollable{flex-grow:1;overflow:hidden;position:relative;display:flex}.dash-main-content{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:1.5rem;padding-top:0rem;padding-right:.5rem}.content-area{display:flex;flex-direction:row;gap:1.5rem;width:100%;height:100%;padding-bottom:0rem;overflow:visible}.theme-dark .charts-grid>*,.theme-dark .pie-charts-grid>*{background:var(--ui-surface-raised);border-radius:var(--ui-border-radius);padding:1rem;box-shadow:var(--ui-shadow-default);border:1px solid var(--ui-border-default)}.theme-light .charts-grid>*,.theme-light .pie-charts-grid>*{background:var(--ui-surface-raised);border-radius:var(--ui-border-radius);padding:1rem;box-shadow:var(--ui-shadow-default);position:relative;border:1px solid transparent;background-clip:padding-box}.theme-light .charts-grid>*:before,.theme-light .pie-charts-grid>*:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;background:var(--ui-accent-gradient)}.line-chart-title,.pie-chart-title{font-size:.9rem;color:var(--highlight-color);margin-bottom:.75rem}.recharts-legend-item-text,.recharts-tooltip-wrapper,.recharts-cartesian-axis-tick-value,.recharts-pie-label-text{font-size:.7rem!important;fill:var(--color-secondary)}.user-cases{flex:1;display:flex;flex-direction:column;overflow:hidden;height:calc(100vh - 200px);width:100%}.kpi-card-container{background:var(--ui-surface-raised);border:1px solid var(--ui-border-default);border-radius:var(--ui-border-radius);padding:1rem 1.25rem 0rem;transition:all var(--ui-transition)}.kpi-expander-header{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:none;padding:0;cursor:pointer}.kpi-expander-title{color:var(--ui-text-primary);font-weight:700;font-size:1.1rem}.kpi-expander-icon{color:var(--ui-text-tertiary);transition:transform var(--ui-transition)}.kpi-card-container.is-expanded .kpi-expander-icon{transform:rotate(180deg)}.kpi-content-wrapper{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .4s ease,opacity .4s ease}.kpi-card-container.is-expanded .kpi-content-wrapper{grid-template-rows:1fr;opacity:1}.kpi-content{overflow:hidden;padding-top:1.25rem}.kpi-items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.single-kpi-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem 1rem;background:var(--ui-surface-raised);border:1px solid var(--ui-border-default);border-radius:var(--ui-border-radius);box-shadow:var(--ui-shadow-default);transition:all var(--ui-transition);animation:fadeIn .5s ease-out forwards}.single-kpi-card:hover{transform:translateY(-4px);box-shadow:var(--ui-shadow-interactive);border-color:var(--ui-border-interactive)}.single-kpi-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;text-align:center;margin-bottom:.75rem;padding:.25rem .6rem;border-radius:99px;background-color:var(--nebula-neutral-100);color:var(--ui-text-secondary)}.theme-dark .single-kpi-title{background-color:#ffffff0d;color:var(--ui-text-tertiary)}.single-kpi-value{font-size:1.8rem;font-weight:800;line-height:1.1;text-align:center;text-shadow:1px 1px 3px rgba(0,0,0,.05);background:var(--ui-accent-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--ui-text-interactive)}.theme-light .kpi-card-container{position:relative;border:1px solid transparent;background-clip:padding-box;background-color:var( --ui-surface-raised )}.theme-light .kpi-card-container:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;background:var(--ui-accent-gradient)}.pie-chart-container{background:var(--ui-surface-raised);border-radius:var(--ui-border-radius);padding:1.25rem;box-shadow:var(--ui-shadow-default);position:relative;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;animation:fadeIn .8s ease-out forwards}.pie-chart-container:hover{transform:translateY(-4px);box-shadow:var(--ui-shadow-interactive)}.pie-chart-container:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(ellipse at center,rgba(77,171,247,.1),transparent 60%);opacity:0;transform:scale(.8);transition:transform .6s ease,opacity .6s ease;z-index:0}.pie-chart-container:hover:before{opacity:1;transform:scale(1.2)}.pie-chart-title{font-size:1.1rem;font-weight:600;text-align:center;margin-bottom:1rem;color:var(--ui-text-primary);position:relative;z-index:1}.pie-chart-navigation{display:flex;justify-content:center;gap:.5rem;margin-bottom:1.25rem;position:relative;z-index:1}.pie-chart-navigation .category-btn{font-size:.8rem;padding:.4rem .8rem;border-radius:.5rem;cursor:pointer;font-weight:500;border:1px solid var(--ui-border-default);background:transparent;color:var(--ui-text-secondary);transition:all var(--ui-transition)}.pie-chart-navigation .category-btn:hover{border-color:var(--ui-border-interactive);color:var(--ui-text-primary)}.theme-light .pie-chart-container{position:relative;border:1px solid transparent;background-clip:padding-box}.theme-light .pie-chart-container:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;background:var(--ui-accent-gradient)}.theme-light .pie-chart-navigation .category-btn{background:var(--nebula-neutral-0);color:var(--nebula-blue-500);border-color:var(--nebula-neutral-300)}.theme-light .pie-chart-navigation .category-btn:hover{border-color:var(--nebula-blue-400);background:var(--nebula-neutral-0);color:var(--nebula-blue-500)}.theme-light .pie-chart-navigation .category-btn.active{background:var(--nebula-blue-500);color:var(--nebula-neutral-0);border-color:var(--nebula-blue-500);font-weight:700}.plotly-chart-area{width:100%;height:300px;position:relative;z-index:1}.chart-container{background:var(--ui-surface-raised);border-radius:var(--ui-border-radius);padding:1.25rem 1.25rem 1rem;box-shadow:var(--ui-shadow-default);transition:transform .3s ease,box-shadow .3s ease;animation:fadeIn .8s ease-out forwards}.chart-container:hover{transform:translateY(-4px);box-shadow:var(--ui-shadow-interactive)}.chart-title{font-size:1.1rem;font-weight:600;text-align:center;margin-bottom:1rem;color:var(--ui-text-primary)}.chart-navigation{display:flex;justify-content:center;gap:.5rem;margin-bottom:1.25rem}.category-btn{font-size:.8rem;padding:.4rem .8rem;border-radius:.5rem;cursor:pointer;font-weight:500;border:1px solid var(--ui-border-default);background:transparent;color:var(--ui-text-secondary);transition:all var(--ui-transition)}.category-btn:hover{border-color:var(--ui-border-interactive);color:var(--ui-text-primary)}.theme-light .category-btn{background:var(--nebula-neutral-0);color:var(--nebula-blue-500);border-color:var(--nebula-neutral-300)}.theme-light .category-btn:hover{border-color:var(--nebula-blue-400);background:var(--nebula-neutral-0);color:var(--nebula-blue-500)}.theme-light .category-btn.active{background:var(--nebula-blue-500);color:var(--nebula-neutral-0);border-color:var(--nebula-blue-500);font-weight:700}.theme-light .chart-container{position:relative;border:1px solid transparent;background-clip:padding-box}.theme-light .chart-container:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;background:var(--ui-accent-gradient)}.recharts-cartesian-axis-line,.recharts-cartesian-axis-tick-line{stroke:var(--ui-border-default);stroke-width:1}.recharts-cartesian-grid-horizontal line,.recharts-cartesian-grid-vertical line{stroke:var(--ui-border-default);stroke-dasharray:3 3}.recharts-cartesian-axis-tick-value,.recharts-legend-item-text,.recharts-tooltip-wrapper,.recharts-pie-label-text{fill:var( --ui-text-tertiary )!important;font-size:.75rem;font-weight:500}.recharts-default-tooltip{background:var(--ui-surface-glass)!important;-webkit-backdrop-filter:var(--ui-glass-blur)!important;backdrop-filter:var(--ui-glass-blur)!important;border-radius:var(--ui-border-radius)!important;border:1px solid var(--ui-border-default)!important;box-shadow:var(--ui-shadow-default)!important}.recharts-line .recharts-curve{stroke-width:2.5}.recharts-area .recharts-area-area{opacity:.5}.recharts-line .recharts-dot{stroke-width:2;transition:all .2s ease}.recharts-active-dot .recharts-dot{stroke:var(--ui-surface-raised);r:6;filter:drop-shadow(0 0 5px currentColor)}.recharts-line .recharts-curve{stroke-dasharray:1000;stroke-dashoffset:1000;animation:draw-line 2s ease-out forwards}@keyframes draw-line{to{stroke-dashoffset:0}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.user-cases-container{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.8rem;padding:1.25rem;box-shadow:0 .4rem 1rem #0000004d;overflow:hidden;height:100%;width:100%;display:flex;flex-direction:column;color:#f1f1f1}.table-heading{font-size:1.1rem;color:#6cbcff;text-align:center;margin-bottom:1rem;flex-shrink:0}.search-container{position:relative;margin-bottom:1rem;flex-shrink:0}.search-input{width:100%;padding:.5rem .8rem .5rem 2.25rem;border-radius:.4rem;background:#00000026;border:1px solid rgba(255,255,255,.1);color:#ddd;font-size:.8rem;transition:all .3s ease}.search-input:focus{outline:none;border-color:var(--ui-border-interactive);background:#00000040}.search-input::placeholder{color:#888}.search-icon{position:absolute;left:.8rem;top:50%;transform:translateY(-50%);color:#888}.table-wrapper{overflow:auto;flex-grow:1}.user-cases-table{width:100%;border-collapse:separate;border-spacing:0}.user-cases-table th{padding:0;vertical-align:middle;background-color:#ffffff0d;text-align:left;position:relative}.header-cell{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:.75rem;gap:.5rem}.sortable-header{display:flex;align-items:center;gap:.3rem;font-size:.8rem;font-weight:600;color:#a7afc2;cursor:pointer;transition:color .3s ease;flex-grow:1}.sortable-header:hover{color:#fff}.sortable-header svg{font-size:.7rem}.user-cases-table td{padding:.75rem;font-size:.8rem;border-bottom:1px solid rgba(255,255,255,.1)}.filter-popover-container{position:relative;flex-shrink:0}.filter-icon-btn{background:none;border:none;color:#8a93a7;cursor:pointer;padding:.25rem;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative}.filter-icon-btn:hover{background-color:#ffffff1a;color:#fff}.filter-icon-btn.is-active{color:var(--nebula-blue-400)}.filter-active-dot{position:absolute;bottom:4px;right:4px;width:6px;height:6px;border-radius:50%;background-color:var(--nebula-blue-400)}.filter-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:240px;background:#1a2233;border:1px solid rgba(255,255,255,.15);border-radius:var(--ui-border-radius);box-shadow:0 8px 24px #00000080;padding:.5rem;animation:fadeIn .2s ease-out}.filter-options-list{display:flex;flex-direction:column;gap:.25rem;max-height:250px;overflow-y:auto}.filter-option-btn{width:100%;padding:.75rem;border:none;background-color:transparent;color:var(--ui-text-secondary);text-align:left;font-size:.8rem;border-radius:4px;cursor:pointer;transition:all .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filter-option-btn:hover{background-color:#ffffff1a;color:var(--ui-text-primary)}.filter-option-btn.is-active{background:var(--ui-accent-gradient);color:var(--ui-text-on-accent);font-weight:600}.column-filter-input{width:100%;padding:.5rem .75rem;font-size:.8rem;border-radius:4px;background:#0003;border:1px solid transparent;color:#ddd}.column-filter-input,.column-filter-dropdown{width:100%}@media (max-width: 480px){.user-cases-container{padding:.6rem}.user-cases-table th,.user-cases-table td{font-size:.7rem;padding:.3rem}.table-heading{font-size:.85rem}}.date-range-filter-container{display:flex;flex-direction:column;gap:1rem}.relative-date-btns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5rem}.relative-date-btns button,.clear-filter-btn{width:100%;padding:.5rem;border:1px solid var(--ui-border-default);background-color:var(--ui-surface-raised);color:var(--ui-text-secondary);text-align:center;font-size:.7rem;font-weight:500;border-radius:4px;cursor:pointer;transition:all .2s ease}.relative-date-btns button:hover,.clear-filter-btn:hover{border-color:var(--ui-border-interactive);background-color:#ffffff1a;color:var(--ui-text-primary)}.clear-filter-btn{background-color:transparent;border-color:transparent;margin-top:.5rem}.clear-filter-btn:hover{background-color:#dc35451a;color:#f89ca7}.date-inputs{display:flex;flex-direction:column;gap:.75rem;border-top:1px solid var(--ui-border-default);padding-top:1rem}.date-input-group{display:flex;flex-direction:column;gap:.25rem}.date-input-group label{font-size:.7rem;font-weight:500;color:var(--ui-text-tertiary);text-transform:uppercase;letter-spacing:.5px}.date-input-group input[type=date]{width:100%;padding:.5rem .75rem;font-size:.8rem;border-radius:4px;background:#0003;border:1px solid transparent;color:#ddd;font-family:inherit}.date-input-group input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;filter:invert(.6) brightness(1.2)}.relative-date-btns button.is-active{background:var(--ui-accent-gradient);color:var(--ui-text-on-accent);border-color:transparent;font-weight:600}.theme-light .user-cases-container{background:var(--card-bg-light);color:var(--text-color-light);box-shadow:0 .4rem 1rem var(--card-shadow-light)}.theme-light .user-cases-table th{background-color:#00000008;color:var(--text-color-light)}.theme-light .user-cases-table td{border-bottom-color:#00000014;color:var(--text-color-light)}.theme-light .search-input{background:#00000008;border-color:#00000014;color:var(--text-color-light)}.theme-light .column-filter-input,.theme-light .column-filter-dropdown{background:#00000008!important;color:var(--text-color-light)!important}.theme-light .select__control{background-color:#fffc!important;border-color:#0000001a!important}.theme-light .select__single-value,.theme-light .select__placeholder{color:var(--text-color-light)!important}.theme-light .select__menu{background-color:#fffffff2!important;color:var(--text-color-light)!important}.theme-light .select__option{background-color:transparent!important}.theme-light .select__option--is-focused{background-color:#3a7bd51a!important}.theme-light .sortable-header{color:var(--text-color-light)}:root{--nebula-neutral-0: #ffffff;--nebula-neutral-50: #f8f9fa;--nebula-neutral-100: #f1f3f5;--nebula-neutral-200: #e9ecef;--nebula-neutral-300: #dee2e6;--nebula-neutral-400: #ced4da;--nebula-neutral-500: #adb5bd;--nebula-neutral-600: #868e96;--nebula-neutral-700: #495057;--nebula-neutral-800: #343a40;--nebula-neutral-900: #212529;--nebula-neutral-950: #121827;--nebula-blue-300: #74c0fc;--nebula-blue-400: #4dabf7;--nebula-blue-500: #339af0;--nebula-purple-400: #be4bdb;--nebula-pink-400: #f06595;--nebula-teal-400: #38d9a9;--nebula-orange-400: #fd7e14;--nebula-green-400: #69db7c;--nebula-yellow-400: yellow/gold (#ffd700);--nebula-status-success: #28a745;--nebula-status-info: #0d6efd;--nebula-status-error: #dc3545}:root{--ui-border-radius: .75rem;--ui-glass-blur: blur(12px);--ui-transition: .3s ease;--ui-accent-gradient: linear-gradient( 150deg, var(--nebula-blue-400), var(--nebula-purple-400) )}:root .theme-dark{--ui-background: var(--nebula-neutral-950);--ui-surface-glass: rgba(18, 24, 39, .85);--ui-surface-raised: rgba(255, 255, 255, .07);--ui-text-primary: var(--nebula-neutral-100);--ui-text-secondary: var(--nebula-neutral-300);--ui-text-tertiary: var(--nebula-neutral-500);--ui-text-interactive: var(--nebula-blue-400);--ui-text-on-accent: var(--nebula-neutral-0);--ui-border-default: rgba(255, 255, 255, .12);--ui-border-interactive: rgba(255, 255, 255, .25);--ui-border-focus: var(--nebula-blue-400);--ui-border-focus-glow: rgba(77, 171, 247, .3);--ui-shadow-default: 0 4px 12px rgba(0, 0, 0, .3);--ui-shadow-interactive: 0 0 1rem rgba(77, 171, 247, .4);--ui-select-arrow-color: var(--nebula-neutral-400);--ui-chart-color-1: var(--nebula-blue-400);--ui-chart-color-2: var(--nebula-teal-400);--ui-chart-color-3: var(--nebula-pink-400);--ui-chart-color-4: var(--nebula-orange-400);--ui-chart-color-5: var(--nebula-green-400);--ui-chart-color-6: var(--nebula-yellow-400);--ui-chart-grid-color: rgba(255, 255, 255, .1);--ui-chart-tooltip-bg: var(--ui-surface-raised);--ui-chart-tooltip-text: var(--ui-text-primary);--ui-slider-track-color: var(--ui-surface-raised);--ui-slider-progress-color: var(--nebula-blue-400);--ui-slider-thumb-color: var(--nebula-blue-300);--ui-slider-thumb-border: var(--ui-background);--ui-status-success-bg: rgba(40, 167, 69, .15);--ui-status-info-bg: rgba(13, 110, 253, .15);--ui-status-error-bg: rgba(220, 53, 69, .15)}:root .theme-light{--ui-background: var(--nebula-neutral-100);--ui-surface-glass: rgba(255, 255, 255, .6);--ui-surface-raised: var(--nebula-neutral-0);--ui-text-primary: var(--nebula-neutral-900);--ui-text-secondary: var(--nebula-neutral-700);--ui-text-tertiary: var(--nebula-neutral-600);--ui-text-interactive: var(--nebula-blue-500);--ui-text-on-accent: var(--nebula-neutral-0);--ui-border-default: var(--nebula-neutral-200);--ui-border-interactive: var(--nebula-neutral-400);--ui-border-focus: var(--nebula-blue-500);--ui-border-focus-glow: rgba(51, 154, 240, .25);--ui-shadow-default: 0 4px 12px rgba(0, 0, 0, .08);--ui-shadow-interactive: 0 0 1rem rgba(51, 154, 240, .2);--ui-select-arrow-color: var(--nebula-neutral-600);--ui-slider-track-color: var(--nebula-neutral-200);--ui-slider-progress-color: var(--nebula-blue-500);--ui-slider-thumb-color: var(--nebula-blue-500);--ui-slider-thumb-border: var(--nebula-neutral-0);--ui-status-success-bg: rgba(40, 167, 69, .1);--ui-status-info-bg: rgba(13, 110, 253, .1);--ui-status-error-bg: rgba(220, 53, 69, .1);--ui-chart-color-1: var(--nebula-blue-400);--ui-chart-color-2: var(--nebula-teal-400);--ui-chart-color-3: var(--nebula-pink-400);--ui-chart-color-4: var(--nebula-orange-400);--ui-chart-color-5: var(--nebula-green-400);--ui-chart-color-6: var(--nebula-yellow-400);--ui-chart-grid-color: rgba(255, 255, 255, .1);--ui-chart-tooltip-bg: var(--ui-surface-raised);--ui-chart-tooltip-text: var(--ui-text-primary)}.date-filter-container{display:flex;flex-direction:column;gap:.75rem}.quick-select-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.quick-select-buttons button{border:1px solid var(--ui-border-default);background:transparent;cursor:pointer;padding:.5rem .85rem;font-size:.85rem;font-weight:500;line-height:1;border-radius:.5rem;color:var(--ui-text-secondary);transition:all var(--ui-transition)}.quick-select-buttons button:hover{border-color:var(--ui-border-interactive);color:var(--ui-text-primary);transform:translateY(-2px)}.quick-select-buttons button.active{background:var(--ui-accent-gradient);color:var(--ui-text-on-accent);border-color:transparent;font-weight:600;box-shadow:var(--ui-shadow-default)}.dashboard-kpi-card{background:var(--ui-surface-glass);-webkit-backdrop-filter:var(--ui-glass-blur);backdrop-filter:var(--ui-glass-blur);border-radius:var(--ui-border-radius);border:1px solid var(--ui-border-default);padding:1.25rem;box-shadow:var(--ui-shadow-default);transition:all var(--ui-transition);animation:fadeIn .8s ease-out}.dashboard-kpi-card:hover{transform:translateY(-.25rem);box-shadow:var(--ui-shadow-interactive);border-color:var(--ui-border-interactive)}@media (max-width: 768px){.dashboard-kpi-card{padding:1rem}.card-title{font-size:1rem}.dashboard-kpi-title{font-size:.85rem}.dashboard-kpi-value{font-size:1rem}}@media (max-width: 480px){.dashboard-kpi-card{padding:.75rem}.card-title{font-size:.95rem}}@keyframes fadeIn{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}.filter-card-container{background:var(--ui-surface-glass);-webkit-backdrop-filter:var(--ui-glass-blur);backdrop-filter:var(--ui-glass-blur);border-radius:var(--ui-border-radius);border:1px solid var(--ui-border-default);padding:1.25rem 1.25rem .25rem;box-shadow:var(--ui-shadow-default);transition:all var(--ui-transition);animation:fadeIn .8s ease-out}.filter-card-container:hover{transform:translateY(-.25rem);box-shadow:var(--ui-shadow-interactive);border-color:var(--ui-border-interactive)}.slider-value{font-weight:600;padding-left:.3rem;color:var( --ui-slider-progress-color );background:var(--ui-accent-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.month-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;outline:none;cursor:pointer;background:var(--ui-slider-track-color)}.month-slider::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--ui-slider-progress-color) var(--slider-percentage),var(--ui-slider-track-color) var(--slider-percentage))}.month-slider::-moz-range-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--ui-slider-progress-color) var(--slider-percentage),var(--ui-slider-track-color) var(--slider-percentage))}.month-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1rem;height:1rem;border-radius:50%;background-color:var(--ui-slider-thumb-color);border:2px solid var(--ui-slider-thumb-border);transition:transform .2s ease;margin-top:-5px}.month-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:50%;background-color:var(--ui-slider-thumb-color);border:2px solid var(--ui-slider-thumb-border);transition:transform .2s ease;border:none}.month-slider:hover::-webkit-slider-thumb,.month-slider:hover::-moz-range-thumb{transform:scale(1.25)}.theme-light .slider-value{color:var(--nebula-neutral-0);background:none;-webkit-background-clip:initial;background-clip:initial;-webkit-text-fill-color:initial}.theme-light .month-slider::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--nebula-yellow-400) var(--slider-percentage),var(--nebula-neutral-0) var(--slider-percentage))}.theme-light .month-slider::-moz-range-track{background:linear-gradient(to right,var(--nebula-yellow-400) var(--slider-percentage),var(--nebula-neutral-0) var(--slider-percentage))}.theme-light .month-slider::-webkit-slider-thumb{background-color:var(--nebula-purple-400);border:2px solid var(--nebula-neutral-0)}.theme-light .month-slider::-moz-range-thumb{background-color:var(--nebula-purple-400);border:2px solid var(--nebula-neutral-0)}@media (prefers-color-scheme: light){.theme-light{--font-family: "Inter", sans-serif;--font-family-code: "Fira Code", monospace;--bg-color: #FAFAFA;--text-color: #212529;--primary-color: #3a7bd5;--highlight-color: #0D6EFD;--shadow: rgba(0, 0, 0, .08)}}@media (prefers-color-scheme: dark){.theme-dark{--bg-color: #1c1c1c;--text-color: #d9d9d9;--primary-color: #ffffff;--secondary-color: #b0b0b0;--highlight-color: #00d2ff;--link-color: #a0a0a0;--shadow: rgba(0, 0, 0, .4);--font-family: "Inter", sans-serif;--font-family-code: "Fira Code", monospace}}:root{--sidebar-width: 16rem;--sidebar-right-width: 25rem;--sidebar-collapsed-width: 4rem;--transition-speed: .3s;--transition: box-shadow .3s ease, transform .3s ease;--border-radius: .75rem;--card-radius: .4rem;--expander-padding: 14px;--expander-radius: 12px;--expander-transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;--expander-summary-font-size: 1rem;--expander-content-font-size: .9rem;--toggle-width: 2.5rem;--toggle-height: 1.25rem;--indicator-size: 1rem;--font-family: "Inter", sans-serif;--font-family-code: "Fira Code", monospace;--primary-color: #3a7bd5;--secondary-color: #8da7ff;--text-gray: #a7afc2;--link-color: #3a7bd5;--link-hover-color: #d0c546;--link-hover-bg: rgba(0, 210, 255, .1);--code-bg: rgba(0, 0, 0, .1);--code-text: #00d2ff;--code-border: rgba(255, 255, 255, .1);--active-border-highlight: #6cbcff;--highlight-gradient: linear-gradient(to right, #3a7bd5, #bd93e3);--gradient-bg-dark: linear-gradient(135deg, #121827, #070b14);--gradient-bg-dark-hover: linear-gradient( 135deg, rgba(30, 40, 68, .95), rgba(15, 20, 35, .95) );--container-bg-dark: #121827;--card-bg-dark: rgba(255, 255, 255, .05);--card-border-dark: rgba(255, 255, 255, .1);--card-border-hover-dark: rgba(255, 255, 255, .2);--card-shadow-dark: rgba(0, 0, 0, .4);--description-color-dark: #c2cbe0;--highlight-color-dark: #0078a8;--highlight-colour-secondary-dark: #ffd700;--text-color-dark: #f1f1f1;--body-text-color: #c2cbe0;--shadow-dark: rgba(0, 0, 0, .5);--shadow-hover-dark: rgba(108, 188, 255, .3);--button-bg-gradient-dark: linear-gradient(to right, #2a4f8a, #7f5f9f);--button-bg-gradient-dark-hover: linear-gradient(to right, #223f6e, #684e84);--button-text-color-dark: #f1f1f1;--button-border-color-dark: rgba(255, 255, 255, .1);--button-shadow-dark: rgba(0, 0, 0, .5);--input-bg-dark: rgba(255, 255, 255, .05);--input-border-dark: rgba(255, 255, 255, .1);--input-text-dark: #f1f5f9;--input-placeholder-dark: rgba(241, 245, 249, .6);--icon-color-primary-dark: #7bbcff;--icon-color-hover-dark: #a8dcff;--toggle-bg-dark: rgba(255, 255, 255, .2);--toggle-bg-active-dark: linear-gradient(135deg, #3a7bd5, #00d2ff);--toggle-indicator-dark: #ffffff;--card-bg-dark: rgba(255, 255, 255, .03);--hover-shadow-dark: rgba(58, 123, 213, .5);--item-border-dark: rgba(255, 255, 255, .1);--single-kpi-bg-dark: rgba(255, 255, 255, .08);--single-kpi-title-dark: #cccccc;--card-bg-dark: rgba(18, 24, 39, .9);--filter-btn-gradient-dark: linear-gradient( 135deg, rgba(18, 24, 39, .95), rgba(18, 28, 50, .95) );--filter-btn-gradient-dark-hover: linear-gradient(to right, #111827, #1f2937);--filter-btn-border-dark: rgba(255, 255, 255, .1);--filter-btn-shadow-dark: rgba(0, 0, 0, .5);--card-shadow-dark: rgba(0, 0, 0, .3);--select-bg-dark: #070b14;--slider-thumb-dark: #6cbcff;--slider-thumb-dark-hover: #4ade80;--slider-track-dark: rgba(255, 255, 255, .2);--gradient-bg-light: linear-gradient( 135deg, rgba(244, 244, 244, .95), rgba(215, 227, 234, .9) );--gradient-bg-light-hover: linear-gradient(135deg, #eef5fd, #d0def0);--container-bg-light: #ffffff;--card-bg-light: linear-gradient( 135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .85) );--card-border-light: rgba(202, 214, 229, .6);--card-border-hover-light: rgba(202, 214, 229, .8);--card-shadow-light: rgba(58, 123, 213, .1);--card-shadow-hover-light: rgba(58, 123, 213, .2);--description-color-light: #546c83;--highlight-color-light: #3a7bd5;--highlight-colour-secondary-light: #ffd700;--gradient-highlight: linear-gradient(to right, #3a7bd5, #bd93e3);--glow-hover: rgba(58, 123, 213, .7);--text-color-light: #333333;--text-color-light: #ffffff;--body-text-color: #495057;--link-color: #8da7ff;--link-hover-color: #00d2ff;--shadow-light: rgba(58, 123, 213, .2);--shadow-hover-light: rgba(58, 123, 213, .3);--button-bg-gradient-light: linear-gradient(to right, #5b8fcf, #9d89c0);--button-bg-gradient-light-hover: linear-gradient(to right, #4c78b0, #856fa5);--button-text-color-light: #ffffff;--button-border-color-light: #cce4ff;--button-shadow-light: rgba(58, 123, 213, .3);--input-bg-light: rgba(255, 255, 255, .85);--input-border-light: rgba(202, 214, 229, .8);--input-text-light: #333333;--input-placeholder-light: rgba(51, 51, 51, .5);--icon-color-primary-light: #3a7bd5;--icon-color-hover-light: #1e90ff;--toggle-bg-light: rgba(0, 0, 0, .1);--toggle-bg-active-light: linear-gradient(135deg, #3a7bd5, #8acbff);--toggle-indicator-light: #ffffff;--hover-shadow-light: rgba(58, 123, 213, .3);--item-border-light: rgba(58, 123, 213, .1);--single-kpi-bg-light: rgba(255, 255, 255, .85);--single-kpi-title-light: #495057;--filter-btn-gradient-light: linear-gradient(to right, #3a7bd5, #6cbcff);--filter-btn-gradient-light-active: linear-gradient( to right, #3a7bd5, #6cbcff );--filter-btn-gradient-light-hover: linear-gradient( to right, #2f69bb, #5aa7ee );--filter-btn-gradient-light-active: #f0b429;--filter-btn-text-color-light: #ffffff;--filter-btn-border-light: #cce4ff;--filter-btn-shadow-light: rgba(58, 123, 213, .2);--card-shadow-light: rgba(58, 123, 213, .15);--select-bg-light: #ffffff;--slider-thumb-light: #3a7bd5;--slider-thumb-light-hover: #4ade80;--slider-track-light: rgba(58, 123, 213, .2)}.theme-dark{--highlight-colour-secondary: #ffd700;--sidebar-bg: linear-gradient( 135deg, rgba(18, 24, 39, .45), rgba(7, 11, 20, .35) );--sidebar-border: rgba(255, 255, 255, .15);--sidebar-text-color: #f1f1f1;--sidebar-active-bg: rgba(108, 188, 255, .25);--sidebar-shadow: rgba(0, 0, 0, .2);--sidebar-backdrop-filter: blur(12px);--bubble-bg-user: linear-gradient(135deg, #3a3f4b, #2a2f3b);--bubble-text-user: #f1f1f1;--bubble-border-user: linear-gradient(135deg, #3a3f4b, #2a2f3b);--bubble-bg-assistant: linear-gradient(135deg, #262a33, #1a1d25);--bubble-text-assistant: #e0e0e0;--bubble-border-assistant: rgba(255, 255, 255, .08);--card-bg-dark: rgba(18, 24, 39, .9);--card-shadow-dark: rgba(0, 0, 0, .3);--icon-color: #7f9fc3;--icon-color-hover: #4f5e7a;--icon-color-primary: #7f9fc3;--icon-color-secondary: #7f9fc3;--icon-color-secondary-hover: #6ac1ff}.theme-light{--highlight-colour-secondary: yellow/gold (#ffd700);--sidebar-bg: linear-gradient( 135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1) );--sidebar-border: rgba(202, 214, 229, .8);--sidebar-text-color: #495057;--sidebar-active-bg: rgba(13, 110, 253, .08);--sidebar-shadow: rgba(0, 0, 0, .15);--card-bg-light: linear-gradient( 135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .85) );--text-color-light: #333333;--card-shadow-light: rgba(58, 123, 213, .1);--bubble-bg-user: #3a7bd5;--bubble-text-user: #ffffff;--bubble-border-user: rgba(13, 110, 253, .2);--bubble-text-assistant: #333333;--link-color: #3a7bd5;--link-hover-color: #1e90ff;--icon-color: #3a7bd5;--icon-color-hover: #1e90ff;--icon-color-primary: #3a7bd5;--icon-color-secondary: #3a7bd5;--icon-color-secondary-hover: #1e90ff}html{box-sizing:border-box;font-family:Inter,sans-serif;font-size:16px}*,*:before,*:after{box-sizing:inherit;margin:0;padding:0}html,body,#root{height:100dvh;min-height:100dvh}body{font-size:1rem;line-height:1.7;letter-spacing:.02em;transition:background .3s ease,color .3s ease}.sidebar{position:fixed;top:0;left:0;width:50px;height:100vh;z-index:4000;transition:width .3s ease-in-out}.sidebar.expanded{width:180px;z-index:5000}.app-container{display:flex;height:100vh;width:100%;overflow:hidden;padding-left:50px;position:relative}.theme-light .app-container{background:var(--gradient-bg-light);color:var(--text-color-light)}.theme-dark .app-container{background:var(--gradient-bg-dark);color:var(--text-color-dark)}.app-main-container{flex-grow:1;display:flex;flex-direction:column;height:100%;overflow-y:auto;position:relative}.content-container{width:100%;height:100%;max-width:1600px;margin:0 auto;padding:2.5rem 4rem;flex-grow:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;box-sizing:border-box}.chat-input{padding:1rem 2rem;width:100%;max-width:1600px;margin:0 auto;box-sizing:border-box;border-top:1px solid var(--border-muted)}.app-main-container::-webkit-scrollbar{display:none}.app-main-container{scrollbar-width:none;-ms-overflow-style:none}button,a{transition:all var(--transition-speed) ease}.divider{border-bottom:1px solid rgba(255,255,255,.1);margin:2rem auto;width:80%}.theme-light .divider{border-bottom-color:#cce4ff}.custom-expander .expander-content{padding-top:0;padding-bottom:0}.custom-expander .expander-content.visible{padding-top:.6rem;padding-bottom:.2rem}@media (max-width: 1024px){.content-container{padding:2rem 3rem}}@media (max-width: 768px){html{font-size:15px}.app-container{padding-left:0}.content-container{padding:1.5rem}}@media (max-width: 480px){html{font-size:14px}.content-container{padding:1rem}}h1,h2{font-family:var(--font-family);font-weight:600;font-size:clamp(1.2rem,2vw,1.5rem);letter-spacing:.7px;margin-top:1.2rem;margin-bottom:.8rem;background:var(--primary-color);-webkit-background-clip:text;background-clip:text;color:transparent}h3,h4,h5,h6{font-family:var(--font-family);font-weight:500;font-size:clamp(1rem,1.5vw,1.2rem);letter-spacing:.5px;margin-top:1rem;margin-bottom:.6rem;color:var(--secondary-color)}p,span,div{font-family:var(--font-family);font-size:clamp(.85rem,1.5vw,.9rem);line-height:1.6;letter-spacing:.2px;color:var(--text-gray);margin-bottom:.8rem}ul,ol{padding-left:1.6rem;margin-top:.8rem;margin-bottom:.8rem}ul li,ol li{font-family:var(--font-family);font-size:clamp(.85rem,1.5vw,.9rem);line-height:1.6;letter-spacing:.2px;color:var(--text-gray);margin-bottom:.5rem}strong,b,em{color:var(--highlight-color);font-weight:550;display:inline-block;margin-right:4px}a{color:var(--link-color);text-decoration:none;transition:color .3s ease,background-color .3s ease;padding:2px 4px;border-radius:4px}a:hover{color:var(--link-hover-color);background-color:var(--link-hover-bg)}code,pre code{font-family:var(--font-family-code);font-size:clamp(.85rem,1.5vw,.9rem);background-color:var(--code-bg);color:var(--code-text);padding:5px 10px;border-radius:6px;border:1px solid var(--code-border)}.chat-bubble-assistant h1,.chat-bubble-assistant h2,.chat-bubble-assistant h3,.chat-bubble-assistant h4,.chat-bubble-assistant h5,.chat-bubble-assistant h6,.chat-bubble-user h1,.chat-bubble-user h2,.chat-bubble-user h3,.chat-bubble-user h4,.chat-bubble-user h5,.chat-bubble-user h6{font-family:var(--font-family);font-weight:550;font-size:clamp(.9rem,1.2vw,1rem);color:var(--highlight-color);margin-bottom:.4rem;line-height:1.4}.fa-solid,.fa-regular,.fa-brands{font-family:"Font Awesome 6 Free","Font Awesome 6 Brands",sans-serif!important;font-weight:900!important;font-style:normal!important;font-size:inherit!important;display:inline-flex!important;vertical-align:middle;color:inherit;transition:color .3s ease}.theme-light h1,.theme-light h2{background:linear-gradient(to right,#3a7bd5,#1e90ff);-webkit-background-clip:text;background-clip:text;color:transparent}.theme-light h3,.theme-light h4,.theme-light h5,.theme-light h6{color:#495057}.theme-light p,.theme-light span,.theme-light div:not(.chat-bubble-user):not(.chat-bubble-assistant),.theme-light ul,.theme-light ol,.theme-light li{color:#546c83}.theme-light a{color:#3a7bd5}.theme-light a:hover{color:#1e90ff;background-color:#1e90ff1a}.theme-light code,.theme-light pre code{background-color:#0000000d;color:#3a7bd5;border-color:#3a7bd526}.theme-light strong,.theme-light b,.theme-light em{color:#546c83}.action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:Inter,sans-serif;font-weight:600;font-size:16px;border-radius:14px;padding:10px 20px;cursor:pointer;border:1px solid var(--button-border-color-dark);background:var(--button-bg-gradient-dark);color:var(--button-text-color-dark);box-shadow:0 4px 12px var(--button-shadow-dark);transition:all .3s ease;position:relative;overflow:hidden}.action-button:hover{transform:translateY(-4px);background:var(--button-bg-gradient-dark-hover);box-shadow:0 8px 16px var(--button-shadow-dark)}.action-button:active{transform:translateY(0);box-shadow:0 3px 8px var(--button-shadow-dark)}@keyframes buttonGlow{0%{box-shadow:0 0 20px #00d2ffcc}to{box-shadow:0 4px 12px var(--button-shadow-dark)}}.action-button:active:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;animation:buttonGlow .5s ease-out forwards;pointer-events:none}body.light-mode .action-button{background:var(--button-bg-gradient-light);color:var(--button-text-color-light);border-color:var(--button-border-color-light);box-shadow:0 4px 10px var(--button-shadow-light)}body.light-mode .action-button:hover{background:var(--button-bg-gradient-light-hover);box-shadow:0 8px 16px var(--button-shadow-light)}body.light-mode .action-button:active{box-shadow:0 3px 8px var(--button-shadow-light)}@keyframes buttonGlowLight{0%{box-shadow:0 0 20px #4c9eff99}to{box-shadow:0 4px 10px var(--button-shadow-light)}}body.light-mode .action-button:active:after{animation:buttonGlowLight .5s ease-out forwards}.return-to-chat-btn,.return-to-chat-from-drafting-btn{position:fixed;left:50%;transform:translate(-50%);bottom:20px;z-index:1000;width:40px;height:40px;border-radius:50%;background:transparent;color:#aab9ca;display:flex;align-items:center;justify-content:center;transition:background .3s ease,box-shadow .3s ease;cursor:pointer;border:none;font-size:20px}.return-to-chat-from-drafting-btn{bottom:90px}.return-to-chat-btn:hover,.return-to-chat-from-drafting-btn:hover{background:#6cbcff1a;box-shadow:0 0 8px var(--shadow-hover-dark)}.logout-btn{background:transparent;border:none;color:#f44336;padding:10px 20px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:10px;transition:color .3s ease,transform .3s ease}.logout-btn:hover{color:#d32f2f;transform:translate(4px)}.sql-toggle-btn{background:transparent;border:none;cursor:pointer;color:var(--primary-color);margin-top:8px}.sql-query-content{background:var(--query-bg, rgba(0, 0, 0, .05));padding:8px;border-radius:6px;margin-top:6px;font-family:Fira Code,monospace;font-size:13px;overflow-x:auto}.guidance-column-card{font-family:Inter,sans-serif;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:1rem;padding:2rem;margin-top:2rem;width:100%;max-width:37.5rem;animation:fadeIn 1s ease;transition:box-shadow .3s ease,transform .3s ease;cursor:pointer;background:var(--card-bg, rgba(255, 255, 255, .1));color:var(--text-color, #000);box-shadow:0 .5rem 1.25rem var(--card-shadow, rgba(0, 0, 0, .2));position:relative}body.dark-mode .guidance-column-card{background:var(--card-bg-dark);color:var(--text-color-dark);box-shadow:0 .5rem 1.25rem var(--card-shadow-dark)}body.dark-mode .sample-case-no{background:var(--gradient-highlight)}body.light-mode .guidance-column-card{background:var(--card-bg-light);color:var(--text-color-light);box-shadow:0 .5rem 1.25rem var(--card-shadow-light)}body.light-mode .guidance-column-card:before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;background:linear-gradient(135deg,#3a7bd5,#bd93e3);border-radius:inherit;z-index:-1}body.light-mode .guidance-column-card:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--card-bg-light);border-radius:inherit;z-index:-1;margin:1px}body.light-mode .sample-case-no{background:var(--gradient-highlight);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}@media (max-width: 768px){.guidance-column-card{padding:1.5rem;margin-top:1.5rem}}@media (max-width: 480px){.guidance-column-card{padding:1rem;margin-top:1rem}}.guidance-column-card:hover{box-shadow:0 0 1.25rem var(--glow-hover);transform:translateY(-.2rem)}.sample-case-no{font-weight:700;background:var(--gradient-highlight);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:1.2rem}@media (max-width: 768px){.sample-case-no{font-size:1.1rem}}@media (max-width: 480px){.sample-case-no{font-size:1rem}}@keyframes fadeIn{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.attachment-preview{position:sticky;top:0;z-index:3;margin:8px 12px 0;padding:10px 12px;border-radius:12px;background:var(--ap-bg, rgba(255, 255, 255, .85));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid var(--ap-border, #e6e8ef);box-shadow:0 6px 18px #0000000f;transform-origin:top}html[data-theme=dark] .attachment-preview,body.dark .attachment-preview{background:#101621e6;border-color:#2a3344;box-shadow:0 6px 18px #00000047}.attachment-preview.enter{animation:ap-in .18s ease-out}.attachment-preview.closing{animation:ap-out .18s ease-in forwards}@keyframes ap-in{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ap-out{to{opacity:0;transform:translateY(-6px) scale(.98)}}.ap-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.ap-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ap-title i{opacity:.9}.ap-name{font-weight:600;max-width:40vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ap-badge{font-size:12px;padding:2px 8px;border-radius:999px;background:#eaf3ff;color:#0b5fff;border:1px solid #d6e7ff;text-transform:uppercase;letter-spacing:.02em}html[data-theme=dark] .ap-badge,body.dark .ap-badge{background:#2171ff1f;color:#a8c5ff;border-color:#2171ff40}.ap-meta{font-size:12px;opacity:.7}.ap-actions{display:flex;align-items:center;gap:6px}.ap-btn{border:none;background:transparent;padding:6px 10px;border-radius:8px;cursor:pointer}.ap-btn:hover{background:#0000000f}html[data-theme=dark] .ap-btn:hover,body.dark .ap-btn:hover{background:#ffffff0f}.ap-btn.ap-danger:hover{background:#dc35451f;color:#dc3545}.ap-body{max-height:180px;overflow:auto;background:#00000008;border-radius:8px;padding:8px 10px;margin:8px 0 4px;border:1px dashed rgba(0,0,0,.1);white-space:pre-wrap}html[data-theme=dark] .ap-body,body.dark .ap-body{background:#ffffff0a;border-color:#ffffff1f}.ap-toggle{font-size:12px;border:none;background:transparent;color:#0b5fff;cursor:pointer;padding:0}.composer-dock{position:absolute;left:0;right:0;bottom:50px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 12px;pointer-events:none;z-index:5}.composer-dock .attachment-preview,.composer-dock .chat-input-container{width:min(100%,680px);pointer-events:auto}.composer-dock .chat-input-container{position:static;bottom:auto;left:auto;transform:none;max-width:680px;margin:0 auto}@media (max-width: 768px){.composer-dock .attachment-preview,.composer-dock .chat-input-container{width:95%;max-width:95%}}:root{--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--bubble-radius: 1rem;--bubble-radius-tight: .25rem;--line-length: 75ch;--bubble-user-max: 70%;--bubble-assistant-width: 85%;--blur-strength: 10px;--shadow-elev-2: 0 6px 14px var(--shadow-hover, rgba(0, 0, 0, .2));--shadow-elev-btn: 0 6px 12px var(--button-shadow-hover, rgba(0, 0, 0, .2));--bubble-bg-user: rgba(255, 255, 255, .75);--bubble-text-user: #111;--bubble-border-user: rgba(0, 0, 0, .08);--bubble-text-assistant: var(--fg, #1d1d1f);--link-color: #0b57d0;--link-hover-color: #0849b1;--surface-elev-2: rgba(255, 255, 255, .9);--border-soft: rgba(0, 0, 0, .1);--accent-secondary: rgba(0, 0, 0, .06);--composer-reserved-space: 7.5rem}.chat-container{display:flex;flex-direction:column;width:100%;max-width:1000px;margin:0 auto;gap:var(--space-2);transition:padding .3s ease;background:transparent;isolation:isolate;box-sizing:border-box}.chat-scroll-container{flex:1;overflow-y:auto;width:100%;padding:.6rem 2vw;padding-left:calc(2vw + 16px);box-sizing:border-box;overscroll-behavior:contain;scrollbar-gutter:stable both-edges;-webkit-overflow-scrolling:touch}.chat-messages{display:flex;flex-direction:column;align-items:stretch;max-width:90%;margin:0 auto;padding-bottom:var(--composer-reserved-space);content-visibility:auto;contain-intrinsic-size:1000px 2000px}.chat-bubble-user{align-self:flex-end;background:var(--bubble-bg-user);color:var(--bubble-text-user)!important;padding:.6rem 1rem .1rem;margin-bottom:1rem;max-width:var(--bubble-user-max);font-size:.9rem;line-height:1.6;overflow-wrap:anywhere;border-radius:var(--bubble-radius) var(--bubble-radius) var(--bubble-radius-tight) var(--bubble-radius);border:1px solid var(--bubble-border-user);transition:transform .2s ease;margin-left:auto;position:relative;-webkit-backdrop-filter:blur(var(--blur-strength));backdrop-filter:blur(var(--blur-strength))}@media (hover: hover){.chat-bubble-user:hover{transform:translateY(-2px)}}.chat-bubble-user :is(*,p,span,div,ul,ol,li){color:var(--bubble-text-user)!important}.chat-bubble-assistant{align-self:flex-start;background:transparent;color:var(--bubble-text-assistant);padding:.4rem 0 .1rem;margin-bottom:1rem;width:var(--bubble-assistant-width);max-width:var(--line-length);font-size:.9rem;line-height:1.6;overflow-wrap:anywhere;border:none;position:relative}.chat-bubble-assistant a{color:var(--link-color);text-decoration:none;border-bottom:1px dashed currentColor;transition:color .2s ease,border-bottom .2s ease}.chat-bubble-assistant a:hover{color:var(--link-hover-color);border-bottom-style:solid}.message-actions{position:absolute;bottom:-2.4rem;opacity:0;display:flex;align-items:center;gap:var(--space-1);transition:opacity .2s ease;z-index:10}.actions-user{right:.5rem}.actions-assistant{left:.5rem}@media (hover: hover){.chat-bubble-user:hover .message-actions,.chat-bubble-assistant:hover .message-actions{opacity:1}}.chat-bubble-user:focus-within .message-actions,.chat-bubble-assistant:focus-within .message-actions{opacity:1}.message-actions .menu-item{background:transparent;border:0;padding:8px 10px;border-radius:6px;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}.message-actions .menu-item:hover{background:var(--accent-secondary, rgba(0, 0, 0, .06))}.actions-assistant .action-icon.ellipsis{margin-left:6px;margin-top:2px}.theme-light .chat-bubble-user .action-icon,.theme-light .chat-bubble-user .action-icon svg,.theme-light .chat-bubble-user .action-icon path{color:var(--icon-color-secondary)!important;fill:var(--icon-color-secondary)!important}.theme-light .chat-bubble-user .action-icon:hover,.theme-light .chat-bubble-user .action-icon:hover svg,.theme-light .chat-bubble-user .action-icon:hover path{color:var(--icon-color-secondary-hover)!important;fill:var(--icon-color-secondary-hover)!important}.bubble-menu{position:absolute;right:-150px;top:120%;background:var(--surface-elev-2);border:1px solid var(--border-soft);padding:8px;border-radius:6px;z-index:1000;min-width:220px;box-shadow:0 6px 20px #00000026}.bubble-menu .menu-item{display:block;text-align:right}.fa-microphone.listening{color:#dc3545;animation:pulse 1.5s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.chat-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:grid;place-items:center;z-index:2000}.chat-modal-content{background:var(--card-bg-gradient, var(--surface-elev-2));border-radius:1rem;padding:1.2rem;width:min(90%,700px);box-shadow:var(--shadow-elev-2);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.return-chat-btn{margin-top:1rem;background:var(--button-bg-gradient);color:var(--button-text-color);border-radius:.75rem;padding:.6rem 1rem;border:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}@media (hover: hover){.return-chat-btn:hover{background:var(--button-bg-gradient-hover);box-shadow:var(--shadow-elev-btn);transform:translateY(-1px)}}.chat-bubble-assistant :is(h1,h2,h3,h4,h5,h6){margin:1rem 0 .5rem;line-height:1.25}.chat-bubble-assistant p{margin:.5rem 0}.chat-bubble-assistant ul,.chat-bubble-assistant ol{margin:.5rem 0 .5rem 1.25rem}.chat-bubble-assistant img,.chat-bubble-assistant svg,.chat-bubble-assistant video{max-width:100%;height:auto}.chat-bubble-assistant code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.85em;background:color-mix(in oklab,var(--border-soft) 30%,transparent);padding:.15em .35em;border-radius:4px}.chat-bubble-assistant pre code{background:transparent;padding:0}.chat-bubble-assistant pre{margin:.75rem 0;padding:.75rem;border-radius:8px;border:1px solid var(--border-soft);background:color-mix(in oklab,var(--surface-elev-2) 85%,transparent);overflow:auto}.md-table-wrapper{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.chat-bubble-assistant table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.9em;border-radius:8px;overflow:hidden}.chat-bubble-assistant th,.chat-bubble-assistant td{padding:12px 15px;border:1px solid #ddd;text-align:left}.chat-bubble-assistant th{background-color:#f2f2f2;font-weight:600}[data-theme=dark] .chat-bubble-assistant th{background-color:#ffffff1a;border-color:#fff3}[data-theme=dark] .chat-bubble-assistant td{border-color:#fff3}.chat-scroll-container::-webkit-scrollbar{width:4px}.chat-scroll-container::-webkit-scrollbar-track{background:transparent}.chat-scroll-container::-webkit-scrollbar-thumb{background-color:var(--shadow-hover, rgba(0, 0, 0, .2));border-radius:10px}.chat-scroll-container{scrollbar-width:thin;scrollbar-color:var(--shadow-hover, rgba(0, 0, 0, .2)) transparent}@media (max-width: 1024px){.chat-messages{max-width:94%}}@media (max-width: 768px){.chat-container{padding:0 var(--space-2)}.chat-scroll-container{padding:.5rem 3vw}.chat-bubble-user{max-width:80%}.chat-bubble-assistant,.chat-bubble-user{max-width:95%;padding:.7rem .9rem;font-size:.9rem}}@media (max-width: 480px){.chat-container{padding:0 var(--space-1)}.chat-scroll-container{padding:.4rem 4vw}.chat-bubble-user{max-width:90%;padding:.5rem .8rem}.chat-bubble-assistant,.chat-bubble-user{max-width:98%;font-size:.85rem}}@media (prefers-reduced-motion: reduce){.chat-bubble-user,.return-chat-btn,.message-actions{transition:none!important}.fa-microphone.listening{animation:none!important}}@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){.chat-bubble-user{-webkit-backdrop-filter:none;backdrop-filter:none}}:root{--act-space-1: var(--space-1, .25rem);--act-space-2: var(--space-2, .5rem);--act-space-3: var(--space-3, .75rem);--act-space-4: var(--space-4, 1rem);--act-space-5: var(--space-5, 1.25rem);--act-tile-min: 240px;--act-radius: var(--card-radius, 10px);--act-pill-radius: 999px;--act-blur: var(--blur-strength, 10px);--act-shadow-2: var(--shadow-elev-2, 0 6px 14px rgba(0, 0, 0, .2));--act-shadow-btn: var(--shadow-elev-btn, 0 6px 12px rgba(0, 0, 0, .2));--qa-z: 3000;--qa-width: 360px;--qa-radius: var(--border-radius, 12px);--qa-pad: 12px;--qa-gap: 10px;--pop-ease: .12s ease-out}html[data-theme=light],.theme-light{--act-overlay-scrim: rgba(7, 10, 15, .62);--act-surface: var(--surface-elev-2, rgba(255, 255, 255, .96));--act-border: var( --card-border-light, var(--border-soft, rgba(0, 0, 0, .1)) );--act-text: var(--bubble-text-assistant, #333333);--act-text-muted: color-mix(in oklab, var(--act-text) 60%, transparent);--act-highlight: var( --highlight-color-light, var(--highlight-colour-secondary-light, #ffd700) );--act-link: var(--link-color, #3a7bd5);--act-link-hover: var(--link-hover-color, #1e90ff);--qa-elev: rgba(0, 0, 0, .6);--qa-bg: var(--container-bg-light, #ffffff);--qa-surface: var(--card-bg-light, #ffffff);--qa-border: var(--card-border-light, #cce4ff);--qa-text: var(--bubble-text-assistant, #333333);--qa-subtext: color-mix(in oklab, var(--qa-text) 55%, transparent);--qa-item-bg: #ffffff;--qa-item-hover: color-mix( in oklab, #ffffff 94%, var(--link-color, #3a7bd5) 6% );--qa-chip-bg: color-mix(in oklab, #ffffff 92%, var(--link-color, #3a7bd5) 8%);--qa-code-bg: var(--input-bg-light, rgba(255, 255, 255, .85));--qa-danger: #b91c1c;--qa-shadow: 0 8px 28px var(--card-shadow-light, rgba(58, 123, 213, .15)), 0 2px 10px rgba(2, 6, 23, .08);--qa-icon-strong: var(--icon-color-primary-light, var(--link-color, #3a7bd5));--qa-icon: var(--icon-color, var(--qa-icon-strong));--button-bg-gradient: var( --button-bg-gradient-light, linear-gradient(to right, #5b8fcf, #9d89c0) );--button-bg-gradient-hover: var( --button-bg-gradient-light-hover, linear-gradient(to right, #4c78b0, #856fa5) );--dept-advice: #6366f1;--dept-mediation: #f59e0b;--dept-claims: #3b82f6;--dept-research: #8b5cf6;--dept-data: #06b6d4;--dept-qc: #f43f5e;--dept-general: #64748b}html[data-theme=dark],.theme-dark,.dark{--act-surface: var(--card-bg-dark, rgba(18, 24, 39, .9));--act-border: var(--card-border-dark, rgba(255, 255, 255, .12));--act-text: var(--text-color-dark, #f1f1f1);--act-text-muted: color-mix(in oklab, var(--act-text) 70%, transparent);--act-overlay-scrim: rgba(7, 10, 15, .78);--act-highlight: var( --highlight-color-dark, var(--highlight-colour-secondary-dark, #ffd700) );--act-link: var(--icon-color-primary-dark, #7bbcff);--act-link-hover: var(--icon-color-hover-dark, #a8dcff);--qa-elev: rgba(0, 0, 0, .75);--qa-bg: var(--container-bg-dark, #121827);--qa-surface: var(--card-bg-dark, rgba(18, 24, 39, .9));--qa-border: var(--card-border-dark, rgba(255, 255, 255, .1));--qa-text: var(--text-color-dark, #f1f1f1);--qa-subtext: #9aa5b1;--qa-item-bg: color-mix(in oklab, var(--qa-surface) 92%, #000 8%);--qa-item-hover: color-mix( in oklab, var(--qa-item-bg) 85%, var(--act-link) 15% );--qa-chip-bg: color-mix(in oklab, var(--qa-item-bg) 88%, #fff 12%);--qa-code-bg: #0e1219;--qa-danger: #ef4444;--qa-shadow: 0 12px 36px var(--card-shadow-dark, rgba(0, 0, 0, .3)), 0 4px 14px rgba(0, 0, 0, .32);--qa-icon-strong: var(--icon-color-primary-dark, #7bbcff);--qa-icon: var(--icon-color, var(--qa-icon-strong));--button-bg-gradient: var( --button-bg-gradient-dark, linear-gradient(to right, #2a4f8a, #7f5f9f) );--button-bg-gradient-hover: var( --button-bg-gradient-dark-hover, linear-gradient(to right, #223f6e, #684e84) );--dept-advice: #818cf8;--dept-mediation: #fbbf24;--dept-claims: #60a5fa;--dept-research: #a78bfa;--dept-data: #22d3ee;--dept-qc: #fb7185;--dept-general: #94a3b8}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--act-surface: var(--card-bg-dark, rgba(18, 24, 39, .9));--act-border: var(--card-border-dark, rgba(255, 255, 255, .12));--act-text: var(--text-color-dark, #f1f1f1);--act-text-muted: color-mix(in oklab, var(--act-text) 70%, transparent);--act-overlay-scrim: rgba(7, 10, 15, .78);--act-highlight: var( --highlight-color-dark, var(--highlight-colour-secondary-dark, #ffd700) );--act-link: var(--icon-color-primary-dark, #7bbcff);--act-link-hover: var(--icon-color-hover-dark, #a8dcff);--qa-elev: rgba(0, 0, 0, .75);--qa-bg: #121827;--qa-surface: rgba(18, 24, 39, .9);--qa-border: rgba(255, 255, 255, .1);--qa-text: #f1f1f1;--qa-subtext: #9aa5b1;--qa-item-bg: color-mix(in oklab, var(--qa-surface) 92%, #000 8%);--qa-item-hover: color-mix( in oklab, var(--qa-item-bg) 85%, var(--act-link) 15% );--qa-chip-bg: color-mix(in oklab, var(--qa-item-bg) 88%, #fff 12%);--qa-code-bg: #0e1219;--qa-danger: #ef4444;--qa-shadow: 0 12px 36px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .32);--qa-icon-strong: #7bbcff;--qa-icon: var(--qa-icon-strong);--button-bg-gradient: linear-gradient(to right, #2a4f8a, #7f5f9f);--button-bg-gradient-hover: linear-gradient(to right, #223f6e, #684e84);--dept-advice: #818cf8;--dept-mediation: #fbbf24;--dept-claims: #60a5fa;--dept-research: #a78bfa;--dept-data: #22d3ee;--dept-qc: #fb7185;--dept-general: #94a3b8}}.tile[data-dept],.chip[data-dept],.bucket[data-bucket]{--accent: var(--dept-general);--icon-fg: var(--dept-general)}.tile[data-dept=advice],.chip[data-dept=advice]{--accent: var(--dept-advice);--icon-fg: var(--dept-advice)}.tile[data-dept=mediation],.chip[data-dept=mediation]{--accent: var(--dept-mediation);--icon-fg: var(--dept-mediation)}.tile[data-dept=claims],.chip[data-dept=claims]{--accent: var(--dept-claims);--icon-fg: var(--dept-claims)}.tile[data-dept=research],.chip[data-dept=research]{--accent: var(--dept-research);--icon-fg: var(--dept-research)}.tile[data-dept=data],.chip[data-dept=data]{--accent: var(--dept-data);--icon-fg: var(--dept-data)}.tile[data-dept=qc],.chip[data-dept=qc]{--accent: var(--dept-qc);--icon-fg: var(--dept-qc)}.tile[data-dept=general],.chip[data-dept=general]{--accent: var(--dept-general);--icon-fg: var(--dept-general)}.bucket[data-bucket=advice]{--accent: var(--dept-advice)}.bucket[data-bucket=mediation]{--accent: var(--dept-mediation)}.bucket[data-bucket=claims]{--accent: var(--dept-claims)}.bucket[data-bucket=research]{--accent: var(--dept-research)}.bucket[data-bucket=data]{--accent: var(--dept-data)}.bucket[data-bucket=qc]{--accent: var(--dept-qc)}.bucket[data-bucket=general]{--accent: var(--dept-general)}.actions-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1900;background:var(--act-overlay-scrim);-webkit-backdrop-filter:blur(var(--act-blur));backdrop-filter:blur(var(--act-blur));display:flex;flex-direction:column;color:var(--act-text);isolation:isolate}.actions-header{display:flex;align-items:center;gap:var(--act-space-3);padding:var(--act-space-3) var(--act-space-4)}.actions-header h3{margin:0;font-size:1rem;letter-spacing:.2px;color:var(--act-text);display:flex;align-items:center;gap:8px}.actions-header h3 i{color:var(--act-highlight)}.actions-search{flex:1;display:flex;align-items:center;gap:8px;background:var(--act-surface);border:1px solid var(--act-border);border-radius:8px;padding:8px 10px;min-width:240px}.actions-search i{opacity:.9;color:var(--act-link)}.actions-search input{flex:1;border:0;outline:0;background:transparent;color:var(--act-text);font:inherit}.actions-search input::placeholder{color:var(--act-text-muted)}.actions-close{background:transparent;border:0;color:var(--act-text);opacity:.85;padding:6px;border-radius:8px;cursor:pointer}.actions-close:hover{opacity:1;background:color-mix(in oklab,var(--act-border) 40%,transparent)}.actions-body{overflow:auto;padding:var(--act-space-2) var(--act-space-4) var(--act-space-4);scrollbar-gutter:stable both-edges}.bucket{margin:12px 0 18px}.bucket h4{margin:6px 0 10px;color:var(--act-text);font-weight:600;letter-spacing:.2px;position:relative;padding-left:16px}.bucket h4:before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:999px;background:var(--accent)}.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--act-tile-min),1fr));gap:12px}.tile{position:relative;text-align:left;border:1px solid var(--act-border);background:var(--act-surface);border-radius:var(--act-radius);padding:12px;color:var(--act-text);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease}.tile i{opacity:.95}.tile[data-dept]{border-color:color-mix(in oklab,var(--act-border) 78%,var(--accent) 22%)}.tile[data-dept]:after{content:"";position:absolute;inset:0 auto 0 0;width:4px;height:auto;background:var(--accent);border-radius:10px 0 0 10px;opacity:.95}@media (hover: hover){.tile[data-dept]:hover{transform:translateY(-2px);box-shadow:var(--act-shadow-2);background:color-mix(in oklab,var(--act-surface) 92%,var(--accent) 8%);border-color:color-mix(in oklab,var(--act-border) 60%,var(--accent) 40%)}}.tile:focus-visible{outline:2px solid var(--act-link);outline-offset:2px}.tile[data-dept]:focus-visible{outline:2px solid color-mix(in oklab,var(--accent) 70%,transparent)}.tile-title{font-weight:600;margin-top:6px;line-height:1.2}.tile-sub{opacity:.9;font-size:.9rem;margin-top:4px;color:var(--act-text-muted)}.tile[data-dept] .pin-btn i.fa-star,.tile[data-dept][data-pinned=true] .pin-btn i{color:var(--accent)}.empty{opacity:.75;padding:24px;text-align:center}.chip-row{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;box-sizing:border-box}.chip{border:1px solid var(--act-border);background:color-mix(in oklab,var(--act-surface) 88%,transparent);color:var(--act-text);border-radius:var(--act-pill-radius);padding:6px 10px;font-size:.9rem;line-height:1;cursor:pointer;white-space:nowrap;transition:background .12s ease,border-color .12s ease,transform .12s ease,box-shadow .12s ease}.chip i{margin-right:6px;color:var(--act-link)}@media (hover: hover){.chip:hover{background:color-mix(in oklab,var(--act-surface) 92%,transparent);border-color:color-mix(in oklab,var(--act-border) 30%,var(--act-text) 20%);box-shadow:var(--act-shadow-btn);transform:translateY(-1px)}}.chip:active{transform:translateY(0)}.chip:focus-visible{outline:2px solid var(--act-link);outline-offset:2px}.chip-row.filters{display:inline-flex;gap:6px;padding:6px 12px 0;background:transparent}.chip[data-variant=filter]{--accent: var(--dept-general);--icon-fg: var(--accent);border-radius:10px;padding:8px 12px;font-weight:600;border-color:color-mix(in oklab,var(--act-border) 55%,var(--accent) 45%);background:color-mix(in oklab,var(--act-surface) 92%,var(--accent) 8%);color:var(--act-text)}.chip[data-variant=filter][data-dept=all]{--accent: var(--act-link)}.chip[data-variant=filter][data-dept=advice]{--accent: var(--dept-advice)}.chip[data-variant=filter][data-dept=mediation]{--accent: var(--dept-mediation)}.chip[data-variant=filter][data-dept=claims]{--accent: var(--dept-claims)}.chip[data-variant=filter][data-dept=research]{--accent: var(--dept-research)}.chip[data-variant=filter][data-dept=data]{--accent: var(--dept-data)}.chip[data-variant=filter][data-dept=qc]{--accent: var(--dept-qc)}@media (hover: hover){.chip[data-variant=filter]:hover{background:color-mix(in oklab,var(--act-surface) 86%,var(--accent) 14%);border-color:color-mix(in oklab,var(--accent) 70%,var(--act-border) 30%);transform:translateY(-1px);box-shadow:var(--act-shadow-btn)}}.chip[data-variant=filter][aria-pressed=true]{background:color-mix(in oklab,var(--act-surface) 78%,var(--accent) 22%);border-color:color-mix(in oklab,var(--accent) 85%,var(--act-border) 15%);box-shadow:0 0 0 2px color-mix(in oklab,var(--accent) 25%,transparent),var(--act-shadow-btn)}.chip[data-variant=filter][aria-pressed=true]:after{content:"";display:block;height:3px;border-radius:999px;background:var(--accent);margin-top:4px}.chip[data-variant=filter] :is(i,svg){color:var(--icon-fg)}.chip[data-variant=filter]:focus-visible{outline:2px solid color-mix(in oklab,var(--accent) 70%,transparent);outline-offset:2px}.chip[data-fast=true][data-dept]{border-color:color-mix(in oklab,var(--accent) 55%,var(--act-border) 45%);background:color-mix(in oklab,var(--act-surface) 88%,var(--accent) 12%);box-shadow:0 1px color-mix(in oklab,var(--accent) 30%,transparent)}.chip[data-fast=true][data-dept]:hover{background:color-mix(in oklab,var(--act-surface) 80%,var(--accent) 20%);transform:translateY(-1px)}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2100;background:var(--act-overlay-scrim);-webkit-backdrop-filter:blur(var(--act-blur));backdrop-filter:blur(var(--act-blur));display:grid;place-items:center;padding:12px}.confirm-card{width:560px;max-width:calc(100% - 24px);background:var(--act-surface);color:var(--act-text);border:1px solid var(--act-border);border-radius:12px;padding:14px;box-shadow:var(--act-shadow-2)}.confirm-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.confirm-card header h4{margin:0;display:flex;align-items:center;gap:8px;font-size:1rem}.confirm-card header h4 i{color:var(--act-highlight)}.confirm-card header button{background:transparent;border:0;color:var(--act-text);opacity:.9;padding:4px;border-radius:8px;cursor:pointer}.confirm-card header button:hover{background:color-mix(in oklab,var(--act-border) 40%,transparent);opacity:1}.confirm-card .desc{margin:6px 2px 12px;color:var(--act-text-muted);line-height:1.4}.confirm-card .field{display:flex;flex-direction:column;margin:10px 2px}.confirm-card .field label{font-size:.92rem;margin-bottom:6px;color:var(--act-text)}.confirm-card .field :is(input,textarea,select){background:color-mix(in oklab,var(--act-surface) 85%,transparent);border:1px solid var(--act-border);border-radius:8px;color:var(--act-text);padding:8px;outline:none;font:inherit}.confirm-card .field textarea{min-height:84px}.confirm-card .field :is(input,textarea,select):focus{border-color:color-mix(in oklab,var(--act-border) 20%,var(--act-link) 50%);box-shadow:0 0 0 2px color-mix(in oklab,var(--act-link) 25%,transparent)}.confirm-card .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.confirm-card .btn{padding:8px 12px;border-radius:8px;border:1px solid var(--act-border);background:color-mix(in oklab,var(--act-surface) 88%,transparent);color:var(--act-text);cursor:pointer;transition:background .12s ease,box-shadow .12s ease,transform .12s ease,border-color .12s ease}.confirm-card .btn.primary{border-color:transparent;background:var(--button-bg-gradient, var(--act-link));color:var(--button-text-color, #fff)}@media (hover: hover){.confirm-card .btn.primary:hover{background:var(--button-bg-gradient-hover, var(--act-link-hover));box-shadow:var(--act-shadow-btn);transform:translateY(-1px)}.confirm-card .btn.secondary:hover{background:color-mix(in oklab,var(--act-surface) 95%,transparent);box-shadow:var(--act-shadow-btn);transform:translateY(-1px)}}.confirm-card .btn:disabled{opacity:.6;cursor:not-allowed}.playbook{border:1px solid var(--act-border);background:var(--act-surface);border-radius:12px;padding:var(--act-space-3);color:var(--act-text)}.playbook h3{margin:0 0 8px}.stepper{list-style:none;margin:0;padding:0}.stepper .step{display:grid;grid-template-columns:28px 1fr auto;align-items:start;gap:10px;padding:8px;border-radius:10px}.stepper .step .index{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:color-mix(in oklab,var(--act-link) 20%,var(--act-surface) 80%);color:var(--act-text);font-weight:600}.stepper .step:hover{background:color-mix(in oklab,var(--act-surface) 94%,transparent)}.stepper .step .body p{margin:4px 0 0;color:var(--act-text-muted)}.stepper .step button{padding:6px 10px;border-radius:8px;border:1px solid var(--act-border);background:color-mix(in oklab,var(--act-surface) 92%,transparent);cursor:pointer}.stepper .step button:hover{transform:translateY(-1px);box-shadow:var(--act-shadow-btn)}.qa-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--qa-z);display:grid;place-items:end center;padding:0 12px;background:transparent}.qa-backdrop[data-variant=modal]{background:color-mix(in oklab,var(--qa-elev) 55%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.qa-modal{position:relative;width:clamp(650px,56vw,720px);max-height:min(58vh,520px);border:1px solid var(--qa-border);background:transparent;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--qa-text);border-radius:var(--qa-radius);box-shadow:var(--qa-shadow);overflow:hidden;display:flex;flex-direction:column;margin-left:30px;margin-bottom:calc(var(--composer-height, 72px) + 20px);transform-origin:100% 100%;animation:pop-in var(--pop-ease);color-scheme:light dark}.qa-caret{position:absolute;bottom:-8px;left:50%;transform:translate(-50%) rotate(45deg);width:14px;height:14px;background:var(--qa-surface);border-left:1px solid var(--qa-border);border-bottom:1px solid var(--qa-border)}.qa-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px var(--qa-pad);border-bottom:1px solid var(--qa-border)}.qa-header i{color:var(--qa-icon-strong)}.qa-header h3{margin:0;font-size:.95rem;font-weight:700;letter-spacing:.2px}.qa-x{border:1px solid var(--qa-border);background:transparent;color:var(--qa-subtext);border-radius:8px;padding:6px 8px;cursor:pointer}.qa-x:hover{color:var(--qa-text);background:var(--qa-item-hover)}.qa-utilities{padding:10px var(--qa-pad) 0 var(--qa-pad);display:grid;grid-template-columns:1fr;gap:10px}.qa-improve-panel{margin-top:6px;border:1px solid var(--qa-border);background:var(--qa-item-bg);border-radius:10px;padding:10px}.qa-improve-title{font-weight:600;margin-bottom:6px}.qa-preview{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;background:var(--qa-code-bg);border:1px solid var(--qa-border);border-radius:8px;padding:8px 10px;margin:0 0 10px;max-height:180px;overflow:auto;font-size:.92rem;line-height:1.35}.qa-actions{display:flex;gap:8px;justify-content:flex-end}.btn{border:1px solid var(--qa-border);background:var(--qa-item-bg);color:var(--qa-text);border-radius:8px;padding:6px 10px;cursor:pointer;transition:background .14s ease,transform .12s ease,box-shadow .14s ease,border-color .14s ease}.btn.primary{border-color:transparent;background:var(--button-bg-gradient, var(--qa-icon-strong));color:#fff}.btn.primary:hover{background:var(--button-bg-gradient-hover, var(--act-link-hover));box-shadow:var(--act-shadow-btn);transform:translateY(-1px)}.btn:disabled{opacity:.6;cursor:not-allowed}.qa-starters{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.qa-chip{border:1px solid var(--qa-border);border-radius:999px;padding:6px 10px;background:var(--qa-chip-bg);color:var(--qa-text);cursor:pointer}.qa-chip:hover{background:var(--qa-item-hover)}.qa-list{list-style:none;margin:10px var(--qa-pad) var(--qa-pad) var(--qa-pad);padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--qa-gap)}@media (max-width: 720px){.qa-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 460px){.qa-list{grid-template-columns:1fr}}.qa-item{width:100%;display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:10px;border-radius:10px;border:1px solid var(--qa-border);background:var(--qa-item-bg);color:inherit;text-align:left;cursor:pointer;transition:background .14s ease,transform .12s ease,border-color .14s ease,box-shadow .14s ease}.qa-item:hover{background:var(--qa-item-hover);transform:translateY(-1px);box-shadow:var(--act-shadow-btn)}.qa-text{display:flex;flex-direction:column;gap:2px}.qa-title{font-size:.9rem;line-height:1.25;font-weight:500}.qa-subtitle{font-size:.8rem;color:var(--qa-subtext)}.qa-item[data-accent=green]{--icon-fg: #16a34a}.qa-item[data-accent=amber]{--icon-fg: #f59e0b}.qa-item[data-accent=red]{--icon-fg: #ef4444}.qa-item[data-accent=blue]{--icon-fg: var(--qa-icon-strong)}.qa-modal[data-variant=popover]{width:clamp(420px,46vw,560px);max-height:min(64vh,480px)}.qa-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.qa-utilities{position:sticky;top:0;z-index:1;background:var(--qa-surface);border-bottom:1px solid var(--qa-border);padding:10px var(--qa-pad) 8px var(--qa-pad)}.qa-list{overflow:auto;max-height:none}.qa-error{margin-top:8px;color:var(--qa-danger);font-size:.9rem;display:flex;align-items:center;gap:6px}.qa-item[data-dept]{--accent: var(--dept-general);--icon-fg: var(--dept-general);border-color:color-mix(in oklab,var(--qa-border) 70%,var(--accent) 30%)}.qa-item[data-dept=advice]{--accent: var(--dept-advice);--icon-fg: var(--dept-advice)}.qa-item[data-dept=mediation]{--accent: var(--dept-mediation);--icon-fg: var(--dept-mediation)}.qa-item[data-dept=claims]{--accent: var(--dept-claims);--icon-fg: var(--dept-claims)}.qa-item[data-dept=research]{--accent: var(--dept-research);--icon-fg: var(--dept-research)}.qa-item[data-dept=data]{--accent: var(--dept-data);--icon-fg: var(--dept-data)}.qa-item[data-dept=qc]{--accent: var(--dept-qc);--icon-fg: var(--dept-qc)}.qa-item[data-dept=general]{--accent: var(--dept-general);--icon-fg: var(--dept-general)}@media (hover: hover){.qa-item[data-dept]:hover{background:color-mix(in oklab,var(--qa-item-bg) 88%,var(--accent) 12%);border-color:color-mix(in oklab,var(--qa-border) 45%,var(--accent) 55%)}}.tile :is(i,svg),.chip :is(i,svg){color:var(--icon-fg, var(--act-link))}.qa-item :is(i,svg),.qa-header :is(i,svg){color:var(--icon-fg, var(--qa-icon))}:is(.tile,.chip,.qa-item) svg [fill]:not([fill=none]){fill:currentColor}:is(.tile,.chip,.qa-item) svg [stroke]:not([stroke=none]){stroke:currentColor}.qa-item:focus-visible,.qa-close:focus-visible,.qa-x:focus-visible,.btn:focus-visible,.qa-chip:focus-visible,.tile:focus-visible,.chip:focus-visible{outline:2px solid var(--qa-icon-strong);outline-offset:2px}@media (prefers-reduced-motion: reduce){.qa-modal{animation:none}.qa-item,.qa-x,.btn,.tile,.chip{transition:none!important}}@media (max-width: 1024px){.tile-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}@media (max-width: 768px){.actions-header{padding:var(--act-space-2) var(--act-space-3)}.actions-body{padding:var(--act-space-2) var(--act-space-3) var(--act-space-4)}.tile-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}@media (max-width: 480px){.actions-header{gap:var(--act-space-2)}.actions-search{min-width:0}.tile-grid{grid-template-columns:1fr}}@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){.actions-overlay,.confirm-overlay{-webkit-backdrop-filter:none;backdrop-filter:none;background:#070a0fe6}}@keyframes pop-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}:root{--chat-rail-offset: 16px;--chat-input-max-w: 650px;--chat-input-w: 90%;--chat-input-reserved: 150px;--ci-radius: 20px;--ci-pad-y: .5rem;--ci-pad-x: 1rem;--ci-icon-size: 1rem;--ci-send-size: 2.5rem;--ci-bg: linear-gradient(135deg, #121827, #070b14);--ci-border: var(--input-border-dark, #2c3548);--ci-text: var(--input-text-dark, #e7edf8);--ci-placeholder: rgba(231, 237, 248, .6);--ci-icon: var(--icon-color-primary-dark, #7cc9ff);--ci-icon-hover: var(--icon-color-hover-dark, #9addff);--ci-shadow: var(--shadow-dark, rgba(0, 0, 0, .35));--ci-active: var(--active-border-highlight, #3a7bd5);--ap-bg: linear-gradient(135deg, #121827, #070b14);--ap-border: var(--input-border-dark, #2c3548);--ap-text: var(--ci-text);--ap-icon: var(--ci-icon);--ap-icon-hover: var(--ci-icon-hover)}:root{--qa-bolt: #ffd36e;--qa-bolt-hover: #ffe19b;--qa-bolt-ring: rgba(0, 224, 255, .38);--qa-lamp: #78e8ff;--qa-lamp-hover: #b6f3ff;--qa-lamp-ring: rgba(255, 198, 93, .38)}.theme-light,html[data-theme=light]{--ci-bg: var(--input-bg-light, #ffffff);--ci-border: var(--input-border-light, #dfe5ef);--ci-text: var(--input-text-light, #1f2328);--ci-placeholder: color-mix(in oklab, var(--ci-text) 50%, transparent);--ci-icon: var(--icon-color-primary-light, #2b7cff);--ci-icon-hover: var(--icon-color-hover-light, #5193ff);--ci-shadow: var(--shadow-light, rgba(0, 0, 0, .2));--ap-bg: var(--input-bg-light, #ffffff);--ap-border: var(--input-border-light, #dfe5ef);--ap-text: var(--input-text-light, #1f2328);--ap-icon: var(--icon-color-primary-light, #2b7cff);--ap-icon-hover: var(--icon-color-hover-light, #5193ff);--qa-bolt: #f5b23a;--qa-bolt-hover: #ffc356;--qa-bolt-ring: rgba(47, 182, 214, .28);--qa-lamp: #2fb6d6;--qa-lamp-hover: #56cbe6;--qa-lamp-ring: rgba(245, 178, 58, .28)}html[data-theme=dark]{--ci-bg: linear-gradient(135deg, #121827, #070b14);--ci-border: var(--input-border-dark, #2c3548);--ci-text: var(--input-text-dark, #e7edf8);--ci-placeholder: rgba(231, 237, 248, .6);--ci-icon: var(--icon-color-primary-dark, #7cc9ff);--ci-icon-hover: var(--icon-color-hover-dark, #9addff);--ci-shadow: var(--shadow-dark, rgba(0, 0, 0, .35));--ap-bg: linear-gradient(135deg, #121827, #070b14);--ap-border: var(--input-border-dark, #2c3548);--ap-text: var(--input-text-dark, #e7edf8);--ap-icon: var(--icon-color-primary-dark, #7cc9ff);--ap-icon-hover: var(--icon-color-hover-dark, #9addff)}.chat-window-container{padding-bottom:calc(var(--chat-input-reserved) + env(safe-area-inset-bottom,0px))}.chat-container{position:relative}.chat-input-area{position:absolute;inset-inline:0;inset-block-end:0;z-index:10;padding:0 12px 12px;background:none}html[data-theme=dark] .chat-input-area{background:linear-gradient(180deg,transparent,var(--bg-primary, #0d1117) 50%)}.attachments-container,.chat-input-container{width:min(100%,720px);margin-inline:auto}.chat-input-container{position:fixed;inset-block-end:calc(1rem + env(safe-area-inset-bottom,0px));left:calc(50% + var(--chat-rail-offset));transform:translate(-50%);z-index:2000;isolation:isolate;display:flex;align-items:center;box-sizing:border-box;width:var(--chat-input-w);max-width:var(--chat-input-max-w);padding:var(--ci-pad-y) var(--ci-pad-x);border-radius:var(--ci-radius);border:1px solid var(--ci-border);background:var(--ci-bg);box-shadow:0 4px 12px var(--ci-shadow);transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.chat-input-container:focus-within{border-color:var(--ci-active);animation:glowHighlight .9s ease forwards}.theme-light .chat-input-container:focus-within,html[data-theme=dark] .chat-input-container:focus-within{border-color:var(--ci-active);box-shadow:0 0 15px color-mix(in oklab,var(--ci-active) 40%,transparent)}.chat-input-box{flex:1;border:0;outline:0;background:transparent;color:var(--ci-text);font:inherit;font-size:clamp(.9rem,2vw,.9rem);line-height:1.4;padding:.5rem .75rem;resize:none;max-height:9rem;overflow-y:auto;caret-color:var(--ci-icon);accent-color:var(--ci-icon)}.chat-input-box::placeholder{color:var(--ci-placeholder)}.chat-input-icons{display:flex;gap:1rem;font-size:var(--ci-icon-size);color:var(--ci-icon);cursor:pointer;margin-right:.75rem;touch-action:manipulation}.chat-input-icons i:hover{color:var(--ci-icon-hover)}.chat-input-icons .icon-btn{background:none;border:0;padding:4px;margin:0;color:inherit;display:inline-grid;place-items:center;line-height:1;cursor:pointer;transition:color .15s ease,transform .15s ease}.chat-input-icons .icon-btn:hover{transform:translateY(-1px)}.chat-input-icons .icon-btn[disabled]{opacity:.5;cursor:default;transform:none}.chat-send-btn{background:transparent;border:1px solid var(--ci-icon);color:var(--ci-icon);border-radius:50%;height:var(--ci-send-size);width:var(--ci-send-size);display:grid;place-items:center;cursor:pointer;touch-action:manipulation;transition:transform .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;-webkit-appearance:none;-webkit-backdrop-filter:blur(10px);backdrop-filter:saturate(120%)}.chat-send-btn:hover{border-color:var(--ci-icon-hover);color:var(--ci-icon-hover);box-shadow:0 6px 12px #00d2ff4d;transform:translateY(-1px)}.chat-send-btn[disabled],.chat-send-btn[aria-disabled=true]{opacity:.5;cursor:default;box-shadow:none;transform:none;border:transparent}.chat-send-btn:focus-visible,.chat-input-icons :is(button,i,svg):focus-visible,.attachment-pill .ap-remove-btn:focus-visible{outline:2px solid var(--ci-active);outline-offset:2px}.chat-send-btn .fa-paper-plane{transform:translate(0);transition:transform .18s ease}.chat-send-btn:hover .fa-paper-plane{transform:translate(2px)}.chat-send-btn .fa-stop{transform:scale(1);transition:transform .18s ease}.chat-send-btn:hover .fa-stop{transform:scale(1.06)}.attachments-container{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:30px;padding-left:30px}.attachments-container:empty{padding-bottom:12px}.attachment-pill{display:inline-flex;align-items:center;gap:8px;padding:4px 4px 4px 10px;border-radius:999px;background:var(--ap-bg);border:1px solid var(--ap-border);color:var(--ap-text);font-size:14px;max-width:300px;transform-origin:bottom left;transition:border-color .2s ease,background .2s ease,color .2s ease}.attachment-pill.enter{animation:ap-in .18s ease-out}.attachment-pill.closing{animation:ap-out .18s ease-in forwards}.attachment-pill .ap-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translateY(6px);color:inherit}.attachment-pill .ap-remove-btn{display:grid;place-items:center;width:22px;height:22px;border:none;border-radius:50%;cursor:pointer;color:var(--ap-text);background:#ffffff14;opacity:.8;transition:background .15s ease,opacity .15s ease,transform .15s ease}.attachment-pill .ap-remove-btn:hover{background:#ffffff26;opacity:1;transform:translateY(-1px)}@keyframes ap-in{0%{opacity:0;transform:translateY(6px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ap-out{to{opacity:0;transform:translateY(6px) scale(.95)}}.icon-btn.mic:not(.listening) i{color:#3b82f6}.icon-btn.mic:not(.listening):hover i{color:#60a5fa}.icon-btn.paperclip i{color:#a855f7}.icon-btn.paperclip:hover i{color:#c084fc}.icon-btn.quick-actions i{color:var(--qa-bolt);text-shadow:0 0 0 transparent;transition:color .15s ease,text-shadow .2s ease,transform .15s ease}.icon-btn.menu i{color:var(--qa-lamp);text-shadow:0 0 0 transparent;transition:color .15s ease,text-shadow .2s ease,transform .15s ease}.icon-btn.quick-actions:hover i{color:var(--qa-bolt-hover);text-shadow:0 0 10px color-mix(in oklab,var(--qa-bolt) 45%,transparent)}.icon-btn.menu:hover i{color:var(--qa-lamp-hover);text-shadow:0 0 10px color-mix(in oklab,var(--qa-lamp) 45%,transparent)}.icon-btn.quick-actions:active,.icon-btn.menu:active{transform:translateY(1px) scale(.98)}.icon-btn.quick-actions:focus-visible,.icon-btn.menu:focus-visible{outline:2px solid currentColor;outline-offset:2px}.icon-btn.quick-actions,.icon-btn.menu{position:relative}.icon-btn.quick-actions:after,.icon-btn.menu:after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border-radius:10px;pointer-events:none;opacity:0;transition:opacity .2s ease,box-shadow .2s ease}.icon-btn.quick-actions:hover:after{opacity:1;box-shadow:0 0 0 6px var(--qa-bolt-ring)}.icon-btn.menu:hover:after{opacity:1;box-shadow:0 0 0 6px var(--qa-lamp-ring)}.main-content:has(.qa-backdrop) .icon-btn.quick-actions i{color:var(--qa-bolt-hover);animation:boltPulse 1.6s ease-in-out infinite}.main-content:has(.qa-backdrop) .icon-btn.quick-actions:after{opacity:1;box-shadow:0 0 0 8px var(--qa-bolt-ring)}.main-content:has(.actions-overlay) .icon-btn.menu i{color:var(--qa-lamp-hover);animation:lampGlow 1.8s ease-in-out infinite}.main-content:has(.actions-overlay) .icon-btn.menu:after{opacity:1;box-shadow:0 0 0 8px var(--qa-lamp-ring)}@media (prefers-reduced-motion: reduce){.chat-input-container,.chat-send-btn,.chat-input-icons{transition:none!important}.icon-btn.mic.listening i{animation:none}.main-content:has(.qa-backdrop) .icon-btn.quick-actions i,.main-content:has(.actions-overlay) .icon-btn.menu i{animation:none!important}}@media (max-width: 768px){.chat-input-container{width:95%;padding:.4rem .8rem}}@media (max-width: 480px){.chat-input-container{width:98%;padding:.3rem .6rem}.chat-input-icons{gap:.85rem}.icon-btn.quick-actions:after,.icon-btn.menu:after{top:-4px;right:-4px;bottom:-4px;left:-4px}}@media (pointer: coarse){.chat-send-btn{height:2.75rem;width:2.75rem}.chat-input-icons{gap:1.1rem}}.chat-input-box{scrollbar-width:thin;scrollbar-color:color-mix(in oklab,var(--ci-icon) 25%,transparent) transparent}.chat-input-box::-webkit-scrollbar{width:8px}.chat-input-box::-webkit-scrollbar-thumb{background:color-mix(in oklab,var(--ci-icon) 25%,transparent);border-radius:8px}.chat-input-box::-webkit-scrollbar-thumb:hover{background:color-mix(in oklab,var(--ci-icon) 40%,transparent)}@keyframes glowHighlight{0%{box-shadow:0 0 15px #6cbcff99}to{box-shadow:none}}@keyframes pulse{0%,to{transform:scale(1);filter:drop-shadow(0 0 0 rgba(220,53,69,0))}50%{transform:scale(1.05);filter:drop-shadow(0 0 6px rgba(220,53,69,.45))}}@keyframes boltPulse{0%,to{text-shadow:0 0 0 transparent;transform:translateY(0)}50%{text-shadow:0 0 14px color-mix(in oklab,var(--qa-bolt) 55%,transparent);transform:translateY(-1px)}}@keyframes lampGlow{0%,to{text-shadow:0 0 0 transparent;transform:translateY(0)}50%{text-shadow:0 0 14px color-mix(in oklab,var(--qa-lamp) 55%,transparent);transform:translateY(-1px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.icon-btn.mic.listening i{color:#dc3545;animation:pulse 1.5s infinite;filter:drop-shadow(0 0 6px rgba(220,53,69,.45))}.icon-btn.quick-actions.spinning i{animation:spin 1s linear infinite}.improve-tray{margin-top:8px;border:1px solid var(--border, #e5e7eb);border-radius:8px;padding:10px;background:var(--surface, #fff);box-shadow:0 2px 10px #0000000f}.improve-title{font-weight:600;margin-bottom:6px}.improve-preview{white-space:pre-wrap;margin:0 0 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.improve-actions{display:flex;gap:8px}.btn{border:1px solid #d1d5db;background:#fff;border-radius:6px;padding:6px 10px;cursor:pointer}.btn.primary{border-color:#2563eb;background:#2563eb;color:#fff}.starter-list{display:flex;flex-wrap:wrap;gap:6px}.starter-chip{border:1px solid #d1d5db;border-radius:999px;padding:6px 10px;background:#f9fafb;cursor:pointer}.plotly-chart-container{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.75rem;padding:.5rem;background:var(--card-bg-dark);box-shadow:0 .4rem 1rem var(--card-shadow-dark);transition:transform .3s ease,box-shadow .3s ease;overflow:hidden;display:flex;align-items:center;justify-content:center}.plotly-chart-container:hover{transform:translateY(-.15rem);box-shadow:0 0 .75rem var(--glow-hover)}.no-visualization-message{text-align:center;color:#aaa;font-style:italic;padding:20px;border-radius:6px;background:#0000001a}body.light-mode .plotly-chart-container{background:var(--card-bg-light);box-shadow:0 .4rem 1rem var(--card-shadow-light)}.expandable-query-card{background:var(--card-bg-dark, rgba(255, 255, 255, .05));border-radius:14px;padding:.8rem 1rem;margin:1rem 0;box-shadow:0 4px 8px var(--shadow-dark, rgba(0, 0, 0, .4));transition:box-shadow .3s ease,transform .3s ease;overflow:hidden}.expandable-query-card:hover{box-shadow:0 6px 12px var(--shadow-hover-dark, rgba(108, 188, 255, .3));transform:translateY(-2px)}@media (max-width: 768px){.expandable-query-card{padding:.6rem .8rem;margin:.8rem 0}}@media (max-width: 480px){.expandable-query-card{padding:.5rem .7rem;margin:.6rem 0}}.expand-toggle-btn{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:none;color:var(--highlight-color, #00d2ff);font-family:var(--font-family, "Inter", sans-serif);font-size:clamp(.8rem,1.5vw,.95rem);font-weight:500;cursor:pointer;padding:.4rem .5rem;border-radius:8px;transition:background-color .3s ease,transform .3s ease}.expand-toggle-btn:hover{background-color:#00d2ff1a;transform:translateY(-1px)}.icon-toggle{font-size:clamp(.7rem,1.2vw,.85rem);transition:transform .3s ease}.expanded .icon-toggle{transform:rotate(180deg)}.query-content{max-height:0;opacity:0;overflow:hidden;transition:max-height .4s ease,opacity .4s ease;margin-top:.6rem}.query-content.expanded{max-height:500px;opacity:1}.query-content pre{background-color:var(--code-bg, rgba(0, 0, 0, .1));color:var(--code-text, #00d2ff);border-radius:8px;padding:.7rem;margin:0;border:1px solid var(--code-border, rgba(255, 255, 255, .1));font-family:Fira Code,monospace;font-size:clamp(.75rem,1.4vw,.85rem);overflow-x:auto}@media (max-width: 480px){.query-content pre{padding:.5rem}}.theme-light .expandable-query-card{background:var(--card-bg-light, #ffffff);box-shadow:0 4px 8px var(--shadow-light, rgba(58, 123, 213, .2))}.theme-light .expandable-query-card:hover{box-shadow:0 6px 12px var(--shadow-hover-light, rgba(58, 123, 213, .3))}.theme-light .expand-toggle-btn{color:#3a7bd5}.theme-light .expand-toggle-btn:hover{background-color:#3a7bd51a}.theme-light .query-content pre{background-color:#0000000d;color:#3a7bd5;border-color:#3a7bd526}.status-card{display:inline-flex;align-items:center;gap:8px}.status-message{margin:0;line-height:1;font-family:var(--font-family, "Inter", sans-serif);font-size:.9rem;font-weight:500;padding:10px 16px;border-radius:var(--border-radius, 20px);background:var(--card-bg-light, rgba(255, 255, 255, .85));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:var(--card-shadow-light, 0 5px 20px rgba(0, 0, 0, .1));border:1px solid var(--card-border-light, rgba(255, 255, 255, .9))}.theme-dark .status-message{background:var(--card-bg-dark, rgba(40, 42, 54, .85));border-color:var(--card-border-dark, rgba(255, 255, 255, .1));box-shadow:var(--card-shadow-dark, 0 5px 25px rgba(0, 0, 0, .2))}.status-card-info{color:var(--primary-color, #3b82f6)}.status-card-success{color:#28a745}.status-card-error{color:#dc3545}.theme-dark .status-card-info{color:var(--icon-color-primary-dark, #60a5fa)}.theme-dark .status-card-success{color:#34d399}.theme-dark .status-card-error{color:#f87171}.theme-light .status-message{color:var(--text-color-light, #333333)}.theme-dark .status-message{color:var(--text-color-dark, #f1f1f1)}.drawing-indicator{position:relative;width:28px;height:28px;filter:drop-shadow(0 0 2px currentColor);transform:translateY(5px)}.drawing-indicator:before,.drawing-indicator:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.status-processing:before{border:3px solid currentColor;border-radius:50%;opacity:.15}.status-processing:after{animation:draw-and-rotate 2s infinite cubic-bezier(.65,0,.35,1);border:3px solid transparent;border-top-color:currentColor;border-radius:50%}.status-success:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:100%;animation:pop-in .5s forwards cubic-bezier(.68,-.6,.32,1.6)}.status-error:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");background-size:100%;animation:pop-in-shake .6s forwards ease-out}@keyframes draw-and-rotate{0%{transform:rotate(0)}50%{transform:rotate(180deg);clip-path:inset(0 50% 0 0)}to{transform:rotate(360deg)}}@keyframes pop-in{0%{opacity:0;transform:scale(.6) rotate(-15deg)}60%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@keyframes pop-in-shake{0%{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1.1)}70%{transform:translate(-3px)}85%{transform:translate(3px)}to{transform:translate(0)}}:root{--sidebar-collapsed-width: 50px;--sidebar-expanded-width: 240px;--transition-duration: .3s;--nav-icon-btn: 36px;--nav-icon-size: 18px;--nav-hover-bg: rgba(58, 123, 213, .15);--nav-active-bg: rgba(58, 123, 213, .22);--nav-ring: rgba(58, 123, 213, .35)}@media (pointer: coarse){:root{--nav-icon-btn: 40px}}.sidebar{position:fixed;top:0;left:0;height:100vh;z-index:4000;display:flex;flex-direction:column;padding:15px 1px 1px;border-right:1px solid var(--sidebar-border, rgba(0, 0, 0, .1));box-sizing:border-box;overflow-x:hidden;transition:width .3s ease-in-out}.sidebar-glass{-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);background:inherit;box-shadow:0 4px 20px #0003;border-radius:.8rem;border-right:var(--sidebar-glass-right-border, none)}.sidebar-glass.theme-dark{background:#1c1c1eb3;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:#f5f5f7}.sidebar-glass.theme-light{background:#f2f2f7b3;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:#1d1d1f}.sidebar.collapsed{width:var(--sidebar-collapsed-width)}.sidebar.expanded{width:var(--sidebar-expanded-width)}.sidebar.collapsed,.sidebar-glass.sidebar.collapsed,.sidebar-glass.theme-dark.sidebar.collapsed,.sidebar-glass.theme-light.sidebar.collapsed{background:transparent!important;border-right:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.sidebar-header{display:flex;align-items:center;justify-content:center;height:40px;position:relative;flex-shrink:0;border-bottom-color:var(--sidebar-border)}.sidebar.expanded .sidebar-header{justify-content:flex-start}.sidebar-toggle{background:none;border:none;color:inherit;font-size:20px;cursor:pointer;position:absolute;right:-4px}.sidebar-nav{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.nav-item{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;border-radius:8px;background:none;color:inherit;font-size:16px;cursor:pointer;width:100%;text-align:left;white-space:nowrap;transition:background-color .15s ease,border-right-color .15s ease,box-shadow .15s ease}.nav-item i{font-size:20px;width:24px;text-align:center;flex-shrink:0}.nav-item:hover,.nav-item.active{background-color:#8080801a;border-right-color:var(--primary-color, #3a7bd5);box-shadow:3px 0 8px -2px #3a7bd566}.nav-text{transition:opacity .2s ease-in-out .1s;opacity:0}.sidebar.expanded .nav-text{opacity:1}.sidebar nav button,.sidebar-right nav button{display:flex;align-items:center;padding:.6rem .9rem;border:none;background:transparent;border-radius:10px;font-size:.95rem;cursor:pointer;transition:all var(--transition-duration, .3s) ease}.sidebar nav button i,.sidebar-right nav button i{transform:translateY(-.375rem);margin-right:.75rem;color:var(--icon-color-primary)}.sidebar nav button:hover i,.sidebar-right nav button:hover i{color:var(--icon-color-hover)}.sidebar nav button.active i,.sidebar-right nav button.active i{color:var(--icon-color-primary)}.sidebar nav button:hover,.sidebar-right nav button:hover,.sidebar nav button.active,.sidebar-right nav button.active{background:var(--sidebar-active-bg);transform:translate(.3rem);box-shadow:0 .25rem .625rem var(--sidebar-shadow)}.sidebar.collapsed nav button:hover,.sidebar.collapsed nav button.active{background:transparent;box-shadow:none;transform:none;border-right-color:transparent;border-radius:30%}.sidebar-divider,.sidebar-documents{transition:opacity .2s ease-in-out .1s;opacity:0}.sidebar.expanded .sidebar-divider,.sidebar.expanded .sidebar-documents{opacity:1}.sidebar-divider{width:100%;height:1px;background:#80808033;margin:1px 0}.sidebar-logo-toggle,.sidebar-right-logo-toggle{position:fixed;top:.9rem;background:transparent;border:none;color:var(--icon-primary);cursor:pointer;transition:transform var(--transition-duration, .3s) ease;font-size:1.2rem;z-index:1200}.sidebar-logo-toggle{left:.9rem}.sidebar-right-logo-toggle{right:.9rem}.sidebar-logo-toggle:hover,.sidebar-right-logo-toggle:hover{transform:scale(1.15)}.sidebar-logo{width:100%;margin:0 auto;transition:all .3s ease-in-out;background-repeat:no-repeat;background-position:center;background-size:contain}.sidebar-logo.expanded{width:140px;height:60px}.sidebar-logo.collapsed{width:30px;height:30px}.sidebar-section__footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid var(--border-color-light, #e5e7eb)}.link-btn{background:none;border:none;cursor:pointer;font-family:var(--font-family, "Inter", sans-serif);font-size:.85rem;font-weight:500;padding:6px 10px;border-radius:var( --border-radius-small, 8px );color:var(--text-color-secondary-light, #555);transition:all .2s ease-in-out}.link-btn:hover{background-color:#0000000d;color:var(--text-color-light, #333)}.link-btn:focus-visible{outline:2px solid var(--primary-color, #3b82f6);outline-offset:2px}.link-btn.danger{color:var(--danger-primary, #dc3545)}.link-btn.danger:hover{background-color:#dc35451a;color:var(--danger-primary, #dc3545)}.link-btn.danger:focus-visible{outline-color:var(--danger-primary, #dc3545)}.theme-dark .sidebar-section__footer{border-top-color:var(--border-color-dark, #374151)}.theme-dark .link-btn{color:var(--text-color-secondary-dark, #9ca3af)}.theme-dark .link-btn:hover{background-color:#ffffff1a;color:var(--text-color-dark, #f1f1f1)}.theme-dark .link-btn.danger{color:#f87171}.theme-dark .link-btn.danger:hover{background-color:#f8717126;color:#f87171}.sidebar::-webkit-scrollbar,.sidebar-right::-webkit-scrollbar,.sidebar-scrollable-content::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb,.sidebar-right::-webkit-scrollbar-thumb,.sidebar-scrollable-content::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:10px}.sidebar::-webkit-scrollbar-thumb:hover,.sidebar-right::-webkit-scrollbar-thumb:hover,.sidebar-scrollable-content::-webkit-scrollbar-thumb:hover{background:var(--shadow-hover-dark)}.sidebar-right{position:fixed;top:0;right:0;height:100vh;width:50%;z-index:3000;display:flex;flex-direction:column;padding:1.25rem;box-sizing:border-box;transform:translate(100%);transition:transform .35s ease-in-out;overflow-y:auto}.sidebar-right.open{transform:translate(0);box-shadow:-5px 0 25px #00000026;z-index:10000}.sidebar-right-toggle{position:fixed;top:1rem;right:1rem;background:transparent;border:none;color:var(--icon-primary);font-size:1.5rem;cursor:pointer;transition:transform .2s ease}.sidebar-right-toggle:hover{transform:scale(1.1)}.sidebar-right .sidebar-glass.theme-dark{background:#1c1c1eb3;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-left:1px solid rgba(255,255,255,.1);border-right:none}.sidebar-right .sidebar-glass.theme-light{background:#f2f2f7b3;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-left:1px solid rgba(0,0,0,.08);border-right:none}.sidebar-right nav button{justify-content:flex-start;text-align:left}.sidebar-right .sidebar-header{justify-content:flex-start;text-align:left}.theme-dark .sidebar,.theme-dark .sidebar-right{background:var(--sidebar-bg);color:var(--sidebar-text-color);border-right:1px solid var(--sidebar-border)}.theme-dark .sidebar-right{border-left:1px solid var(--sidebar-border);border-right:none}.theme-dark .sidebar-header{border-bottom-color:var(--sidebar-border)}.theme-dark .sidebar nav button:hover,.theme-dark .sidebar-right nav button:hover,.theme-dark .sidebar nav button.active,.theme-dark .sidebar-right nav button.active{background:var(--sidebar-active-bg);box-shadow:0 .25rem .625rem var(--sidebar-shadow)}.theme-dark .sidebar::-webkit-scrollbar-thumb,.theme-dark .sidebar-right::-webkit-scrollbar-thumb{background:var(--sidebar-border)}.theme-dark .sidebar::-webkit-scrollbar-thumb:hover,.theme-dark .sidebar-right::-webkit-scrollbar-thumb:hover{background:var(--sidebar-shadow)}.theme-light .sidebar,.theme-light .sidebar-right{background:var(--sidebar-bg);color:var(--sidebar-text-color);border-right:1px solid var(--sidebar-border)}.theme-light .sidebar-right{border-left:1px solid var(--sidebar-border);border-right:none}.theme-light .sidebar-header{border-bottom-color:var(--sidebar-border)}.theme-light .sidebar nav button:hover,.theme-light .sidebar-right nav button:hover,.theme-light .sidebar nav button.active,.theme-light .sidebar-right nav button.active{background:var(--sidebar-active-bg);box-shadow:0 .25rem .625rem var(--sidebar-shadow)}.theme-light .sidebar::-webkit-scrollbar-thumb,.theme-light .sidebar-right::-webkit-scrollbar-thumb{background:var(--sidebar-border)}.theme-light .sidebar::-webkit-scrollbar-thumb:hover,.theme-light .sidebar-right::-webkit-scrollbar-thumb:hover{background:var(--sidebar-shadow)}.sidebar-scrollable-content{flex-grow:1;overflow-y:auto;min-height:0;transition:opacity .2s ease-in-out .1s;opacity:0}.sidebar.expanded .sidebar-scrollable-content{opacity:1}.sidebar-section__header{display:flex;justify-content:space-between;align-items:center;padding:0;margin-bottom:0;margin-left:5px;color:var(--primary-color)}.sidebar-section__title{font-size:.8rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:var(--sidebar-section-title-color, var(--primary-color, #3a7bd5));margin-left:5px;margin-top:5px;margin-bottom:5px}.theme-dark .sidebar-section__title,.theme-light .sidebar-section__title{color:var(--icon-color-primary)}.sidebar-section__actions{display:flex;gap:.5rem;align-items:center}.bulk-actions{display:flex;justify-content:flex-end;gap:.5rem;padding:0 10px 12px;margin-bottom:1px}.sidebar-section__list{list-style:none;padding:0;margin:0 0 0 10px}.sidebar-section__item{display:flex;align-items:center;position:relative;padding-left:8px;margin:1px 0;border-radius:6px;cursor:pointer;transition:background-color .2s ease}.sidebar-section__item:hover{background-color:transparent;font-weight:600}.sidebar-section__item.active{background-color:var(--active-item-bg, transparent)}.sidebar-section__item.active:hover{background-color:var( --active-item-hover-bg, var(--sidebar-active-bg, rgba(128, 128, 128, .1)) )}.history-item-text,.document-item__label{font-size:.85rem;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.document-item__label{padding-left:5px}.sidebar-section__item .edit-btn{opacity:0;transition:opacity .2s ease}.sidebar-section__item:hover .edit-btn{opacity:1}.sidebar-section__item.active .history-item-text,.sidebar-section__item.active .document-item__label{color:var(--active-history-text-color, var(--primary-color, #3a7bd5));font-weight:600}.sidebar-section__item.selected{background-color:#3b82f626}.sidebar-section__empty{font-style:italic;color:var(--text-color-secondary);padding:5px;font-size:.8rem}.theme-dark .sidebar-section__empty{color:#a7afc2}.theme-light .sidebar-section__empty{color:#495057}.sidebar-section__item .delete-convo-btn{background:none;border:none;color:var(--text-color-secondary);padding:5px;border-radius:5px;cursor:pointer;opacity:0;transition:opacity .2s ease,color .2s ease;flex-shrink:0;margin-left:auto}.sidebar-section__item:hover .delete-convo-btn{opacity:.7}.sidebar-section__item .delete-convo-btn:hover{opacity:1;color:#e53e3e}.sidebar-section__item.active .delete-convo-btn{color:var(--primary-color);opacity:.7}.btn{padding:.3rem .85rem;border:1px solid transparent;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:background-color .2s ease,color .2s ease}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.btn-danger{background-color:#dc3545;color:#fff}.btn.btn-danger:not(:disabled):hover{background-color:#c82333}.btn.btn-secondary{background-color:#f8f9fa;color:#343a40;border-color:#dee2e6}.btn.btn-secondary:hover{background-color:#e2e6ea}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid transparent;color:var(--text-color-secondary, #6c757d);width:30px;height:30px;border-radius:8px;cursor:pointer;transition:all .2s ease}.icon-btn:hover{color:var(--primary-color, #3a7bd5);background-color:#8080801a;border-color:var(--sidebar-border, rgba(0, 0, 0, .1))}.new-chat-btn{background:none;color:var(--icon-color-primary);width:28px;height:28px;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;transform:translateY(px)}.new-chat-btn:hover{color:#4df2f8}.document-item__checkbox,.convo-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;border:1px solid #ced4da;border-radius:4px;cursor:pointer;position:relative;flex-shrink:0;margin-right:10px;transition:all .2s ease;transform:translateY(-6px)}.document-item__checkbox{transform:translateY(1px)}.document-item__checkbox:hover,.convo-checkbox:hover{border-color:var(--primary-color, #3a7bd5)}.document-item__checkbox:checked,.convo-checkbox:checked{background-color:var(--primary-color, #3a7bd5);border-color:var(--primary-color, #3a7bd5)}.document-item__checkbox:checked:after,.convo-checkbox:checked:after{content:"✔";font-size:12px;color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.convo-actions{margin-left:auto;position:relative}.rename-input{flex:1 1 auto;min-width:0;margin-right:8px;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:#ffffff0f;color:inherit}.sidebar-section__item.selected{background:#ffffff0f}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.convo-checkbox.ui-checkbox--round{border-radius:50%}.convo-checkbox.ui-checkbox--round:checked:after{content:"";width:6px;height:6px;border-radius:50%;background:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ui-checkbox:focus-visible{outline:2px solid var(--primary-color, #3a7bd5);outline-offset:2px}.bulk-delete-btn{color:#e53e3e;background:transparent;border:1px solid transparent;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;transform:scale(.95);transition:opacity .2s ease,transform .2s ease,background-color .2s ease,visibility 0s linear .2s}.sidebar-section.has-selection .bulk-delete-btn{visibility:visible;opacity:1;transform:scale(1);transition:opacity .2s ease,transform .2s ease}.bulk-delete-btn:hover{background-color:#e53e3e1a}.bulk-delete-btn:disabled{opacity:.5;cursor:not-allowed}.sidebar-section__item.selected{background-color:#e53e3e0f}.convo-actions .edit-btn:hover i{color:var(--primary-color, #3a7bd5)}.theme-toggle-container{position:fixed;bottom:1rem;left:50%;transform:translate(-50%);z-index:1100}@media (max-width: 768px){.theme-toggle-container{bottom:.8rem}}@media (max-width: 480px){.theme-toggle-container{bottom:.5rem}}.theme-toggle-container input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--toggle-width);height:var(--toggle-height);background:var(--toggle-bg-dark);border-radius:25px;position:relative;cursor:pointer;transition:background .3s ease,box-shadow .3s ease;box-shadow:0 2px 6px #0003}.theme-toggle-container input[type=checkbox]:after{content:"";position:absolute;width:var(--indicator-size);height:var(--indicator-size);top:calc((var(--toggle-height) - var(--indicator-size)) / 2);left:calc((var(--toggle-height) - var(--indicator-size)) / 2);background:var(--toggle-indicator-dark);border-radius:50%;transition:transform .3s ease,box-shadow .3s ease;box-shadow:0 2px 4px #0000004d}.theme-toggle-container input[type=checkbox]:checked{background:var(--toggle-bg-active-dark);box-shadow:0 0 12px #3a7bd599}.theme-toggle-container input[type=checkbox]:checked:after{transform:translate(calc(var(--toggle-width) - var(--toggle-height)))}.theme-light .theme-toggle-container input[type=checkbox]{background:var(--toggle-bg-light)}.theme-light .theme-toggle-container input[type=checkbox]:after{background:var(--toggle-indicator-light)}.theme-light .theme-toggle-container input[type=checkbox]:checked{background:var(--toggle-bg-active-light);box-shadow:0 0 12px #3a7bd566}.custom-expander{background:var(--card-bg-light);padding:var(--expander-padding);border-radius:var(--expander-radius);box-shadow:0 6px 10px var(--shadow-light);border:1px solid transparent;margin-bottom:16px;transition:var(--expander-transition);overflow:hidden;position:relative}.theme-light .custom-expander{border:none}.theme-light .custom-expander:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--expander-radius);padding:1px;background:linear-gradient(to right,#3a7bd5,#bd93e3);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.theme-dark .custom-expander{border:1px solid var(--active-border-highlight);background:var(--card-bg-dark);box-shadow:0 6px 10px var(--card-shadow-dark);border-radius:var(--expander-radius)}.custom-expander:hover{transform:translateY(-4px);box-shadow:0 8px 16px var(--shadow-hover-light)}.theme-dark .custom-expander:hover{box-shadow:0 8px 16px var(--shadow-hover-dark)}.custom-expander .expander-summary{font-family:var(--font-family);font-size:1rem;font-weight:600;color:var(--highlight-color);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;outline:none}.theme-dark .custom-expander .expander-summary{color:var(--primary-color)}.custom-expander .expander-summary .expander-chevron{color:var(--icon-color-primary);transition:transform .3s ease}.custom-expander .expander-summary .expander-chevron.rotated{transform:rotate(180deg)}.custom-expander .expander-content{color:var(--body-text-color);font-size:.9rem;line-height:1.6;max-height:0;opacity:0;overflow:hidden;transition:max-height .4s ease,opacity .3s ease;padding-top:0;padding-right:8px}.custom-expander .expander-content.visible{max-height:500px;opacity:1;overflow-y:auto;padding-top:12px}.custom-expander .expander-content::-webkit-scrollbar{width:8px}.custom-expander .expander-content::-webkit-scrollbar-track{background:transparent}.custom-expander .expander-content::-webkit-scrollbar-thumb{background-color:var(--highlight-color);border-radius:4px}.custom-expander .expander-content a{color:var(--link-color);text-decoration:none;transition:color .3s ease,background-color .3s ease;padding:2px 4px;border-radius:4px}.custom-expander .expander-content a:hover{color:var(--link-hover-color);background-color:var(--link-hover-bg)}.case-info-placeholder,.case-info{padding:20px;color:var(--text-gray)}.case-info h3{font-size:1.2rem;color:var(--highlight-color);display:flex;align-items:center;gap:10px}.case-info-placeholder .fa-folder-open{font-size:3rem;margin-bottom:15px;color:var(--highlight-color)}.sidebar-right-toggle{position:fixed;top:1rem;right:0;z-index:3500;background-color:transparent;cursor:pointer;transition:color .3s ease,right .35s ease;box-shadow:none;border-radius:0;color:#fff;padding:.5rem;border:none;outline:none}.theme-light .avatar-toggle-icon{color:#fff;background-color:gold;width:calc(var(--indicator-size) * 2);height:calc(var(--indicator-size) * 2);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:transform .3s ease,background-color .3s ease;z-index:100001}.theme-light .avatar-toggle-icon:hover{background-color:#ffdf40;z-index:100001}.theme-dark .avatar-toggle-icon{color:#fff;background-color:#b08c00;width:calc(var(--indicator-size) * 2);height:calc(var(--indicator-size) * 2);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:transform .3s ease,background-color .3s ease;z-index:100001}.theme-dark .avatar-toggle-icon:hover{background-color:#c59d00}.sidebar-right-toggle.open{right:calc(50% - 1.25rem);z-index:100001}.sidebar-right-toggle.open .avatar-toggle-icon{transform:rotate(-180deg)}.case-info-header{display:flex;align-items:center;justify-content:space-between}.case-badge{font-weight:600;padding:.1rem .4rem;border-radius:6px;background:var(--panel-bg, rgba(255, 255, 255, .08))}.case-info-actions{display:inline-flex;gap:.4rem;color:var(--highlight-color);transform:translateY(10px)}.icon-btn{border:none;background:transparent;color:var(--icon-color-primary);cursor:pointer;padding:.25rem .4rem;border-radius:6px}.icon-btn:hover{background:#ffffff14}.icon-btn.danger:hover{background:#dc143c26}.case-status-hint{margin:.25rem 0 .5rem;font-size:.85rem;opacity:.8}.icon{color:var(--icon-color);transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.icon-hover:hover{color:var(--icon-color-hover);transform:scale(1.15);filter:drop-shadow(0 0 6px var(--icon-color-hover))}.icon-primary{background:linear-gradient(135deg,#3a7bd5,#bd93e3);-webkit-background-clip:text;background-clip:text;color:transparent}.icon-primary.icon-hover:hover{filter:drop-shadow(0 0 8px rgba(58,123,213,.6));transform:scale(1.2)}.icon-secondary{color:var(--icon-color-secondary)}.icon-secondary.icon-hover:hover{color:var(--icon-color-secondary-hover);transform:scale(1.15);filter:drop-shadow(0 0 6px var(--icon-color-secondary-hover))}.clear-chat-btn:hover{background-color:#6cbcff1a;border-radius:50%;transition:background-color .3s ease}.icon svg{width:1.25rem;height:1.25rem;fill:currentColor;transition:fill .3s ease}@media (max-width: 768px){.icon svg{width:1.1rem;height:1.1rem}}@media (max-width: 480px){.icon svg{width:1rem;height:1rem}}.icon-hover:hover svg{fill:currentColor}.theme-dark .icon{color:var(--icon-color)}.theme-dark .icon-hover:hover{color:var(--icon-color-hover)}.theme-light .icon{color:var(--icon-color)}.theme-light .icon-hover:hover{color:var(--icon-color-hover)}.icon{padding:.25rem}@media (max-width: 768px){.icon{padding:.2rem}}@media (max-width: 480px){.icon{padding:.15rem}}.icon-hover:hover{transform:scale(1.1)}@media (max-width: 480px){.icon-hover:hover{transform:scale(1.05)}}.common-logo{width:20rem;height:15rem;aspect-ratio:5 / 1;margin:0 auto;background-size:contain;background-repeat:no-repeat;background-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;-webkit-mask-position:center;mask-repeat:no-repeat;mask-size:contain;mask-position:center;transition:transform .4s ease,filter .3s ease;transform-style:preserve-3d;cursor:pointer;animation:float 4s ease-in-out infinite}.sidebar-logo{width:7.5rem;height:7.5rem;margin:.1rem auto;background-size:contain;background-repeat:no-repeat;background-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;-webkit-mask-position:center;mask-repeat:no-repeat;mask-size:contain;mask-position:center;transition:transform .3s ease,filter .3s ease;cursor:pointer}.app-logo{transition:transform var(--transition-speed) ease,opacity var(--transition-speed) ease}.app-logo:hover{transform:scale(1.1);opacity:.8}.common-logo,.sidebar-logo{transition:transform .3s ease,filter .3s ease;cursor:pointer}.common-logo:hover{transform:perspective(500px) rotateY(20deg) rotateX(10deg) scale(1.08);filter:drop-shadow(0 0 15px rgba(255,255,255,.6)) brightness(1.3);animation:pulseGlow 1.5s infinite}.sidebar-logo:hover{transform:scale(1.12) rotate(-3deg);filter:drop-shadow(0 0 10px rgba(255,255,255,.5)) brightness(1.2);animation:pulseGlow 1.5s infinite}@media (max-width: 768px){.common-logo{width:15rem;height:15rem;margin-bottom:1rem}.sidebar-logo{width:6rem;height:6rem}}@media (max-width: 480px){.common-logo{width:12rem;height:12rem;margin-bottom:.8rem}.sidebar-logo{width:5rem;height:5rem}}@keyframes shine{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes pulseGlow{0%,to{filter:drop-shadow(0 0 10px rgba(108,188,255,.5))}50%{filter:drop-shadow(0 0 20px rgba(108,188,255,.9))}}.effect-hover-float:hover{transform:translateY(-8px);transition:transform .3s ease}.effect-hover-glow:hover{filter:drop-shadow(0 0 10px rgba(255,255,255,.8));transition:filter .3s ease}.effect-hover-color:hover{background-image:linear-gradient(45deg,#8a2be2,#1e90ff);transition:background .3s ease}.effect-hover-3d{transition:transform .3s ease;transform-style:preserve-3d}.effect-hover-3d:hover{transform:perspective(600px) rotateY(15deg) rotateX(10deg)}.effect-hover-brightness:hover{filter:brightness(1.3);transition:filter .3s ease}code,pre code{padding:8px 12px;border-radius:6px;font-family:Fira Code,monospace;font-size:.85rem;line-height:1.5;display:block;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;border-width:1px;border-style:solid;margin-bottom:10px}:root{--login-font: "Inter", sans-serif;--login-accent: #7c3aed;--login-accent-rgb: 124, 58, 237;--login-radius: 16px;--login-blur: 15px;--login-fast: .25s;--login-card-width: 360px;--login-card-padding: 40px;--login-bg-gradient: linear-gradient(135deg, #eef2ff, #e0e7ff);--login-text: #0b0f19;--login-text-muted: #4b5563;--login-card-bg: rgba(255, 255, 255, .65);--login-card-border: rgba(0, 0, 0, .08);--login-shadow-lg: 0 8px 25px rgba(0, 0, 0, .15);--login-shadow-xl: 0 12px 30px rgba(0, 0, 0, .22);--login-glow-hover: rgba(var(--login-accent-rgb), .3);--login-toggle-bg: rgba(var(--login-accent-rgb), .15);--login-toggle-fg: rgba(0, 0, 0, .75);--login-toggle-border: rgba(0, 0, 0, .12);--login-button-bg: linear-gradient(90deg, #2563eb, #06b6d4);--login-button-shadow-hover: 0 0 18px rgba(37, 99, 235, .35)}html.theme-dark{--login-bg-gradient: linear-gradient(135deg, #0b0f19, #1a2238);--login-text: #f5f7ff;--login-text-muted: #bbbbbb;--login-card-bg: rgba(18, 20, 32, .55);--login-card-border: rgba(255, 255, 255, .1);--login-shadow-lg: 0 8px 25px rgba(0, 0, 0, .45);--login-shadow-xl: 0 12px 30px rgba(0, 0, 0, .6);--login-glow-hover: rgba(var(--login-accent-rgb), .45);--login-toggle-bg: rgba(var(--login-accent-rgb), .2);--login-toggle-fg: rgba(255, 255, 255, .85);--login-toggle-border: rgba(255, 255, 255, .2);--login-button-bg: linear-gradient(90deg, #3a7bd5, #00d2ff);--login-button-shadow-hover: 0 0 20px rgba(58, 123, 213, .7)}html,body{margin:0;padding:0;font-family:var(--login-font);min-height:100vh;background-image:var(--login-bg-gradient);color:var(--login-text)}.login-page{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.logo-container-outside{margin-bottom:50px;display:flex;justify-content:center;align-items:center}.login-logo{display:block;margin:0 auto;width:min(92vw,360px);aspect-ratio:5 / 1;animation:logoFloat 3s ease-in-out infinite;transition:filter var(--login-fast) ease,transform var(--login-fast) ease}.logo-glow-dark{filter:drop-shadow(0 10px 24px rgba(0,0,0,.45)) drop-shadow(0 0 28px rgba(var(--login-accent-rgb),.35))}.logo-glow-light{filter:drop-shadow(0 10px 18px rgba(0,0,0,.2)) drop-shadow(0 0 24px rgba(var(--login-accent-rgb),.4))}.login-logo:hover{transform:translateY(-2px) scale(1.01)}.logo-large-gradient{width:min(92vw,360px);height:auto;animation:logoFloat 3s ease-in-out infinite;background:linear-gradient(to right,#1e90ff,#8a2be2);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 10px rgba(0,0,0,.3))}.login-card{position:relative;width:min(92vw,var(--login-card-width));padding:var(--login-card-padding);border-radius:var(--login-radius);background:var(--login-card-bg);border:1px solid var(--login-card-border);-webkit-backdrop-filter:blur(var(--login-blur));backdrop-filter:blur(var(--login-blur));box-shadow:var(--login-shadow-lg);color:var(--login-text);text-align:center;animation:fadeInUp .8s ease;transition:box-shadow var(--login-fast) ease,transform var(--login-fast) ease}.login-card:hover{transform:translateY(-5px);box-shadow:var(--login-shadow-xl),0 0 24px var(--login-glow-hover)}.login-title{font-size:1.8rem;font-weight:700;margin:0 0 10px}.login-subtitle{font-size:.95rem;color:var(--login-text-muted);margin:0 0 30px}.login-button{width:100%;padding:12px;font-size:1rem;background:var(--login-button-bg);color:#fff;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform var(--login-fast) ease,box-shadow var(--login-fast) ease,opacity var(--login-fast) ease}.login-button i{font-size:1.2rem}.login-button:hover{transform:translateY(-3px);box-shadow:var(--login-button-shadow-hover)}.login-button:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--login-accent-rgb),.35),var(--login-button-shadow-hover)}.login-footer{font-size:.8rem;color:var(--login-text-muted);margin-top:30px}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;cursor:pointer;transition:transform var(--login-fast) ease,background-color var(--login-fast) ease,color var(--login-fast) ease,border-color var(--login-fast) ease}.theme-toggle .theme-icon{font-size:18px;line-height:1}.theme-toggle.card-toggle{position:absolute;top:14px;right:14px;width:36px;height:36px;color:var(--login-accent);background-color:transparent;border:1px solid transparent;border-radius:50%;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-shadow:none;z-index:2}.theme-toggle.card-toggle:hover{background-color:rgba(var(--login-accent-rgb),.15);color:var(--login-accent);transform:scale(1.07);border-color:transparent}.theme-toggle.card-toggle:active{transform:scale(.98)}.theme-toggle.card-toggle:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--login-accent-rgb),.35)}.theme-toggle.login-toggle{display:none!important}@media (max-width: 480px){.theme-toggle.login-toggle{display:none}}.effect-hover-float{transition:transform .35s ease}.effect-hover-float:hover{transform:translateY(-6px)}.effect-hover-glow{transition:filter .35s ease}.effect-hover-glow:hover{filter:drop-shadow(0 12px 28px rgba(0,0,0,.45)) drop-shadow(0 0 36px rgba(var(--login-accent-rgb),.55))}.effect-hover-3d{transition:transform .35s cubic-bezier(.2,.8,.2,1);transform-style:preserve-3d}.effect-hover-3d:hover{transform:rotateX(4deg) rotateY(-4deg) translateY(-2px)}.effect-hover-brightness{transition:filter .35s ease}.effect-hover-brightness:hover{filter:brightness(1.08)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (prefers-reduced-motion: reduce){.login-logo,.login-card,.theme-toggle{animation:none!important;transition:background-color var(--login-fast) ease,color var(--login-fast) ease,border-color var(--login-fast) ease,box-shadow var(--login-fast) ease}.login-button{transition:background-color var(--login-fast) ease,box-shadow var(--login-fast) ease}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes logoFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@media print{@page{size:A4 portrait;margin:2cm}html,body{height:auto;overflow:visible!important}body{margin:0;padding:0;background:#fff;font-family:Arial,sans-serif}.draft-canvas-editor{width:100%;margin:0;padding:0;box-shadow:none!important;border:none!important;background:none!important;font-size:12pt;line-height:1.5;color:#000;height:auto!important;min-height:unset!important;overflow:visible!important;display:block!important;position:static!important}p,div,li,ul,ol{page-break-inside:avoid;break-inside:avoid}h1,h2,h3,h4{page-break-after:avoid}.sidebar,.toolbar,.header,.footer,.canvas-toolbox-overlay,.chat-input-container,.drafting-chat-input-container,button{display:none!important}ul,ol{margin-left:1cm}ul ul,ol ol{margin-left:1.5cm}*{box-shadow:none!important;outline:none!important}}
