*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.hidden{display:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0f172a}*{box-sizing:border-box}html,body,#root{min-height:100%;width:100%;margin:0}body{min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}@media(max-width:640px){header{flex-wrap:wrap;height:auto!important;min-height:64px;gap:10px;padding-top:10px;padding-bottom:10px}}:root{color:#e2e8f0;background:#0b1020;font-synthesis:none;text-rendering:optimizeLegibility}body{background:#0b1020;color:#e2e8f0}button,input,textarea,select{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #818cf8;outline-offset:2px}.app-shell{display:flex;width:100%;height:100dvh;overflow:hidden;background:#0b1020}.sidebar{position:relative;z-index:30;display:flex;flex:0 0 264px;flex-direction:column;min-height:0;overflow-y:auto;padding:18px 14px 14px;border-right:1px solid #1e293b;background:#101729}.brand{display:flex;align-items:center;gap:10px;height:42px;padding:0 8px;color:#f8fafc;font-size:15px;font-weight:750;letter-spacing:.04em}.brand strong{color:#a5b4fc}.brand-mark{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#312e81;color:#c7d2fe}.new-chat-button,.nav-item,.icon-button,.primary-button,.send-button{border:0}.new-chat-button{display:flex;align-items:center;justify-content:center;gap:9px;margin:22px 2px 20px;min-height:42px;border:1px solid #334155;border-radius:10px;background:#182238;color:#e2e8f0;font-size:13px;font-weight:600}.new-chat-button:hover,.nav-item:hover{background:#202c43}.navigation{display:grid;flex:0 0 auto;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:0 11px;border-radius:9px;background:transparent;color:#aab6ca;text-align:left;font-size:13px}.nav-active{background:#25265a;color:#e0e7ff}.sidebar-bottom{display:flex;align-items:center;gap:9px;margin-top:auto;padding:14px 9px 5px;color:#94a3b8;font-size:11px}.connection-dot{width:8px;height:8px;border-radius:50%;background:#64748b}.connection-dot.connected{background:#34d399}.connection-dot.disconnected{background:#fb7185}.main-panel{display:flex;min-width:0;flex:1;flex-direction:column;overflow:hidden}.topbar{display:flex;flex:0 0 66px;align-items:center;gap:13px;padding:0 24px;border-bottom:1px solid #1e293b;background:#101729d1}.topbar-title{color:#f1f5f9;font-size:13px;font-weight:700;letter-spacing:.035em}.topbar-subtitle{margin-top:3px;color:#94a3b8;font-size:11px}.icon-button{display:inline-grid;flex:0 0 auto;width:34px;height:34px;place-items:center;border-radius:8px;background:transparent;color:#94a3b8}.icon-button:hover{background:#1e293b;color:#f1f5f9}.menu-button{display:none}.mobile-close{display:none;margin-left:auto}.subject-picker{display:flex;align-items:center;gap:8px;margin-left:auto;color:#94a3b8;font-size:11px}.subject-picker select,.search-form input,.group-input-panel input,.group-input-panel textarea{border:1px solid #334155;border-radius:9px;background:#0e1628;color:#e2e8f0}.subject-picker select{padding:8px 10px;font-size:12px}.chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.messages-area{width:min(100%,900px);flex:1;overflow:auto;margin:0 auto;padding:28px 28px 20px}.message-row{display:flex;gap:13px;margin:0 auto 25px}.message-avatar{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border:1px solid #334155;border-radius:10px;background:#172238;color:#a5b4fc;font-size:10px;font-weight:650}.message-row.user .message-avatar{border-color:#3730a3;background:#312e81;color:#e0e7ff}.message-content{min-width:0;flex:1}.message-heading{display:flex;align-items:center;gap:10px;min-height:28px;color:#cbd5e1;font-size:12px}.message-heading span{color:#818cf8;font-size:10px}.search-warning{margin:10px 0;color:#fbbf24;font-size:11px;line-height:1.5}.message-sources{display:grid;gap:7px;margin-top:13px;font-size:11px}.message-sources>strong{color:#94a3b8;font-size:10px;text-transform:uppercase}.message-sources a{display:flex;align-items:flex-start;gap:7px;color:#c7d2fe;text-decoration:none}.message-sources a:hover{color:#fff;text-decoration:underline}.source-badge{flex:0 0 auto;color:#6ee7b7}.source-badge.other{color:#fbbf24}.markdown-body{overflow-wrap:anywhere;color:#d7deea;font-size:14px;line-height:1.72}.markdown-body p{margin:7px 0 12px}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:18px 0 8px;color:#f1f5f9}.markdown-body ul,.markdown-body ol{padding-left:22px}.markdown-body li{margin:4px 0}.markdown-body blockquote{margin:12px 0;padding-left:13px;border-left:3px solid #6366f1;color:#aab6ca}.markdown-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.markdown-body th,.markdown-body td{padding:7px 10px;border:1px solid #334155;text-align:left}.markdown-body th{background:#172238;color:#f1f5f9}.markdown-body pre{max-width:100%;overflow-x:auto;padding:13px;border:1px solid #29364c;border-radius:9px;background:#080d18}.markdown-body code{padding:2px 4px;border-radius:4px;background:#172238;color:#c4b5fd}.markdown-body pre code{padding:0;background:transparent;color:#e2e8f0}.markdown-body a{color:#a5b4fc;text-decoration:underline}.composer-wrap{width:min(100%,900px);margin:0 auto;padding:8px 28px 15px}.composer{display:flex;align-items:flex-end;gap:10px;padding:9px;border:1px solid #334155;border-radius:14px;background:#111a2d;box-shadow:0 12px 32px #0003}.composer textarea{min-height:40px;max-height:180px;flex:1;resize:vertical;padding:10px 9px;border:0;outline:0;background:transparent;color:#e2e8f0;font-size:13px}.composer textarea::-moz-placeholder,input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b}.composer textarea::placeholder,input::placeholder,textarea::placeholder{color:#64748b}.send-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:0 14px;border-radius:9px;background:#4f46e5;color:#fff;font-size:12px;font-weight:650}.send-button{width:40px;padding:0}.send-button:hover,.primary-button:hover:not(:disabled){background:#6366f1}.send-button:disabled,.primary-button:disabled{cursor:not-allowed;opacity:.48}.privacy-note{margin:9px 0 0;color:#64748b;text-align:center;font-size:10px}.busy-line,.empty-state{display:flex;align-items:center;justify-content:center;gap:9px;min-height:100px;color:#94a3b8;font-size:13px}.page-content{width:min(100%,960px);flex:1;overflow:auto;margin:0 auto;padding:35px 30px 45px}.page-heading{display:flex;justify-content:space-between;margin-bottom:22px}.page-heading h1{margin:0;color:#f8fafc;font-size:23px;letter-spacing:-.025em}.page-heading p{max-width:650px;margin:8px 0 0;color:#94a3b8;font-size:13px;line-height:1.6}.panel,.result-card,.document-list,.review-card{border:1px solid #253149;border-radius:12px;background:#111a2d}.upload-panel{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:17px}.muted{color:#94a3b8;font-size:11px}.success-message,.inline-error{display:flex;align-items:flex-start;gap:8px;width:100%;font-size:12px;line-height:1.5}.success-message{color:#6ee7b7}.inline-error{margin:9px 0;color:#fda4af}.inline-error svg,.success-message svg{flex:0 0 auto;margin-top:1px}.section-title{display:flex;align-items:center;gap:9px;margin:26px 0 11px}.section-title h2{margin:0;color:#e2e8f0;font-size:14px}.section-title>span{color:#94a3b8;font-size:11px}.document-list{overflow:hidden}.document-row{display:flex;align-items:center;gap:12px;min-height:69px;padding:12px 14px;border-bottom:1px solid #253149}.document-row:last-child{border-bottom:0}.document-icon{flex:0 0 auto;color:#a5b4fc}.document-info{display:grid;min-width:0;flex:1;gap:5px}.document-info strong{overflow:hidden;color:#e2e8f0;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.document-info span{color:#94a3b8;font-size:10px}.indexed-label{color:#6ee7b7;font-size:10px;white-space:nowrap}.danger-button:hover{color:#fb7185}.search-categories{display:flex;gap:8px;margin:0 0 12px}.search-categories button,.text-button{border:1px solid #334155;border-radius:9px;background:#111b30;color:#cbd5e1;font-size:11px;font-weight:600;padding:9px 12px}.search-categories button.active{border-color:#6366f1;background:#25265a;color:#e0e7ff}.search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-bottom:19px}.search-form>input{min-width:0;min-height:43px;padding:0 13px;font-size:13px}.search-options{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.search-options label{display:grid;gap:5px;color:#94a3b8;font-size:10px}.search-options input,.search-options select{width:100%;min-width:0;min-height:38px;padding:0 10px;border:1px solid #334155;border-radius:9px;background:#0e1628;color:#e2e8f0;font-size:11px}.search-retrieved{margin:-7px 0 14px;color:#94a3b8;font-size:11px}.result-list{display:grid;gap:10px}.result-card{padding:16px}.result-meta{display:flex;justify-content:space-between;gap:10px;color:#a5b4fc;font-size:10px}.result-meta span:last-child{color:#94a3b8}.result-card h2{margin:10px 0 6px;color:#f1f5f9;font-size:14px}.result-card p{margin:6px 0;color:#b7c3d6;font-size:12px;line-height:1.6}.result-card a{display:inline-block;max-width:100%;overflow-wrap:anywhere;margin-top:6px;color:#a5b4fc;font-size:11px}@media(max-width:640px){.search-options{grid-template-columns:repeat(2,minmax(0,1fr))}}.education-library{min-width:0}.network-failure{display:flex;align-items:center;gap:9px;margin:10px 18px 0;padding:10px 12px;border:1px solid #7f1d1d;border-radius:9px;background:#35151d;color:#fecaca;font-size:11px}.network-failure span{flex:1}.network-failure .text-button{min-height:31px;padding:6px 9px}.education-library .page-heading{align-items:flex-start}.interface-language{display:grid;flex:0 0 125px;gap:5px;color:#94a3b8;font-size:10px}.interface-language select,.education-form input,.education-form select{min-width:0;min-height:39px;padding:0 10px;border:1px solid #334155;border-radius:9px;background:#0e1628;color:#e2e8f0;font-size:11px}.education-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.education-toolbar button,.subject-catalog button{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:8px 11px;border:1px solid #334155;border-radius:9px;background:#111b30;color:#cbd5e1;font-size:11px}.education-toolbar button.active{border-color:#6366f1;background:#25265a;color:#e0e7ff}.education-toolbar button span{color:#a5b4fc}.education-form{display:grid;gap:11px;margin-bottom:13px;padding:14px;border:1px solid #253149;border-radius:12px;background:#101729}.education-query,.education-filters label{display:grid;min-width:0;gap:5px;color:#94a3b8;font-size:10px}.education-query input{width:100%}.education-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.education-filters input,.education-filters select{width:100%}.education-form>button{justify-self:start}.subject-catalog{display:grid;gap:9px;margin:14px 0;padding:13px;border:1px solid #253149;border-radius:11px;background:#0f172a}.subject-catalog strong{color:#cbd5e1;font-size:11px}.subject-catalog>div{display:flex;flex-wrap:wrap;gap:7px}.subject-catalog button:hover,.education-toolbar button:hover{border-color:#6366f1}.education-results{display:grid;gap:10px}.education-card{min-width:0;padding:15px;border:1px solid #253149;border-radius:12px;background:#111b30}.education-card h2{margin:10px 0 6px;color:#f1f5f9;font-size:14px;overflow-wrap:anywhere}.education-card p{margin:6px 0 11px;color:#b7c3d6;font-size:12px;line-height:1.6}.education-actions{display:flex;flex-wrap:wrap;gap:8px 13px}.education-actions a,.education-actions button,.pdf-preview>a{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#a5b4fc;font-size:11px;text-decoration:none}.education-actions button:hover,.education-actions a:hover,.pdf-preview>a:hover{color:#c7d2fe;text-decoration:underline}.education-notice{margin-top:18px;line-height:1.6}.pdf-preview-backdrop{position:fixed;z-index:80;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:16px;background:#020617dd}.pdf-preview{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:9px;width:min(100%,980px);height:min(90dvh,850px);padding:12px;border:1px solid #334155;border-radius:13px;background:#0b1020}.pdf-preview header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.pdf-preview header strong{overflow:hidden;color:#e2e8f0;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.pdf-preview p{margin:0;color:#94a3b8;font-size:10px}.pdf-preview iframe{width:100%;height:100%;min-height:0;border:1px solid #253149;border-radius:8px;background:#fff}.pdf-preview>a{justify-self:start}@media(max-width:640px){.education-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.education-library .page-heading{flex-direction:column}.interface-language{width:100%;flex:auto}.pdf-preview-backdrop{padding:7px}.pdf-preview{width:100%;height:94dvh;padding:9px}}.group-input-panel{display:grid;gap:9px;padding:17px}.group-input-panel label{margin-top:3px;color:#cbd5e1;font-size:11px;font-weight:600}.group-input-panel input,.group-input-panel textarea{width:100%;padding:10px 11px;font-size:12px;line-height:1.55}.group-input-panel textarea{resize:vertical}.group-input-panel .primary-button{justify-self:start;margin-top:3px}.review-list{display:grid;gap:9px}.review-list .section-title{margin-bottom:2px}.review-card{display:flex;align-items:flex-start;gap:11px;padding:13px;cursor:pointer}.review-card input{margin-top:3px;accent-color:#6366f1}.review-copy{display:grid;gap:5px;color:#cbd5e1;font-size:12px;line-height:1.5}.review-copy strong{color:#f1f5f9}.review-meta{color:#a5b4fc;font-size:10px;text-transform:capitalize}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sidebar-backdrop{display:none}@media(max-width:760px){.sidebar{position:fixed;inset:0 auto 0 0;width:min(82vw,290px);transform:translate(-105%);transition:transform .2s ease;box-shadow:15px 0 45px #0005}.sidebar.sidebar-open{transform:translate(0)}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:block;border:0;background:#020617aa}.mobile-close,.menu-button{display:inline-grid}.topbar{flex-basis:60px;padding:0 13px}.topbar-title{font-size:11px}.topbar-subtitle{font-size:10px}.subject-picker{gap:5px;font-size:10px}.subject-picker select{max-width:105px;padding:7px;font-size:10px}.messages-area{padding:20px 15px 12px}.composer-wrap{padding:7px 12px 10px}.page-content{padding:25px 15px 35px}.page-heading h1{font-size:20px}}@media(max-width:430px){.subject-picker span{display:none}.message-row{gap:9px}.message-avatar{flex-basis:27px;width:27px;height:27px}.markdown-body{font-size:13px}.document-row{gap:8px;padding:11px 9px}.indexed-label{display:none}.upload-panel{align-items:flex-start}.search-form{grid-template-columns:minmax(0,1fr)}.search-form>input,.search-form>button{width:100%}.search-options{grid-template-columns:repeat(2,minmax(0,1fr))}}.message-heading time{margin-left:auto;color:#64748b;font-size:10px;white-space:nowrap}.message-action{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid #29364c;border-radius:6px;background:#111a2c;color:#aab6ca;font-size:10px}.message-action:hover{border-color:#6366f1;color:#e0e7ff}.message-action:disabled{cursor:not-allowed;opacity:.5}.history-page,.memory-page{display:grid;align-content:start;gap:16px}.history-page .page-heading,.memory-page .page-heading{margin-bottom:0}.history-controls{display:flex;align-items:center;gap:12px}.history-search{display:flex;min-width:0;flex:1;align-items:center;gap:9px;padding:0 12px;border:1px solid #334155;border-radius:9px;background:#0e1628;color:#94a3b8}.history-search input{width:100%;min-width:0;height:40px;border:0;outline:0;background:transparent;color:#e2e8f0;font-size:12px}.history-sort{display:flex;align-items:center;gap:8px;color:#94a3b8;font-size:11px}.history-sort select{padding:9px;border:1px solid #334155;border-radius:8px;background:#0e1628;color:#e2e8f0;font-size:11px}.history-list,.memory-list{display:grid;gap:9px}.history-card{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 14px;border:1px solid #26334a;border-radius:10px;background:#111a2b}.history-card-active{border-color:#5554c7;background:#171d37}.history-open{display:grid;min-width:0;flex:1;gap:6px;padding:10px 0;border:0;background:transparent;color:#cbd5e1;text-align:left}.history-open strong,.history-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-open strong{color:#f1f5f9;font-size:13px}.history-open span{color:#94a3b8;font-size:11px}.history-open small{display:flex;align-items:center;gap:5px;color:#64748b;font-size:10px}.history-actions{display:flex}.history-delete:hover,.danger-text:hover{color:#fda4af}.history-empty{padding:18px;text-align:center}.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:-moz-fit-content;width:fit-content;min-height:36px;padding:8px 11px;border:1px solid #7f1d35;border-radius:8px;background:#3a1726;color:#fecdd3;font-size:11px}.danger-button:disabled{cursor:not-allowed;opacity:.5}.memory-toggle-panel,.memory-form-panel{padding:17px}.memory-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px}.memory-toggle>span{display:grid;gap:6px}.memory-toggle strong,.memory-form-panel h2{color:#e2e8f0;font-size:13px}.memory-toggle small{color:#94a3b8;font-size:11px;line-height:1.5}.memory-toggle input{width:18px;height:18px;accent-color:#6366f1}.memory-toggle-panel .privacy-note{margin:13px 0 0}.memory-form-panel h2{margin:0 0 7px}.memory-form-panel>p{margin:0 0 12px;font-size:11px;line-height:1.5}.memory-add-form{display:grid;justify-items:start;gap:9px}.memory-add-form textarea,.memory-edit textarea{width:100%;padding:10px;border:1px solid #334155;border-radius:8px;background:#0e1628;color:#e2e8f0;font-size:12px;line-height:1.5;resize:vertical}.memory-item{display:grid;gap:7px;padding:13px;border:1px solid #26334a;border-radius:10px;background:#111a2b}.memory-item p{margin:0;color:#d7deea;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.memory-item small{color:#64748b;font-size:10px}.memory-actions{display:flex;gap:12px}.memory-actions .text-button,.memory-edit .text-button{color:#a5b4fc;font-size:11px}.memory-actions .danger-text{color:#fda4af}.memory-edit{display:grid;justify-items:start;gap:8px}@media(max-width:640px){.history-controls{align-items:stretch;flex-direction:column}.history-sort{justify-content:space-between}.message-heading{flex-wrap:wrap}.message-heading time{margin-left:0}.page-heading{align-items:flex-start}}
