:root{font-family:Helvetica,Helvetica Neue,Arial,sans-serif;--font-ui: Helvetica, "Helvetica Neue", Arial, sans-serif;--font-files: var(--font-ui);--bg: #f6f7fb;--panel-shadow: 0 2px 10px rgba(0, 102, 255, .26), 0 4px 18px rgba(0, 102, 255, .14), 0 0 0 1px rgba(0, 102, 255, .1);--text: #111827;--muted: #6b7280;--accent: #0066ff;--accent-blue: #0066ff;--app-header-control: 36px;--app-header-block: 44px;--app-header-accent: var(--accent-blue);--app-header-tint: rgba(0, 102, 255, .08);--app-header-tint-hover: rgba(0, 102, 255, .12);--app-header-tint-active: rgba(0, 102, 255, .18);--bubble-out: #0066ff;--bubble-in: #ffffff;--tab-active: #dbeafe;--stack-gap: 16px;--border: #e5e7eb;--chat-logo-width: min(232px, 56vw);--sections-bar-inset: 16px;color:var(--text);background-color:var(--bg)}*{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}*::-webkit-scrollbar{width:0;height:0;display:none}html{height:100%}body{margin:0;min-height:100%;height:100%;position:fixed;top:0;right:0;bottom:0;left:0;width:100%;overflow:hidden;background-color:var(--bg);overscroll-behavior:none;touch-action:manipulation}#root{position:relative;z-index:1;height:100%;min-height:100%;overflow:hidden}.page-root{width:100%;max-width:760px;height:var(--app-height-layout, var(--app-height-stable, 100dvh));max-height:var(--app-height-layout, var(--app-height-stable, 100dvh));min-height:0;margin:0 auto;display:flex;flex-direction:column;overflow:hidden;background:transparent;color:var(--text)}.page-content{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:2px 14px calc(88px + env(safe-area-inset-bottom,0px))}.page-content--chat{display:flex;flex-direction:column;overflow:hidden;padding:2px 14px calc(64px + env(safe-area-inset-bottom,0px))}.page-content--chat .app-header{margin-bottom:4px}.page-content--chat:has(.chat-thread) .app-header__title{font-size:15px;line-height:1.2}.page-content:has(.files-home) .app-header{margin-bottom:36px}.page-content:has(.chat-thread--home) .app-header,.page-content:has(.profile-view) .app-header{margin-bottom:4px}.page-content:has(.agent-create) .app-header,.page-content:has(.agent-details) .app-header{margin-bottom:12px}.page-content:has(.chat-manage) .app-header,.page-content:has(.files-records) .app-header,.page-content:has(.details-content:not(.agent-details)) .app-header,.page-content--chat:has(.chat-manage) .app-header{margin-bottom:30px}.mobile-header{margin-bottom:10px}.mobile-header h1{margin:0;font-size:17px;font-weight:400;line-height:1.25;color:var(--text)}.mobile-header .muted{color:var(--muted)}.mobile-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin-bottom:12px;color:#0f172a;box-shadow:var(--panel-shadow)}.mobile-card:has(.agent-create){background:transparent;border:0;padding:0;box-shadow:none}.fs-item{width:100%;border:0;background:transparent;text-align:left;padding:12px 10px;border-radius:10px;display:flex;align-items:center;gap:10px;color:#0f172a;cursor:pointer;font-family:var(--font-files);font-size:17px;font-weight:400;line-height:1.25}.fs-item:hover{background:#f8fafc}.fs-icon{width:20px;font-size:24px}.fs-icon--section{width:22px;font-size:18px;line-height:1;flex:0 0 auto;text-align:center}.back-btn{border:0;background:transparent;color:#93c5fd;font-size:15px;padding:6px 4px 12px;cursor:pointer}.mobile-card .back-btn{color:var(--accent)}.fs-item:disabled{opacity:.5;cursor:not-allowed}.details-loader{padding:20px 8px 12px;text-align:center;font-family:var(--font-files)}.details-loader-spinner{width:40px;height:40px;margin:0 auto 16px;border:3px solid #e2e8f0;border-top-color:var(--accent);border-radius:50%;animation:details-spin .9s linear infinite}@keyframes details-spin{to{transform:rotate(360deg)}}.details-loader-title{margin:0 0 6px;font-size:17px;font-weight:600;color:#0f172a}.details-loader-record{margin:0 0 10px;font-size:15px}.details-loader-hint{margin:0 0 8px;font-size:14px;line-height:1.45}.details-loader-timer{margin:0;font-size:13px;font-variant-numeric:tabular-nums}.details-content{font-family:var(--font-files)}.details-content h2{margin-top:0;margin-bottom:12px;font-size:20px}.report-block{margin-bottom:18px}.report-block h3{margin:0 0 8px;color:#334155;font-size:14px;font-weight:600}.metrics-table-wrap{overflow-x:auto;margin-bottom:12px}.metrics-table{width:100%;border-collapse:collapse;margin-bottom:8px}.metrics-table--report th,.metrics-table--report td{padding:10px 8px;vertical-align:top}.metrics-table--report th{border-bottom:1px solid #e2e8f0}.metrics-table--report tbody tr:nth-child(2n){background:#f8fafc}.formatted-comment{margin-top:4px;line-height:1.55;color:#334155}.formatted-comment-heading{margin:0 0 8px;font-size:18px;font-weight:600}.formatted-comment-subheading{margin:0 0 6px;font-size:15px;font-weight:600}.formatted-comment-heading3{margin:10px 0 6px;font-size:15px;font-weight:600;line-height:1.35;color:#334155}.formatted-comment-paragraph{margin:0 0 12px}.formatted-comment-list{margin:0 0 12px;padding-left:20px}.meta-line{margin:4px 0;color:#334155}.muted{color:#64748b}.error-box{border:1px solid #fecaca;color:#991b1b;background:#fef2f2;border-radius:10px;padding:10px;margin:6px 0 12px}.telegram-gate{display:flex;align-items:center;justify-content:center;padding:24px 20px;text-align:center}.telegram-gate__panel{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:360px}.telegram-gate__text{margin:0;font-size:16px;line-height:1.45;color:var(--text)}.telegram-gate__text--muted{color:var(--muted)}.telegram-gate__link{color:var(--accent-blue);font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:3px}.success-box{border:1px solid #bbf7d0;color:#166534;background:#f0fdf4;border-radius:10px;padding:10px;margin:6px 0 12px}.metrics-row--selectable{cursor:pointer}.metrics-row--selectable:hover{background:#eff6ff}.record-entry-view{font-family:var(--font-files)}.record-entry-view .back-btn{margin-bottom:8px}.note-entry__head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin-bottom:8px}.note-entry__date{margin:0;font-size:14px;font-weight:600;color:#64748b}.metric-edit-input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font-size:15px;background:#fff}.metric-edit-input:disabled{opacity:.6;background:#f8fafc}.note-edit-textarea{width:100%;min-height:200px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.5;font-family:inherit;resize:vertical;background:#fff}.note-edit-textarea--auto{min-height:0;resize:none;overflow:hidden;field-sizing:content}.note-edit-textarea:disabled{opacity:.6;background:#f8fafc}.note-entries{display:flex;flex-direction:column;gap:20px}.note-entry__title{margin:0 0 12px;font-size:17px;font-weight:400;line-height:1.25;color:var(--text)}.note-entry__field{display:block;margin:0 0 10px}.note-edit-input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.5;font-family:inherit;color:var(--text);background:#fff}.note-edit-input:disabled{opacity:.6;background:#f8fafc}.record-entry-actions{display:flex;gap:10px;margin-top:16px}.btn-update,.btn-delete{flex:1;border:0;border-radius:10px;padding:12px 16px;font-size:15px;font-weight:600;cursor:pointer}.btn-update{background:var(--accent);color:#fff}.btn-update:disabled{opacity:.6;cursor:not-allowed}.btn-delete{background:#dc2626;color:#fff}.btn-delete:disabled{opacity:.6;cursor:not-allowed}.digest-meta{margin:0 0 12px;font-size:13px;color:#64748b}.knowledge-record-details .note-entry__head,.digest-details .note-entry__head{min-height:auto;margin-bottom:4px}.knowledge-record-details .note-entry__field,.digest-details .note-entry__field{margin:0 0 12px}.knowledge-record-details .note-edit-textarea,.knowledge-record-details .note-edit-input,.knowledge-record-details .metric-edit-input,.digest-details .note-edit-textarea,.digest-details .note-edit-input,.digest-details .metric-edit-input{border:0;border-radius:0;padding:0;min-height:0;background:transparent;resize:vertical;font-size:15px;line-height:1.55;color:#334155}.knowledge-record-details .note-edit-textarea,.digest-details .note-edit-textarea{min-height:120px}.knowledge-record-details .note-edit-textarea--auto,.digest-details .note-edit-textarea--auto{min-height:0;resize:none;overflow:hidden}.knowledge-record-details .note-entries,.digest-details .note-entries{gap:24px}.knowledge-record-details .metrics-table-wrap{margin-bottom:0}.knowledge-record-details .metrics-table--report tbody tr:nth-child(2n){background:transparent}.knowledge-record-details .formatted-comment,.digest-details .formatted-comment{margin-top:0}.digest-field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.digest-field__label{font-size:13px;font-weight:600;color:#334155}.agent-create{background:transparent;box-shadow:none}.agent-details .chat-agent-setup__scroll{padding:0 2px 16px;display:flex;flex-direction:column;gap:0}.agent-details .context-setup-section{margin-bottom:20px}.agent-details .context-setup-section .chat-manage__title{font-size:17px;font-weight:400;line-height:1.25;color:var(--text)}.agent-details__title{margin:0;padding:0 2px;font-size:20px;line-height:1.25;font-weight:600}.agent-details__new-chat{margin:0;padding-left:2px}.agent-details .agent-details__title+.context-setup-panel,.agent-details .agent-details__new-chat+.context-setup-panel,.agent-details .agent-details__title+.agent-details__new-chat{margin-top:0}.agent-details .context-setup-panel+.context-setup-panel{margin-top:0}.page-content:has(.agent-details){display:flex;flex-direction:column;overflow:hidden}.page-content:has(.agent-details) .mobile-card:has(.agent-details){flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}.agent-details{flex:1;min-height:0;display:flex;flex-direction:column}.agent-details .chat-agent-setup{flex:1;min-height:0}.page-content--context .context-agent-edit{flex:1;min-height:0;display:flex;flex-direction:column}.page-content--context .context-agent-edit .agent-details{flex:1;min-height:0}.agent-create .digest-field{margin:0 0 20px;gap:0}.agent-create .agent-create__section{margin-bottom:16px}.agent-create .agent-create__section:last-of-type{margin-bottom:20px}.agent-create .chat-manage__group{box-shadow:var(--panel-shadow)}.agent-create__field{display:block;margin:0;padding:12px 16px 16px}.agent-create__input,.agent-create__textarea{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;font:inherit;font-size:17px;line-height:1.35;color:var(--text);background:#fff;resize:vertical;outline:none;box-sizing:border-box}.agent-create__input:focus,.agent-create__textarea:focus{border-color:#0066ff73}.agent-create__input:disabled,.agent-create__textarea:disabled{opacity:.7;background:#f8fafc}.agent-create__input::placeholder,.agent-create__textarea::placeholder{font-size:13px;font-weight:400;line-height:1.35;color:#6b7280;opacity:1}.panel-hint{margin:0;padding:12px 16px 10px;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280;border-bottom:1px solid #e5e5ea;display:flex;align-items:center;gap:8px}.panel-hint:before{content:"";flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:var(--accent-blue)}.digest-name-input,.digest-sources-textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font:inherit;color:#0f172a;background:#fff;resize:vertical}.digest-name-input:disabled,.digest-sources-textarea:disabled{opacity:.7;background:#f8fafc}.digest-form-error{margin:0 0 8px;color:#b91c1c;font-size:14px}.digest-sources-list__row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #e5e5ea}.digest-sources-list__row:last-child{border-bottom:0}.digest-source-fields__row{padding-bottom:10px}.digest-source-fields__add{width:100%;border:0;border-top:1px solid #e5e5ea;border-radius:0;background:transparent;color:var(--accent-blue);font-size:24px;line-height:1;font-weight:600;padding:10px 16px 14px;cursor:pointer}.digest-source-fields__add:disabled{opacity:.55;cursor:not-allowed}.digest-source-fields__add--solo{border-top:0}.digest-create-fab{position:sticky;bottom:8px;margin:16px auto 4px;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:0;border-radius:50%;background:var(--accent);color:#fff;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 8px 20px #0066ff59}.digest-create-fab:disabled{opacity:.6;cursor:not-allowed}th,td{border:0;text-align:left;padding:8px 4px}th{font-size:12px;color:#475569;font-weight:600}.note-text{margin-top:8px;line-height:1.5;white-space:pre-wrap;color:#334155}.record-summary{margin-bottom:16px}.record-item{width:100%;border:0;background:transparent;text-align:left;padding:12px 10px;border-radius:10px;display:flex;align-items:center;gap:12px;color:#0f172a;cursor:pointer;font-family:var(--font-files)}.record-item:hover{background:#f8fafc}.record-item__icon{flex:0 0 auto;font-size:24px;line-height:1}.record-item__text{display:flex;flex-direction:column;gap:2px;min-width:0}.record-item__title{font-size:17px;font-weight:600;line-height:1.25}.record-item__description{font-size:14px;font-weight:400;line-height:1.35;color:#64748b}.desktop-layout-stub{padding:24px}.app-shell{display:flex;min-height:100vh}.sidebar{width:320px;border-right:1px solid #e2e8f0;padding:16px;background:#fff}.sidebar-header{margin-bottom:12px}.section-block{margin-bottom:18px}.section-block h2{margin:0 0 6px;font-size:14px;color:#475569}.section-link{width:100%;text-align:left;border:0;background:transparent;padding:8px;border-radius:8px;margin-bottom:4px}.section-link.active{background:#dbeafe}.detail-view{flex:1;padding:24px}.app-nav-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;pointer-events:none;padding:0}html.keyboard-open .app-nav-bar{visibility:hidden;opacity:0;pointer-events:none}html.keyboard-open .page-content,html.keyboard-open .page-content--chat{padding-bottom:8px}.app-nav-bar__panel{pointer-events:auto;width:100%;max-width:760px;padding:6px 0 calc(6px + var(--tg-viewport-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));border-radius:0;background:#fff;border-top:1px solid var(--border);box-shadow:none}.app-nav-bar__list{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:0;padding:0;list-style:none;width:100%}.app-nav-bar__item{width:100%;min-width:0;border:0;background:transparent;border-radius:0;padding:4px 8px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#6b7280;cursor:pointer}.app-nav-bar__item--active{background:transparent;color:var(--accent)}.app-nav-bar__icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}.app-nav-bar__icon svg{width:24px;height:24px}.app-nav-bar__label{font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap;text-align:center}.app-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:var(--app-header-block);margin-bottom:10px;flex:0 0 auto}.app-header--branded{position:relative;min-height:var(--app-header-block);align-items:center;margin-bottom:8px}.app-header--branded .app-header__start{display:flex;align-items:center;gap:10px;flex:1;min-width:0;z-index:1}.app-header--branded:not(:has(.app-header__burger)) .app-header__start{justify-content:flex-start}.app-header--branded .app-header__logo{height:46px;max-width:200px;align-self:center}.app-header--branded .app-header__burger{flex:0 0 var(--app-header-control)}.app-header--branded .app-header__title-spacer{display:none}.app-header--branded .app-header__actions{flex:0 0 auto;gap:6px;margin-right:0;padding-right:0}.app-header--branded .app-header__pill{width:var(--app-header-control);height:var(--app-header-control);border-radius:10px;background:var(--app-header-tint);color:var(--app-header-accent);box-shadow:none;transition:background-color .15s ease,color .15s ease}.app-header--branded .app-header__pill:hover:not(:disabled):not(.app-header__pill--inactive){background:var(--app-header-tint-hover);box-shadow:none}.app-header--branded .app-header__pill:active:not(:disabled):not(.app-header__pill--inactive){background:var(--app-header-tint-active)}.app-header--branded .app-header__pill svg{width:20px;height:20px}.app-header--branded .app-header__pill--labeled{width:auto;min-width:var(--app-header-control);height:var(--app-header-control);padding:0 12px 0 10px;overflow:visible;flex-shrink:0;background:var(--app-header-tint)}.app-header--branded .app-header__pill--labeled:hover:not(:disabled):not(.app-header__pill--inactive){background:var(--app-header-tint-hover)}.app-header--branded .app-header__pill-label{color:var(--app-header-accent);font-weight:600}.app-header__brand{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0}.app-header__logo{height:46px;width:auto;max-width:200px;object-fit:contain;object-position:left center;display:block;margin:0;border-radius:0;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;background:transparent}.app-header__title{margin:0;min-width:0;flex:1;font-size:17px;font-weight:400;line-height:1.25;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}.app-header__actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding-top:0}.app-header__balance{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 10px;border:0;border-radius:999px;background:linear-gradient(135deg,#6ea8ff,#3d51ff 55%,#2f6bff);color:#fff;cursor:pointer;flex:0 0 auto;align-self:center;box-shadow:0 4px 12px #3d51ff47}.app-header__balance-shine{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.35) 45%,transparent 70%);transform:translate(-120%);animation:balance-shine 3.6s ease-in-out infinite;pointer-events:none}@keyframes balance-shine{0%,55%{transform:translate(-120%)}75%,to{transform:translate(120%)}}.app-header__balance-icon{flex:0 0 auto;color:#fff}.app-header__balance-label{position:relative;font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}.app-header__pill{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;width:var(--app-header-control, 36px);height:var(--app-header-control, 36px);padding:0;border:0;border-radius:10px;background:var(--app-header-tint);color:var(--app-header-accent);cursor:pointer;flex:0 0 auto;align-self:center;box-shadow:none;transition:background-color .15s ease,color .15s ease,opacity .15s ease}.app-header__pill:hover:not(:disabled):not(.app-header__pill--inactive){background:var(--app-header-tint-hover);box-shadow:none}.app-header__pill:active:not(:disabled):not(.app-header__pill--inactive){background:var(--app-header-tint-active)}.app-header__pill--active{background:var(--app-header-tint-hover);box-shadow:none}.app-header__pill-shine{display:none}.app-header__pill-content{position:relative;display:inline-flex;align-items:center;justify-content:center}.app-header__pill svg{width:20px;height:20px}.app-header__pill--labeled{width:auto;min-width:var(--app-header-control, 36px);height:var(--app-header-control, 36px);padding:0 12px 0 10px;gap:6px;overflow:visible;flex-shrink:0}.app-header__pill--labeled .app-header__pill-content{gap:6px}.app-header__pill-label{position:relative;font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;color:var(--app-header-accent)}.app-header__pill:disabled,.app-header__pill--inactive{opacity:.45;cursor:default;box-shadow:none}.app-header__pill--inactive .app-header__pill-shine{animation:none}.app-header:has(.app-header__burger) .app-header__actions{gap:6px;min-width:var(--app-header-control, 36px);justify-content:flex-end}.app-header--title-start:has(.app-header__burger) .app-header__title--start{text-align:left;padding:0}.page-content--context .app-header:has(.app-header__burger) .app-header__title{text-align:left;padding-left:0}.app-header__new-chat{width:40px;height:40px;border:0;background:transparent;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;align-self:center}.app-header__new-chat svg{width:22px;height:22px}.app-header__action{width:48px;height:48px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;align-self:center}.app-header__action svg{width:28px;height:28px}.app-header__action--confirm{color:var(--accent-blue)}.app-header__action--danger{color:#ff3b30}.app-header__action:disabled{opacity:.4;cursor:default}.ios-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:8px}.ios-row-actions--footer{margin-top:16px}.ios-row-actions__btn{width:48px;height:48px;border:0;border-radius:10px;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.ios-row-actions__btn svg{width:28px;height:28px}.ios-row-actions__btn--confirm{color:var(--accent-blue)}.ios-row-actions__btn--danger{color:#ff3b30}.ios-row-actions__btn:disabled{opacity:.4;cursor:default}.files-group+.files-group{margin-top:8px}.files-group__title{margin:4px 10px 2px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.chat-thread{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.page-content--chat-home .app-header{margin-bottom:0}html.keyboard-open .page-content--chat-home{padding-bottom:8px}.app-header__start{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0}.app-header__title-spacer{flex:1;min-width:0}.app-header__burger{position:relative;z-index:1;flex:0 0 var(--app-header-control, 36px);width:var(--app-header-control, 36px);height:var(--app-header-control, 36px);border:0;border-radius:10px;background:var(--app-header-tint, rgba(0, 102, 255, .08));color:var(--app-header-accent, #0066ff);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:none;transition:background-color .15s ease,color .15s ease}.app-header__burger svg{width:20px;height:20px}.app-header__burger:hover:not(:disabled){color:var(--app-header-accent, #0066ff);background:var(--app-header-tint-hover, rgba(0, 102, 255, .12))}.app-header__burger:active:not(:disabled){background:var(--app-header-tint-active, rgba(0, 102, 255, .18))}.app-header__brand--center{flex:1;align-items:center}.app-header__action--memory{color:var(--muted)}.app-header__action--memory-active{color:var(--accent-blue);background:#e8f1ff}.chat-thread--home .chat-thread__scroll--home{flex:1;min-height:0}.chat-thread__composer{flex:0 0 auto;padding:8px 2px 4px;box-sizing:border-box}.chat-list-view__center{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:clamp(28px,10vh,72px) 8px 24px;box-sizing:border-box}.chat-composer-block{position:relative;width:100%;max-width:100%}.chat-composer-block--status .chat-composer-hint{position:absolute;bottom:100%;left:4px;right:0;margin:0 0 2px}.chat-composer-settings,.chat-home-settings{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;width:100%;max-width:100%;margin-bottom:8px}.chat-composer-pill{display:inline-flex;align-items:center;gap:6px;height:var(--app-header-control, 36px);min-height:var(--app-header-control, 36px);padding:0 12px 0 10px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:600;line-height:1;cursor:pointer;transition:background-color .15s ease,color .15s ease}.chat-composer-pill:hover:not(:disabled):not(.chat-composer-pill--active){background:#6b728014;color:var(--text)}.chat-composer-pill--active{background:var(--app-header-tint);color:var(--app-header-accent)}.chat-composer-pill--active:hover:not(:disabled){background:var(--app-header-tint-hover);color:var(--app-header-accent)}.chat-composer-pill:disabled{opacity:.45;cursor:default}.chat-composer-pill__icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 auto}.chat-composer-pill__icon svg{width:20px;height:20px}.chat-composer-pill__label{max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-composer-pill-wrap{display:inline-flex;align-items:stretch;height:var(--app-header-control, 36px);min-height:var(--app-header-control, 36px);border:0;border-radius:10px;background:var(--app-header-tint);overflow:hidden}.chat-composer-pill-wrap--active .chat-composer-pill--segment{border:0;background:transparent;color:var(--app-header-accent);border-radius:0;height:var(--app-header-control, 36px);min-height:var(--app-header-control, 36px)}.chat-composer-pill-wrap--active .chat-composer-pill--segment:hover:not(:disabled){background:var(--app-header-tint-hover)}.chat-composer-pill__clear{display:inline-flex;align-items:center;justify-content:center;min-width:32px;padding:0 10px 0 4px;border:0;background:transparent;color:var(--app-header-accent);font:inherit;font-size:18px;line-height:1;cursor:pointer;transition:background-color .15s ease}.chat-composer-pill__clear:hover:not(:disabled){background:var(--app-header-tint-hover)}.chat-composer-pill__clear:disabled{opacity:.45;cursor:default}.chat-composer-hint{margin:0 0 6px 4px;color:var(--muted);font-size:13px;line-height:1.3;pointer-events:none}.chat-composer-hint__dots{display:inline-flex;width:1.2em;justify-content:flex-start}.chat-composer-hint__dots span{opacity:.2;animation:chat-processing-dot 1.2s infinite}.chat-composer-hint__dots span:nth-child(2){animation-delay:.2s}.chat-composer-hint__dots span:nth-child(3){animation-delay:.4s}.chat-agent-setup__deactivate{width:100%;margin-bottom:12px;border:1px solid #fecaca;border-radius:12px;padding:12px 14px;background:#fff5f5;color:#dc2626;font:inherit;font-size:15px;font-weight:600;cursor:pointer;text-align:left}.chat-agent-setup__deactivate:disabled{opacity:.45;cursor:default}.library-type-tabs{display:flex;align-items:stretch;gap:6px;margin:0;padding:6px;background:#fff;border-radius:12px;box-shadow:var(--panel-shadow)}.library-type-tabs__item{flex:1;border:1px solid transparent;border-radius:10px;padding:10px 12px;background:var(--app-header-tint);color:var(--app-header-accent);font:inherit;font-size:15px;font-weight:500;line-height:1.2;cursor:pointer;white-space:nowrap;transition:color .15s ease,background-color .15s ease,border-color .15s ease}.library-type-tabs__item--active{background:var(--app-header-tint-hover);border-color:#0066ff38;color:var(--accent-blue);font-weight:600;box-shadow:none}.chat-sidebar-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:row}.chat-sidebar{flex:0 0 auto;width:min(320px,86vw);max-width:100%;height:100%;background:#fff;border-right:1px solid var(--border);box-shadow:4px 0 24px #0f172a1f;display:flex;flex-direction:column}.chat-sidebar__backdrop{flex:1;border:0;margin:0;padding:0;background:#11182759;cursor:pointer}.chat-sidebar__scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px))}.chat-sidebar__new-chat{width:100%;display:flex;align-items:center;gap:10px;margin-bottom:8px;border:0;border-radius:0;padding:10px 4px;background:transparent;color:var(--text);font:inherit;font-size:15px;font-weight:400;cursor:pointer;text-align:left}.chat-sidebar__new-chat:last-of-type{margin-bottom:16px}.chat-sidebar__new-chat-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:#111827}.chat-sidebar__new-chat-icon svg{width:18px;height:18px;display:block}.app-header--title-start .app-header__start{flex:1;min-width:0;align-items:center;gap:6px}.app-header--title-start .app-header__title--start{flex:1;min-width:0;margin:0;padding:0;font-size:17px;font-weight:400;line-height:var(--app-header-block, 44px);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:none}.app-header--title-start .app-header__title-spacer{display:none}.chat-sidebar__new-chat:hover:not(:disabled){background:#f3f4f6;border-radius:10px}.chat-sidebar__section+.chat-sidebar__section{margin-top:18px}.chat-sidebar__heading{margin:0 0 8px;padding:0 4px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.chat-sidebar__row{display:block;width:100%;border:0;border-radius:10px;padding:11px 12px;background:transparent;color:var(--text);font:inherit;font-size:15px;line-height:1.3;text-align:left;cursor:pointer}.chat-sidebar__row--agent{display:flex;align-items:center;gap:10px}.chat-sidebar__icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:#000}.chat-sidebar__icon svg{width:20px;height:20px;display:block}.chat-sidebar__row-text{min-width:0;flex:1}.chat-sidebar__row:hover:not(:disabled){background:#f3f4f6}.chat-sidebar__row--more{color:var(--accent-blue);font-weight:600}.chat-sidebar__row--history{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-sidebar__history-row{display:flex;align-items:center;gap:4px}.chat-sidebar__delete{flex:0 0 auto;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}.chat-sidebar__empty{margin:0;padding:4px 12px 8px;font-size:14px}.page-content--context .app-header__title{flex:1;text-align:left;padding-left:0;padding-right:8px;font-size:20px;font-weight:600;line-height:1.25}.page-content--context .app-header{margin-bottom:28px;gap:10px}.page-content--context .chat-agent-setup__scroll{padding-top:2px}.info-notice,.context-setup-info{margin:0 0 12px;padding:12px 14px;border-radius:10px;background:#7676801f}.info-notice p,.context-setup-info p{margin:0;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280}.info-notice p+p,.context-setup-info p+p{margin-top:8px}.context-setup-section{margin-bottom:20px}.context-setup-section__title{margin:0 0 10px;padding:0 2px;font-size:20px;font-weight:600;color:var(--text)}.context-setup-section__hint{margin:0 0 8px;padding:0 2px;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280}.page-content--context .context-setup-section .chat-manage__title{font-size:17px;font-weight:400;line-height:1.25;color:var(--text)}.page-content--context .context-setup-section .chat-manage__row--nav .chat-manage__title{font-weight:600;color:var(--accent-blue)}.context-setup-field-panel{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--panel-shadow);padding:12px 16px}.context-setup-field-panel .agent-create__field{display:block;margin:0;padding:0}.context-setup-field-panel .agent-create__input,.context-setup-field-panel .agent-create__textarea{width:100%;box-sizing:border-box;border:0;padding:0;margin:0;font-size:17px;font-weight:400;line-height:1.25;color:var(--text);background:transparent;resize:vertical;font-family:inherit}.context-setup-field-panel .agent-create__input::placeholder,.context-setup-field-panel .agent-create__textarea::placeholder{font-size:17px;font-weight:400;line-height:1.25;color:#6b7280;opacity:1}.context-setup-field-panel .agent-create__textarea{min-height:120px}.context-setup-panel{background:#fff;border-radius:12px;padding:16px;box-shadow:var(--panel-shadow)}.context-setup-panel+.context-setup-panel{margin-top:12px}.context-setup-panel .settings-block__title{margin-bottom:4px}.context-setup-panel .settings-block__title:not(:first-child){margin-top:14px}.context-setup-panel--form .settings-block__title{text-align:left}.context-setup-panel .agent-create__field{display:block;padding:0;margin:0 0 4px}.context-setup-panel .agent-create__input,.context-setup-panel .agent-create__textarea{font-size:13px;font-weight:400;line-height:1.35;color:var(--text)}.context-setup-panel .agent-create__input::placeholder,.context-setup-panel .agent-create__textarea::placeholder{font-size:13px;font-weight:400;line-height:1.35;color:#6b7280;opacity:1}.context-setup-panel .chat-manage__group{box-shadow:none}.digest-details .digest-sources-panel{margin-top:16px}.context-setup-panel .chat-manage__row--readonly{cursor:default}.context-setup-panel .digest-source-fields__row{padding:12px 16px 10px}.chat-sidebar__header{display:flex;align-items:center;justify-content:flex-start;padding:8px 8px 4px;flex:0 0 auto}.chat-sidebar__close{width:var(--app-header-control);height:var(--app-header-control);border:0;border-radius:10px;background:var(--app-header-tint);color:var(--app-header-accent);font-size:22px;font-weight:400;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background-color .15s ease,color .15s ease}.chat-sidebar__close:hover{background:var(--app-header-tint-hover);color:var(--app-header-accent)}.chat-sidebar__close:active{background:var(--app-header-tint-active)}.chat-agent-setup{flex:1;min-height:0;display:flex;flex-direction:column}.chat-agent-setup__scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 2px 16px}.chat-agent-setup__create{margin-bottom:12px}.chat-agent-setup__back{margin:0 0 12px;border:0;padding:0;background:transparent;color:var(--accent-blue);font:inherit;font-size:14px;font-weight:600;cursor:pointer}.chat-agent-setup__submit{width:100%;margin-top:8px;border:0;border-radius:12px;padding:12px 16px;background:var(--accent-blue);color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer}.chat-agent-setup__submit:disabled{opacity:.5;cursor:default}.chat-list-view{display:flex;flex-direction:column;gap:var(--stack-gap)}.chat-list-view__composer{flex:0 0 auto}.chat-list-view__panel{background:#fff;border-radius:12px;padding:12px 10px 8px;overflow:hidden;box-shadow:var(--panel-shadow)}.chat-list-view__panel .chat-tab-bar{margin-bottom:8px;padding:0 4px}.chat-list-view__panel .chat-placeholder{padding:16px 8px}.chat-feed{display:flex;flex-direction:column;gap:12px;padding:4px 0 8px}.feed-post{display:flex;flex-direction:column;gap:0;overflow:hidden;border-radius:12px;background:#fff;border:1px solid #e5e5ea}.feed-post__author{display:flex;align-items:center;gap:10px;padding:10px 12px 8px}.feed-post__avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;object-fit:cover;background:#f3f4f6;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.feed-post__author-name{min-width:0;font-size:14px;font-weight:600;line-height:1.25;color:var(--text)}.feed-post__media{display:block;width:100%;line-height:0;background:#f3f4f6}.feed-post__image{display:block;width:100%;max-width:100%;height:auto;object-fit:cover}.feed-post__body{display:flex;flex-direction:column;gap:6px;padding:10px 12px 12px}.feed-post__text{margin:0;font-size:13px;font-weight:400;line-height:1.35;color:var(--text)}.feed-post__link{align-self:flex-start;margin-top:2px;border:0;padding:0;background:transparent;color:var(--accent-blue);font:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.feed-post__link:active{opacity:.7}.chat-list-view__panel .muted{padding:8px 10px}.chat-tab-bar{display:flex;gap:8px;margin:0;overflow-x:auto}.chat-tab-bar__item{border:0;background:#f3f4f6;color:#111827;border-radius:999px;padding:8px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}.chat-tab-bar__item--active{background:var(--tab-active);color:#1d4ed8}.chat-placeholder{margin:0;text-align:center;color:var(--muted);font-size:16px}.chat-name-list{display:flex;flex-direction:column}.chat-input-wrap{width:100%;max-width:100%;position:relative}.chat-input__manage{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}.chat-input__plus{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:50%;background:transparent;color:var(--accent-blue);display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:22px;line-height:1;cursor:pointer;box-shadow:none;transition:transform .16s ease,background-color .16s ease,color .16s ease}.chat-input__plus--open{transform:rotate(45deg);background:transparent}.chat-input__plus--busy{opacity:.7}.chat-input__plus:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.chat-input__file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-input__attach{margin:0 4px 8px;padding:8px 12px;border-radius:12px;background:#7676801f;display:flex;flex-direction:column;gap:4px}.chat-input__attach-row{display:flex;align-items:center;gap:8px}.chat-input__attach-text{margin:0;min-width:0;flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:13px;line-height:1.35;color:#6b7280}.chat-input__attach-label{font-weight:500;color:var(--text)}.chat-input__attach-sep{color:#9ca3af}.chat-input__attach-tail{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:#6b7280}.chat-input__attach-clear{flex:0 0 auto;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#6b7280;font-size:20px;line-height:1;cursor:pointer}.chat-input__attach-clear:hover:not(:disabled){background:#ececf0;color:var(--text)}.chat-input__attach-clear:disabled{opacity:.5;cursor:not-allowed}.chat-input__attach-status,.chat-input__attach-error{margin:0;font-size:13px;line-height:1.35}.chat-input__attach-status{color:#6b7280}.chat-input__attach-error{color:#b42318}.chat-input__menu{position:absolute;left:0;bottom:calc(100% + 8px);min-width:240px;border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--text);padding:8px;box-shadow:0 16px 32px #0f172a29;z-index:3}.chat-input__menu-item{width:100%;border:0;border-radius:12px;background:transparent;color:inherit;padding:10px;text-align:left;display:flex;align-items:center;gap:10px;font:inherit;cursor:pointer}.chat-input__menu-item:hover:not(:disabled){background:#f8fafc}.chat-input__menu-item:disabled{opacity:.5;cursor:not-allowed}.chat-input__menu-icon{width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:#e8f1ff;color:var(--accent-blue);display:inline-flex;align-items:center;justify-content:center;font-size:16px}.chat-input__menu-text{min-width:0;display:flex;flex-direction:column;gap:2px}.chat-input__menu-title{font-size:14px;font-weight:600;line-height:1.3}.chat-input__menu-description{color:var(--muted);font-size:12px;line-height:1.35}.chat-input__hint{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translate(-50%);z-index:2;padding:6px 12px;border-radius:999px;background:#111827;color:#fff;font-size:13px;line-height:1.2;white-space:nowrap;pointer-events:none}.chat-input{display:flex;align-items:center;gap:4px;width:100%;padding:8px;border-radius:999px;background:#fff;box-shadow:0 2px 10px #0066ff42,0 4px 18px #0066ff24,0 0 0 2px #0066ff1f}.chat-input__field{flex:1;min-width:0;border:0;background:transparent;font-family:inherit;font-size:16px;line-height:1.25;color:var(--text);outline:none;touch-action:manipulation}.chat-input__field::placeholder{color:#64748b}.chat-input__field:disabled{opacity:.65}.chat-input__mode{width:32px;height:32px;flex:0 0 32px;border:0;border-radius:50%;background:transparent;color:#94a3b8;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}.chat-input__mode svg{width:20px;height:20px}.chat-input__mode--active{color:var(--accent-blue);background:#e8f1ff}.chat-input__mode:disabled{opacity:.55;cursor:not-allowed}.chat-input__send{width:36px;height:36px;flex:0 0 36px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#94a3b8;cursor:not-allowed}.chat-input__send svg{width:18px;height:18px}.chat-input__send--active{color:var(--accent-blue);cursor:pointer}.chat-input__send--active:disabled{opacity:.65;cursor:not-allowed}.chat-list-item{flex:1;min-width:0;display:flex;align-items:center;border:0;background:transparent;color:var(--text);text-align:left;padding:12px 8px;border-radius:10px;font:inherit;font-size:16px;font-weight:400}.chat-list-row{display:flex;align-items:center;gap:2px;border-radius:10px}.chat-list-row--active,.chat-list-row:hover{background:#eff6ff}.chat-list-item--active,.chat-list-item:hover{background:transparent}.chat-list-item__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-list-item--add{color:var(--accent-blue);font-weight:600;gap:8px}.chat-list-item__add-mark{flex:0 0 auto;font-size:20px;line-height:1;font-weight:600}.chat-list-item__delete{flex-shrink:0;width:28px;height:28px;margin-right:4px;border:0;border-radius:8px;background:transparent;color:#6b7280;font-size:20px;line-height:1;cursor:pointer;opacity:0;pointer-events:none}.chat-list-row:hover .chat-list-item__delete,.chat-list-row:focus-within .chat-list-item__delete,.chat-list-item__delete:focus-visible{opacity:1;pointer-events:auto}.chat-list-item__delete:hover{background:#ff50502e;color:#b91c1c}.chat-list-item__delete:disabled{opacity:.4;cursor:default}@media (hover: none){.chat-list-item__delete{opacity:.7;pointer-events:auto}}.chat-manage{flex:1;min-height:0;display:flex;flex-direction:column;background:transparent;box-shadow:none;margin:0 -14px;padding:8px 14px 20px}.chat-manage__status{margin:0 2px 10px;font-size:13px}.chat-manage__scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 2px 12px}.chat-manage__section{margin-bottom:0}.chat-manage__section+.chat-manage__section{margin-top:16px}.chat-manage__section-title,.details-content .chat-manage__section-title{margin:0 12px 14px;font-size:13px;font-weight:400;letter-spacing:.02em;text-transform:uppercase;color:#6b7280}.chat-manage__group{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--panel-shadow)}.chat-manage__empty{margin:0;padding:14px 16px}.chat-manage__group>.chat-manage__row-shell:last-child,.chat-manage__group>.chat-manage__row-shell:last-child .chat-manage__row{border-bottom:0}.chat-manage__row-shell{display:flex;align-items:stretch;border-bottom:1px solid #e5e5ea}.chat-manage__row-shell .chat-manage__row{flex:1;min-width:0;border-bottom:0}.chat-manage__row-edit{flex:0 0 auto;width:44px;border:0;border-left:1px solid #e5e5ea;background:transparent;color:#6b7280;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.chat-manage__row-edit svg{width:18px;height:18px;display:block}.chat-manage__row-edit:hover:not(:disabled){color:var(--text);background:#f5f7fb}.chat-manage__row-edit:disabled{opacity:.55;cursor:not-allowed}.chat-manage__row{width:100%;border:0;border-bottom:1px solid #e5e5ea;border-radius:0;background:transparent;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;text-align:left;font:inherit;cursor:pointer;box-shadow:none}.chat-manage__group>.chat-manage__row:last-child{border-bottom:0}.chat-manage__row--active{background:transparent}.chat-manage__row:disabled{opacity:.55;cursor:not-allowed}.chat-manage__title{min-width:0;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280}.chat-manage__row--nav .chat-manage__title{font-weight:600;color:var(--text)}.chat-manage__row-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.chat-manage__icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:18px;line-height:1;color:#111827}.chat-manage__icon svg{width:18px;height:18px;display:block}.chat-manage__radio{width:22px;height:22px;flex:0 0 22px;border:1.5px solid #c7c7cc;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;transition:border-color .16s ease,background-color .16s ease}.chat-manage__radio--checked{border-color:#34c759;background:#34c759}.chat-manage__radio-dot{width:8px;height:8px;border-radius:50%;background:#fff}.chat-manage__chevron{width:22px;height:22px;flex:0 0 22px;display:inline-flex;align-items:center;justify-content:center;color:#c7c7cc}.chat-manage__chevron svg{width:16px;height:16px}.chat-manage__description{color:var(--muted);font-size:13px;line-height:1.4}.chat-thread__scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 2px 12px;display:flex;flex-direction:column}.chat-thread__anchor{margin-top:auto;width:100%;display:flex;flex-direction:column}.chat-processing{margin:0 0 6px 4px;color:var(--muted);font-size:13px;line-height:1.3}.chat-processing__dots{display:inline-flex;width:1.2em;justify-content:flex-start}.chat-processing__dots span{opacity:.2;animation:chat-processing-dot 1.2s infinite}.chat-processing__dots span:nth-child(2){animation-delay:.2s}.chat-processing__dots span:nth-child(3){animation-delay:.4s}@keyframes chat-processing-dot{0%,80%,to{opacity:.2}40%{opacity:1}}.chat-empty-logo{width:40px;height:40px;margin:4px 0 12px;align-self:flex-start}.chat-empty-logo svg{width:100%;height:100%}.chat-jump-bottom{position:absolute;right:8px;bottom:64px;width:36px;height:36px;border:1px solid var(--border);border-radius:50%;background:#fff;color:var(--accent);box-shadow:0 4px 12px #0f172a1f;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.chat-jump-bottom svg{width:18px;height:18px}.chat-messages{display:flex;flex-direction:column;gap:10px}.chat-message{display:flex;align-items:flex-end;gap:8px;max-width:92%}.chat-message__bubble{border-radius:18px;padding:10px 12px;white-space:pre-wrap;font-size:15px;line-height:1.4;word-break:break-word;overflow-wrap:break-word;box-shadow:var(--panel-shadow)}.chat-message__image{display:block;max-width:100%;max-height:320px;border-radius:12px;margin-bottom:8px;object-fit:contain}.chat-fmt__heading{font-weight:600;margin:4px 0 2px}.chat-fmt__heading:first-child{margin-top:0}.chat-fmt__list{margin:4px 0;padding-left:18px}.chat-fmt__list li{margin-bottom:2px}.chat-fmt__para{margin:4px 0}.chat-fmt__para:first-child{margin-top:0}.chat-fmt__para:last-child{margin-bottom:0}.chat-message__bubble a{color:inherit;text-decoration:underline;text-underline-offset:2px}.chat-message--user .chat-message__bubble a{color:#fff}.chat-message--assistant .chat-message__bubble a{color:var(--accent-blue)}.chat-message__avatar{width:28px;height:28px;flex:0 0 28px}.chat-message__avatar svg{width:100%;height:100%;display:block}.chat-message--user{align-self:flex-end;margin-left:auto}.chat-message--user .chat-message__bubble{background:var(--bubble-out);color:#fff;border-bottom-right-radius:6px}.chat-message--assistant,.chat-message--status{align-self:flex-start}.chat-message__body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.chat-message--user .chat-message__body{align-items:flex-end}.chat-message__record-link{border:0;background:transparent;padding:0;color:var(--accent-blue);font:inherit;font-size:14px;font-weight:500;cursor:pointer}.chat-message__record-link:hover{text-decoration:underline}.files-home{display:flex;flex-direction:column;margin:0;padding:0 0 20px}.files-home__block{display:flex;flex-direction:column;gap:10px}.files-home__block .info-notice,.files-home__block .context-setup-section__hint{margin-bottom:0}.files-home__group .chat-manage__row--nav .chat-manage__title{font-size:17px;font-weight:600;line-height:1.25;color:var(--accent-blue)}.files-home__group .chat-manage__row{border-bottom:1px solid #e5e5ea}.files-home__group>.chat-manage__row:last-child{border-bottom:0}.files-home__block .context-setup-section{margin-bottom:0}.files-home__composer{margin:0}.files-home__group{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--panel-shadow)}.files-home__hint{margin:0;padding:12px 16px 10px;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280;border-bottom:1px solid #e5e5ea;display:flex;align-items:center;gap:8px}.files-home__hint:before{content:"";flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:var(--accent-blue)}.files-home__row{width:100%;border:0;border-bottom:1px solid #e5e5ea;border-radius:0;background:transparent;color:var(--text);display:flex;align-items:center;gap:12px;padding:13px 16px;text-align:left;font:inherit;cursor:pointer;box-shadow:none}.files-home__group>.files-home__row:last-child{border-bottom:0}.files-home__agent-row{display:flex;align-items:stretch;gap:0}.files-home__agent-row .files-home__row--agent{flex:1;min-width:0}.files-home__delete{flex:0 0 auto;width:44px;border:0;border-bottom:1px solid #e5e5ea;border-left:1px solid #e5e5ea;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s ease,background-color .15s ease,color .15s ease}.files-home__agent-row:hover .files-home__delete,.files-home__agent-row:focus-within .files-home__delete{opacity:1}.files-home__delete:hover:not(:disabled){background:#fff5f5;color:#dc2626}.files-home__delete:disabled{opacity:.35;cursor:not-allowed}.files-home__group>.files-home__agent-row:last-child .files-home__row,.files-home__group>.files-home__agent-row:last-child .files-home__delete{border-bottom:0}@media (hover: none){.files-home__delete{opacity:.55}}.files-home__row:active{background:#ececef}.files-home__row--add{color:var(--accent-blue);font-weight:600;gap:8px}.files-home__row--nav{justify-content:space-between}.files-home__row--nav .files-home__title{font-weight:600}.files-home__add-mark{flex:0 0 auto;font-size:20px;line-height:1;font-weight:600;width:22px;text-align:center}.files-home__icon{flex:0 0 auto;font-size:22px;line-height:1}.files-home__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.files-home__title{font-size:17px;font-weight:400;line-height:1.25}.files-home__description{font-size:13px;font-weight:400;line-height:1.3;color:#8e8e93}.files-home__chevron{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;color:#c7c7cc}.files-records .context-setup-section__hint,.files-records .info-notice{margin-bottom:0}.files-records__panel .chat-manage__row--nav .chat-manage__title{font-weight:600;color:var(--accent-blue)}.files-records__panel .chat-manage__row{border-bottom:1px solid #e5e5ea}.files-records__panel>.chat-manage__row:last-child{border-bottom:0}.files-records{display:flex;flex-direction:column;gap:12px;padding:0 0 20px}.files-records__panel{position:relative}.files-records__body{padding:8px 12px 12px}.files-records__status{margin:0;padding:14px 16px}.sources-refresh-row .chat-manage__title{font-size:17px;font-weight:400}.sources-refresh-mark{width:28px;height:28px;flex:0 0 28px;border-radius:50%;color:var(--accent-blue);display:inline-flex;align-items:center;justify-content:center}.sources-refresh-icon{display:block}.sources-refresh-icon--spin{animation:sources-refresh-spin .9s linear infinite}@keyframes sources-refresh-spin{to{transform:rotate(360deg)}}.sources-detail{display:flex;flex-direction:column;gap:12px}.sources-detail .context-setup-section__hint{margin-bottom:0}.sources-detail__panel{overflow:hidden}.sources-detail__body{display:flex;flex-direction:column;gap:8px;padding:12px 16px 14px;border-top:1px solid #e5e5ea}.sources-detail__link{margin:0;word-break:break-word;font-size:15px}.sources-refresh-hint{color:var(--accent-blue, #007aff)}.files-records .digest-create-fab{margin-top:12px}.chat-message--assistant .chat-message__bubble,.chat-message--status .chat-message__bubble{background:var(--bubble-in);color:var(--text);border-bottom-left-radius:6px}.profile-view{padding:4px 2px 12px;display:flex;flex-direction:column;gap:12px}.profile-view__panel--hero{display:flex;flex-direction:column;gap:0;padding-bottom:0;overflow:hidden}.profile-hero{display:flex;align-items:center;gap:10px;padding-bottom:12px}.profile-hero__avatar{flex:0 0 auto;width:40px;height:40px;display:inline-flex}.profile-hero__avatar svg{width:40px;height:40px;display:block}.profile-hero__name{margin:0;font-size:15px;font-weight:600;line-height:1.3}.profile-hero__credits-row{margin:0 -16px;width:calc(100% + 32px);border-top:1px solid #ececf0;border-radius:0 0 12px 12px}.profile-view__panel--settings .chat-manage__group{margin-top:4px}.profile-view .context-setup-section{margin-top:20px;margin-bottom:0}.profile-view .context-setup-section .chat-manage__title{font-size:17px;font-weight:400;line-height:1.25;color:var(--text)}.profile-view .context-setup-section .chat-manage__group+.context-setup-section__hint{margin-top:16px}.profile-view--credits .context-setup-section,.profile-view--default-agent .context-setup-section{margin-top:0}.profile-view--credits .context-setup-section+.context-setup-section{margin-top:20px}.profile-credits__balance{display:flex;flex-direction:column;gap:8px}.profile-credits__cta{flex:0 0 auto;font-size:14px;font-weight:600;color:var(--accent-blue)}.profile-credits__cta--muted{color:#71717a}.profile-view--credits .profile-balance__error{margin-top:0}.profile-section__title{margin:0 4px 10px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text)}.profile-list{list-style:none;margin:0;padding:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--panel-shadow)}.profile-list>li+li{border-top:1px solid #ececf0}.profile-list__item{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;background:transparent;cursor:pointer;text-align:left;color:var(--text)}.profile-list__item:active{background:#f5f7fb}.profile-list__icon{flex:0 0 auto;width:30px;height:30px;display:inline-flex}.profile-list__label{flex:1 1 auto;min-width:0;font-size:16px;font-weight:400;line-height:1.3}.profile-list__meta{flex:0 0 auto;font-size:14px;color:var(--muted)}.profile-list__chevron{flex:0 0 auto;color:#c0c4cc}.profile-view__panel{background:#fff;border-radius:12px;padding:16px;box-shadow:var(--panel-shadow)}.profile-view__panel--balance{display:flex;flex-direction:column;gap:8px}.profile-balance__value{margin:0;font-size:22px;font-weight:600}.profile-balance__error{margin:0;color:#b42318;font-size:13px}.profile-balance__refresh{align-self:flex-start;border:0;background:transparent;color:var(--accent, #2a6df4);font-size:14px;padding:0;cursor:pointer}.top-up-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.top-up-list__item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ececf0;border-radius:12px;background:#fafafa;padding:14px 16px;cursor:pointer;text-align:left}.top-up-list__item:not(.top-up-list__item--disabled):active{background:#f0f0f3}.top-up-list__item--disabled{opacity:.55;cursor:not-allowed}.top-up-list__label{font-size:15px;font-weight:500}.top-up-list__cta{font-size:14px;font-weight:600;color:var(--accent, #2a6df4)}.top-up-list__item--disabled .top-up-list__cta{color:#71717a}.top-up-list__hint{margin:12px 0 0;font-size:13px;color:#71717a;line-height:1.35}.settings-block__title{margin:0 0 12px;font-size:15px;font-weight:600}.settings-radio{display:flex;gap:16px}.settings-radio__item{display:flex;align-items:center;gap:6px;font-size:15px}.agent-picker{margin:14px 0}.agent-picker__list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:220px;overflow:auto}.agent-picker__item{display:flex;align-items:flex-start;gap:8px;font-size:14px}.calendar-section{display:flex;flex-direction:column;gap:16px}.calendar-today-header{padding:4px 2px 8px;border-bottom:1px solid #e2e8f0}.calendar-day-nav{display:flex;align-items:center;gap:8px}.calendar-day-nav__btn{flex:0 0 auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#334155;width:40px;height:40px;font-size:18px;line-height:1;cursor:pointer}.calendar-day-nav__btn:disabled{opacity:.5;cursor:not-allowed}.calendar-day-nav__titles{flex:1 1 auto;min-width:0}.calendar-today-label{margin:0 0 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.calendar-today-title{margin:0;font-size:20px;line-height:1.3;color:#0f172a;text-transform:capitalize}.calendar-feed{display:flex;flex-direction:column;gap:18px}.calendar-day-block{display:flex;flex-direction:column;gap:2px}.calendar-day-block__title{margin:0;padding:0 2px 10px;font-size:13px;font-weight:400;line-height:1.35;color:#6b7280;text-transform:capitalize;border-bottom:1px solid #e5e5ea}.calendar-event-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.calendar-event-item{margin:0;padding:10px 2px;border:none;border-radius:0;background:transparent}.calendar-event-item__main{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.calendar-event-item__title{font-size:16px;font-weight:400;line-height:1.3;color:#111827}.calendar-event-item__time{flex:0 0 auto;font-size:15px;font-weight:400;font-variant-numeric:tabular-nums;color:#6b7280}.calendar-event-item__text{margin:4px 0 0;font-size:14px;line-height:1.4;color:#6b7280;white-space:pre-wrap}.calendar-status{margin:0}.calendar-error{margin:0;color:#b91c1c;font-size:14px}
