.kl-chat-root{position:relative;display:grid;grid-template-columns:320px 1fr;gap:0;height:clamp(520px,calc(100vh - 80px),860px);min-height:520px;max-height:calc(100vh - 80px);border:1px solid #d7e0f1;border-radius:12px;overflow:hidden;background:#fff}.kl-chat-toast{position:absolute;bottom:14px;right:14px;z-index:1400;min-width:220px;max-width:min(360px,calc(100% - 28px));padding:10px 12px;border-radius:10px;border:1px solid;box-shadow:0 12px 24px #102a4324;font-size:13px;font-weight:600}.kl-chat-toast.success{background:#ecfdf3;border-color:#abefc6;color:#067647}.kl-chat-toast.error{background:#fef3f2;border-color:#fecdca;color:#b42318}.kl-chat-sidebar{border-right:1px solid #e5edf8;display:flex;flex-direction:column;min-width:0;height:100%;max-height:100%;overflow:hidden}.kl-chat-sidebar-header{padding:14px;border-bottom:1px solid #edf2fa;gap:8px;display:grid}.kl-chat-sidebar-header-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.kl-chat-title{margin:0;color:#102a43;font-size:16px;font-weight:700}.kl-chat-title-wrap{display:flex;align-items:center;gap:8px;min-width:0}.kl-chat-unread-groups-badge{border:1px solid #b9e9fa;background:#eef9ff;color:#0b4f6c;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;white-space:nowrap}.kl-chat-sidebar-search-wrap{position:relative}.kl-chat-sidebar-search{width:100%;border:1px solid #ccd9ee;border-radius:8px;font-size:13px;padding:9px 34px 9px 10px;outline:none}.kl-chat-sidebar-search:focus{border-color:#8cd8f5}.kl-chat-sidebar-search-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:20px;height:20px;border:0;background:transparent;color:#7b8ba1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.kl-chat-sidebar-search-clear:hover{color:#486581}.kl-chat-sidebar-search-clear svg{width:16px;height:16px;fill:currentColor}.kl-chat-group-filters{display:flex;gap:6px;flex-wrap:wrap}.kl-chat-group-filter-chip{border:1px solid #d7e7f8;background:#f8fbff;color:#486581;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer}.kl-chat-group-filter-chip:hover{background:#eef7ff;border-color:#c5daf1}.kl-chat-group-filter-chip.active{background:#e7f7ff;border-color:#8cd8f5;color:#0b4f6c}.kl-chat-btn{border:1px solid #00afee;background:#00afee;color:#fff;border-radius:8px;padding:7px 12px;font-size:13px;cursor:pointer}.kl-chat-btn:disabled{opacity:.6;cursor:not-allowed}.kl-chat-btn.secondary{background:#fff;color:#00afee}.kl-chat-btn.danger{border-color:#d92d20;background:#d92d20}.kl-chat-groups{flex:1;min-height:0;overflow:auto;padding:8px}.kl-chat-group{width:100%;display:block;text-align:left;border:1px solid transparent;padding:10px;border-radius:10px;margin-bottom:6px;cursor:pointer;background:#fff}.kl-chat-root button.kl-chat-group:hover:not(:disabled){background:#f6fbff;box-shadow:none;transform:none}.kl-chat-group.active{background:#eef8ff;border-color:#b9e9fa}.kl-chat-group-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.kl-chat-group-name-wrap{display:flex;align-items:center;gap:8px;min-width:0}.kl-chat-group-name{margin:0;font-weight:600;color:#183b56;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kl-chat-group-type-dot{border:1px solid #d9e7f8;background:#f6f9fe;color:#486581;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;min-width:24px;height:20px;padding:0 6px;font-size:10px;font-weight:700;flex-shrink:0}.kl-chat-group-type{flex-shrink:0;border:1px solid #d9e7f8;background:#f6f9fe;color:#486581;border-radius:999px;padding:1px 6px;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.kl-chat-group-meta{margin-top:4px;font-size:12px;color:#486581;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kl-chat-group-preview-attachment{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;vertical-align:middle}.kl-chat-group-preview-attachment-icon{display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}.kl-chat-group-preview-attachment-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kl-chat-unread{min-width:20px;height:20px;border-radius:999px;background:#00afee;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.kl-chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;max-height:100%;overflow:hidden}.kl-chat-body{flex:1;min-height:0;display:grid;grid-template-columns:1fr;position:relative;max-height:100%;overflow:hidden}.kl-chat-body.search-open{grid-template-columns:minmax(0,1fr) 320px}.kl-chat-main-header{flex:0 0 56px;height:56px;border-bottom:1px solid #edf2fa;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}.kl-chat-title,.kl-chat-main-title{display:block;margin:0;line-height:1.3}.kl-chat-main-title{font-size:15px;color:#102a43}.kl-chat-main-title-wrap{display:flex;align-items:center;gap:8px;min-width:0}.kl-chat-main-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.kl-chat-realtime-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.kl-chat-realtime-status.connecting,.kl-chat-realtime-status.reconnecting{background:#fff7e6;color:#8a4b08;border:1px solid #f3d2a2}.kl-chat-realtime-status.disconnected{background:#feeceb;color:#b42318;border:1px solid #f5c7c2}.kl-chat-header-link{border:0;background:transparent;color:#00afee;cursor:pointer;padding:0;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.kl-chat-root button.kl-chat-header-link:hover:not(:disabled){color:#0b4f6c;background:transparent;box-shadow:none;transform:none}.kl-chat-header-link svg{width:16px;height:16px;fill:currentColor}.kl-chat-header-link-search svg{width:19px;height:19px}.kl-chat-actions-menu-wrap{position:relative}.kl-chat-actions-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:180px;border:1px solid #d7e0f1;border-radius:10px;background:#fff;box-shadow:0 12px 24px #102a4324;padding:6px;z-index:30}.kl-chat-actions-item{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer;color:#102a43}.kl-chat-root button.kl-chat-actions-item:hover:not(:disabled){background:#f6fbff;color:#102a43;box-shadow:none;transform:none}.kl-chat-actions-item:disabled{opacity:.55;cursor:not-allowed}.kl-chat-actions-item.danger{color:#b42318}.kl-chat-member-list{display:grid;gap:8px;max-height:220px;overflow:auto}.kl-chat-member-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3ebf8;border-radius:10px;padding:10px 12px}.kl-chat-member-copy{display:grid;gap:2px;min-width:0}.kl-chat-member-copy strong{display:flex;align-items:center;gap:6px;font-size:13px;color:#102a43}.kl-chat-member-copy span{font-size:12px;color:#627d98}.kl-chat-member-remove{border:0;background:transparent;color:#b42318;display:inline-flex;align-items:center;gap:4px;cursor:pointer;font-size:12px;font-weight:600}.kl-chat-member-actions{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.kl-chat-member-admin-toggle{border:0;background:transparent;color:#0b63ce;display:inline-flex;align-items:center;gap:4px;cursor:pointer;font-size:12px;font-weight:600;padding:0}.kl-chat-member-admin-toggle:disabled,.kl-chat-member-remove:disabled{opacity:.6;cursor:not-allowed}.kl-chat-member-badge{border:1px solid #d9e7f8;background:#f6f9fe;color:#486581;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700}.kl-chat-member-badge.admin{border-color:#b9e9fa;background:#eef9ff;color:#0b4f6c}.delete-confirm{padding-left:0;padding-right:0}.kl-chat-messages{min-height:0;max-height:100%;overflow:auto;padding:16px;background:linear-gradient(180deg,#fbfdff,#f7fbff)}.kl-chat-jump-latest{position:absolute;right:18px;bottom:18px;width:36px;height:36px;border:1px solid #b9e9fa;border-radius:999px;background:#eef9ff;color:#0b63ce;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 24px #102a431f;z-index:3}.kl-chat-root button.kl-chat-jump-latest:hover:not(:disabled){background:#dff3ff;border-color:#8cd8f5;color:#0b4f6c;box-shadow:0 12px 28px #102a4329;transform:none}.kl-chat-jump-latest svg{width:20px;height:20px;fill:currentColor}.kl-chat-search-panel{border-left:1px solid #edf2fa;background:#fff;min-width:0;min-height:0;display:grid;grid-template-rows:auto auto auto 1fr;gap:10px;padding:12px;overflow:hidden}.kl-chat-search-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.kl-chat-search-panel-title{margin:0;font-size:14px;color:#102a43}.kl-chat-search-panel-results{min-height:0;max-height:100%;overflow:auto;display:grid;gap:8px}.kl-chat-search-result{width:100%;border:1px solid #d7e0f1;border-radius:10px;background:#fff;text-align:left;padding:10px 12px;display:grid;gap:4px;cursor:pointer}.kl-chat-search-result:hover{background:#f8fbff;border-color:#b9e9fa}.kl-chat-search-result strong{font-size:13px;color:#102a43}.kl-chat-search-result span{font-size:13px;color:#486581;white-space:pre-wrap;overflow:hidden;line-clamp:1;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.kl-chat-search-result small{font-size:11px;color:#627d98}.kl-chat-message-row{display:flex;margin-bottom:6px}.kl-chat-message-highlight .kl-chat-bubble{box-shadow:0 0 0 3px #00afee47,0 10px 24px #00afee1f;border-color:#3bc0f2;background:#eefbff}.kl-chat-message-row.mine.kl-chat-message-highlight .kl-chat-bubble{background:#dcecff;border-color:#2daee2}.kl-chat-sender-row{margin:12px 0 4px;font-size:12px;font-weight:700;color:#0b4f6c}.kl-chat-sender-row.mine{text-align:right}.kl-chat-date-separator{display:flex;justify-content:center;margin:4px 0 12px}.kl-chat-date-separator span{border:1px solid #dbe7f5;background:#f8fbff;color:#486581;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.kl-chat-unread-separator{display:flex;align-items:center;gap:12px;margin:8px 0 12px;color:#b42318;font-size:12px;font-weight:700}.kl-chat-unread-separator:before,.kl-chat-unread-separator:after{content:"";flex:1;height:1px;background:#f1b5ad}.kl-chat-unread-separator span{white-space:nowrap}.kl-chat-message-row.mine{justify-content:flex-end}.kl-chat-message-row.system{justify-content:center}.kl-chat-bubble{position:relative;max-width:72%;padding:6px 10px;border-radius:12px;background:#fff;border:1px solid #dce6f5}.kl-chat-message-row.mine .kl-chat-bubble{background:#edf4ff;border-color:#c7d7f2}.kl-chat-message-row:not(.mine):not(.system) .kl-chat-bubble{background:#f7f9fc;border-color:#dce6f5}.kl-chat-bubble-system{background:#f2f2f2;border-color:#e1e1e1}.kl-chat-bubble-meta{display:block;font-size:11px;color:#627d98;margin-top:8px;text-align:right}.kl-chat-bubble-meta.inline{display:inline-block;margin-top:0;margin-left:auto;white-space:nowrap;vertical-align:bottom;text-align:right}.kl-chat-message-actions-wrap{position:relative;flex-shrink:0}.kl-chat-message-actions-overlay{position:absolute;top:2px;right:2px;z-index:5}.kl-chat-message-action-btn{width:20px;height:20px;padding:0;border:1px solid #d7e0f1;border-radius:7px;background:#ffffffeb;color:#627d98;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s ease,color .15s ease}.kl-chat-message-row:hover .kl-chat-message-action-btn,.kl-chat-message-actions-wrap.open .kl-chat-message-action-btn{opacity:1;pointer-events:auto}.kl-chat-root button.kl-chat-message-action-btn:hover:not(:disabled){background:#fff;color:#102a43;box-shadow:none;transform:none}.kl-chat-message-action-btn svg{width:16px;height:16px;fill:currentColor}.kl-chat-message-actions-menu{position:absolute;min-width:140px;border:1px solid #d7e0f1;border-radius:10px;background:#fff;box-shadow:0 12px 24px #102a4324;padding:6px;z-index:20}.kl-chat-message-actions-menu.up{bottom:calc(100% + 6px)}.kl-chat-message-actions-menu.down{top:calc(100% + 6px)}.kl-chat-message-actions-menu.left{left:0}.kl-chat-message-actions-menu.right{right:0}.kl-chat-bubble-text-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 8px}.kl-chat-bubble-content{display:block;flex:1 1 auto;min-width:0;margin:0;font-size:14px;color:#102a43;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.kl-chat-bubble-content .kl-chat-term-highlight,.kl-chat-attachment-copy .kl-chat-term-highlight,.kl-chat-search-result .kl-chat-term-highlight{font-weight:800;color:#0b4f6c;background:#ffe899b3;border-radius:4px;padding:0 2px}.kl-chat-reply-preview{margin:2px 0 8px;padding:8px 10px;border-left:3px solid #c3ccd9;background:#e8edf3;border-radius:8px;display:grid;gap:2px;width:100%;text-align:left;border-top:0;border-right:0;border-bottom:0;cursor:pointer}.kl-chat-root button.kl-chat-reply-preview:hover:not(:disabled){background:#dfe6ee;box-shadow:none;transform:none}.kl-chat-reply-preview strong,.kl-chat-composer-reply-copy strong{font-size:12px;color:#0b4f6c}.kl-chat-reply-preview span,.kl-chat-composer-reply-copy span{font-size:12px;color:#486581;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kl-chat-edit-form{display:grid;gap:10px;margin-top:4px}.kl-chat-edit-textarea{width:100%;min-height:88px;resize:vertical;border:1px solid #ccd9ee;border-radius:8px;font-size:14px;padding:10px;outline:none;font-family:inherit;color:#102a43}.kl-chat-edit-actions{display:flex;justify-content:flex-end;gap:8px}.kl-chat-edit-actions .kl-chat-btn{display:inline-flex;align-items:center;gap:6px}.kl-chat-attachments{display:grid;gap:8px;margin-top:4px;margin-bottom:4px}.kl-chat-attachment{width:100%;border:1px solid #d7e7f8;background:#f8fbff;border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer}.kl-chat-root button.kl-chat-attachment:hover:not(:disabled){background:#eff7ff;box-shadow:none;transform:none}.kl-chat-attachment:disabled{opacity:.65;cursor:wait}.kl-chat-attachment-icon{width:18px;height:18px;color:#0b4f6c;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.kl-chat-attachment-icon svg{width:18px;height:18px;fill:currentColor}.kl-chat-attachment-copy{min-width:0;display:grid;gap:2px}.kl-chat-attachment-copy strong,.kl-chat-composer-attachment-copy strong{font-size:13px;color:#102a43;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kl-chat-attachment-copy span,.kl-chat-composer-attachment-copy span{font-size:12px;color:#627d98}.kl-chat-composer{border-top:1px solid #edf2fa;padding:12px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.kl-chat-composer-inputs{min-width:0;display:grid;gap:8px}.kl-chat-composer-row{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}.kl-chat-input{width:100%;border:1px solid #ccd9ee;border-radius:8px;font-size:14px;padding:10px;outline:none}.kl-chat-file-input{display:none}.kl-chat-icon-btn{width:40px;height:40px;border:1px solid #ccd9ee;border-radius:8px;background:#fff;color:#486581;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.kl-chat-root button.kl-chat-icon-btn:hover:not(:disabled){background:#f6fbff;color:#0b4f6c;box-shadow:none;transform:none}.kl-chat-icon-btn:disabled{opacity:.6;cursor:not-allowed}.kl-chat-icon-btn svg,.kl-chat-composer-attachment-remove svg{width:18px;height:18px;fill:currentColor}.kl-chat-composer-attachment{border:1px solid #d7e7f8;background:#f8fbff;border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:10px}.kl-chat-composer-reply{border:1px solid #d7e7f8;background:#f6fbff;border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:10px}.kl-chat-composer-reply-copy,.kl-chat-composer-attachment-copy{min-width:0;display:grid;gap:2px}.kl-chat-composer-attachment-remove{width:24px;height:24px;margin-left:auto;border:0;background:transparent;color:#627d98;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.kl-chat-root button.kl-chat-composer-attachment-remove:hover:not(:disabled){color:#102a43;background:transparent;box-shadow:none;transform:none}.kl-chat-empty{color:#627d98;font-size:14px;padding:12px}.kl-chat-groups-loading-more{text-align:center;font-size:12px}.kl-chat-search-empty{padding:10px 12px;color:#627d98;font-size:13px}.kl-chat-error{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#b42318;font-size:13px;padding:8px 12px;border-top:1px solid #ffdfdf;background:#fff5f5}.kl-chat-error-dismiss{border:none;background:transparent;color:inherit;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:999px;cursor:pointer;flex:0 0 auto;font-size:16px}.kl-chat-error-dismiss:hover{background:#b4231814}.kl-chat-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1300}.kl-chat-modal{width:min(560px,94vw);max-height:86vh;overflow:auto;background:#fff;border-radius:12px;border:1px solid #d7e0f1;padding:16px}.kl-chat-form-grid{display:grid;gap:12px}.kl-chat-label{display:grid;gap:6px;font-size:13px;color:#334e68}.kl-chat-field,.kl-chat-input-wrap{position:relative}.kl-chat-select,.kl-chat-text{border:1px solid #ccd9ee;border-radius:8px;padding:9px 10px;font-size:14px;width:100%}.kl-chat-text.has-action{padding-right:34px}.kl-chat-input-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#627d98;font-size:14px;line-height:1;cursor:pointer;padding:2px}.kl-chat-input-clear:hover{color:#102a43}.kl-chat-field-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.kl-chat-field-link{border:0;background:transparent;padding:0;color:#00afee;font-size:12px;font-weight:600;cursor:pointer}.kl-chat-field-link:hover{color:#0b4f6c}.kl-chat-field-link.danger{color:#b42318}.kl-chat-field-link.danger:hover{color:#912018}.kl-chat-selected{display:flex;flex-wrap:wrap;gap:6px}.kl-chat-chip{border:1px solid #b7e8fb;background:#eef9ff;color:#0b4f6c;border-radius:999px;padding:4px 8px;font-size:12px;display:inline-flex;gap:6px}.kl-chat-chip button{border:0;background:transparent;cursor:pointer;color:#0b4f6c;padding:0}.kl-chat-search-results{border:1px solid #e3ebf8;border-radius:8px;max-height:180px;overflow:auto}.kl-chat-search-results.anchored{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;background:#fff;box-shadow:0 12px 22px #102a431f}.kl-chat-search-item{width:100%;border:0;border-bottom:1px solid #edf2fa;background:#fff;text-align:left;cursor:pointer;padding:8px 10px}.kl-chat-search-item.disabled{cursor:not-allowed;background:#f8fbff}.kl-chat-search-item:last-child{border-bottom:0}.kl-chat-search-item strong{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#102a43}.kl-chat-search-tag{flex-shrink:0;border:1px solid #d9e7f8;background:#f6f9fe;color:#627d98;border-radius:999px;padding:1px 6px;font-size:10px;font-weight:700;text-transform:uppercase}.kl-chat-search-item span{font-size:12px;color:#627d98}.kl-chat-modal-actions{margin-top:14px;display:flex;justify-content:flex-end;gap:8px}@media(max-width:900px){.kl-chat-root{grid-template-columns:1fr;height:calc(100vh - 115px);min-height:420px;max-height:calc(100vh - 95px)}.kl-chat-sidebar{border-right:0;border-bottom:1px solid #e5edf8;max-height:40%}.kl-chat-bubble{max-width:90%}}:root{font-family:Poppins,Segoe UI,sans-serif;--surface: #ffffff;--text-primary: #14213d;--text-secondary: #5c6d85;--label: #3a4b64;--input-border: #ccdaeb;--input-bg: #f8fbff;--primary-start: #14a6f5;--primary-end: #1d4ed8;--link: #0d91d1;--success: #1e8e5a;--success-bg: #edf9f2;--success-border: #c9ecd9;--danger: #c12f2f;--danger-bg: #fff1f1;--danger-border: #f3cccc}*{box-sizing:border-box}body{margin:0;color:var(--text-primary)}.shell{min-height:100vh;display:grid;place-items:center;padding:24px;background-image:linear-gradient(145deg,#071e4799,#0d629380 45%,#0b285894),url(/images/bg-login.png);background-position:center;background-repeat:no-repeat;background-size:cover}.card{width:min(100%,440px);background:#fffffff5;border:1px solid rgba(255,255,255,.45);border-radius:22px;padding:30px;box-shadow:0 24px 50px #081b3e4d;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:card-enter .22s ease-out}@keyframes card-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}h1{margin:0}.welcome-title{margin:0 0 8px;text-align:center;font-size:25px;color:var(--text-primary);font-weight:600}.section-title{margin:0 0 12px;text-align:center;font-size:21px;color:#1298db;font-weight:600;line-height:1.2}.muted{margin:0 0 18px;color:var(--text-secondary);font-size:14px;text-align:center}.brand{text-align:center;margin-bottom:14px}.brand img{width:138px;max-width:100%;filter:drop-shadow(0 6px 14px rgba(8,49,109,.18))}.form{display:grid;gap:14px}label{display:grid;gap:6px;font-size:12px;letter-spacing:.02em;color:var(--label);font-weight:600}input{width:100%;border:1px solid var(--input-border);background:var(--input-bg);border-radius:12px;padding:11px 12px;font-size:14px;color:var(--text-primary);transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}input::placeholder{color:#8ca0bb}input:focus{outline:none;border-color:#45b4eb;box-shadow:0 0 0 3px #44aae638;background:#fff}.password-wrap{position:relative}.password-wrap input{padding-right:44px}.eye-button{position:absolute;top:50%;right:8px;transform:translateY(-50%);border:0;background:transparent;box-shadow:none;padding:4px;width:30px;height:30px;border-radius:8px;color:#6c809d;cursor:pointer}.eye-button .icon-eye{font-size:20px}button{border:0;border-radius:11px;padding:11px 14px;font-size:14px;font-weight:600;cursor:pointer;background:linear-gradient(90deg,#00aeef,#0a2347);color:#fff;transition:background .3s ease}button:hover:not(:disabled){background:linear-gradient(90deg,#008fcc,#071a35)}button.secondary{background:#eef4fb;color:#223354;box-shadow:none}button.secondary:hover:not(:disabled){background:#dde9f7;transform:none}button:disabled,button[disabled]{opacity:.68;cursor:not-allowed;box-shadow:none}.message,.error{font-size:13px;margin:0 0 12px}.message{color:var(--success);text-align:center}.error{color:var(--danger);text-align:center}.success-message{display:flex;align-items:flex-start;justify-content:flex-start;gap:8px;margin:0 0 12px;width:100%;background:var(--success-bg);border:1px solid var(--success-border);border-radius:12px;padding:10px 12px}.success-icon{color:var(--success);font-size:18px;margin-top:2px;flex-shrink:0}.success-message .message{margin:0;line-height:1.4;text-align:left}.error-message{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0 0 12px;width:100%;background:var(--danger-bg);border:1px solid var(--danger-border);border-radius:12px;padding:10px 12px}.error-icon{color:var(--danger);font-size:18px;flex-shrink:0}.error-message .error{margin:0;line-height:1.4;text-align:left}.link{color:var(--link);font-size:13px;text-decoration:none;text-align:center;display:block;font-weight:500}.link:hover{text-decoration:underline}.link-inline{color:var(--link);font-size:14px;text-decoration:none;font-weight:500;text-align:center;display:block}.link-inline:hover{text-decoration:underline}button.eye-button{background:transparent;color:#6c809d;padding:4px;box-shadow:none}@media(max-width:520px){.shell{padding:16px}.card{padding:24px 20px;border-radius:18px}.welcome-title{font-size:22px}.section-title{font-size:19px}}.portal-app-shell{min-height:100vh;background:linear-gradient(180deg,#f5f8fc,#edf3fb)}.portal-header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#fff;border-bottom:1px solid #dde8f5;box-shadow:0 6px 14px #0d27500f;position:sticky;top:0;z-index:20}.portal-brand{display:inline-flex;align-items:center}.portal-brand img{width:126px}.portal-profile{position:relative}.portal-profile-button{display:inline-flex;align-items:center;gap:10px;border:1px solid #d3e2f3;background:#f7fbff;border-radius:999px;padding:6px 10px 6px 6px;color:#18365f;box-shadow:none}.portal-profile-button:hover:not(:disabled){background:#eff6ff;border-color:#bed4ee}.portal-avatar{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#00aeef,#0a2347);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.portal-profile-name{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.portal-profile-menu{position:absolute;right:0;margin-top:8px;width:170px;background:#fff;border:1px solid #d8e4f1;border-radius:12px;box-shadow:0 16px 28px #08214b29;padding:6px}.portal-menu-item{width:100%;display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:8px;padding:9px 10px;font-size:13px;font-weight:600;color:#193760;text-align:left;box-shadow:none}.portal-menu-item:hover:not(:disabled){background:#edf4fd;transform:none;box-shadow:none}.portal-menu-item.danger{color:#bc2f2f}.portal-content{width:min(1280px,100%);margin:0 auto;padding:20px}.portal-chat-surface{background:#fff;border:1px solid #dce7f4;border-radius:14px;box-shadow:0 10px 24px #08275314;overflow:hidden}.portal-panel{width:min(640px,100%);background:#fff;border:1px solid #dce7f4;border-radius:14px;box-shadow:0 10px 24px #08275314;padding:20px}.portal-panel-header h1{margin:0;font-size:22px;color:#132949}.portal-panel-header p{margin:6px 0 18px;color:#56708f;font-size:14px}.portal-back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;color:#177fbe;text-decoration:none;font-size:13px;font-weight:600}.portal-back-link:hover{text-decoration:underline}.portal-subtle{margin:0 0 12px;color:#5b7492;font-size:14px}.portal-profile-form{max-width:440px}
