.floating-ball:not(.in-rail),.floating-ball.in-rail{width:60px;height:224px;flex-shrink:0}.floating-ball{width:100%;height:100%;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;background:transparent;padding:0;box-sizing:border-box}.floating-ball.in-rail{cursor:default}.floating-ball.dragging{cursor:grabbing}.floating-ball.dragging .ball-body{transform:scale(1.03)}.ball-shell{position:relative;width:100%;height:100%;overflow:hidden}.ball-body{position:relative;width:100%;height:100%;border-radius:30px;background:linear-gradient(180deg,#26303ef5,#161c26fa 55%,#10141cfa);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px #ffffff1a,inset 0 -1px #00000040;display:flex;flex-direction:column;align-items:center;padding:11px 5px;transition:transform .15s ease;overflow:hidden}.floating-ball.status-emergency .ball-body{animation:ball-red-glow 2.2s ease-in-out infinite}.floating-ball.status-emergency .ball-body:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:30px;background:radial-gradient(ellipse 88% 92% at 50% 52%,#ff4d4f00 28%,#ff4d4f2e 62%,#ff4d4f61),linear-gradient(180deg,#ff4d4f29,#ff4d4f0f 42%,#ff4d4f38);pointer-events:none;z-index:0;animation:ball-inner-red-glow 2.2s ease-in-out infinite}.ball-body:before{content:"";position:absolute;top:0;left:0;right:0;height:48%;border-radius:30px 30px 40% 40%;background:linear-gradient(180deg,#ffffff1a,#fff0);pointer-events:none;z-index:1}.floating-ball.status-normal .ball-body{border-color:#13c2c238}.floating-ball.status-message .ball-body{border-color:#52c41a59}.ball-logo{position:relative;z-index:2;width:20px;height:20px;border-radius:50%;object-fit:contain;margin-bottom:7px;background:#0003;padding:1px;box-shadow:0 2px 6px #00000040}.ball-progress{position:relative;z-index:2;width:40px;height:40px;margin-bottom:9px;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 2px #ffffff24,0 0 6px #00000038;cursor:pointer}.floating-ball.status-emergency .ball-progress{box-shadow:0 0 0 2px #ff4d4f8c,0 0 8px #ff4d4f33}.ball-progress.is-hovered{animation:progress-hover-pulse 1.6s ease-in-out infinite}.progress-ring-wrap{position:relative;width:40px;height:40px}.progress-ripple{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:50%;border:2px solid rgba(126,176,255,.95);box-shadow:0 0 12px #427bf1bf,0 0 20px #427bf159;opacity:0;pointer-events:none;z-index:0}.ball-progress.is-hovered .progress-ripple{animation:progress-ripple 2s ease-out infinite}.ball-progress.is-hovered .progress-ripple.delay{animation-delay:.7s}.floating-ball.in-rail .ball-progress{cursor:default}.floating-ball.in-rail .ball-progress.is-hovered{animation:none}.floating-ball.in-rail .ball-progress.is-hovered .progress-ripple{animation:none;opacity:0}.progress-ring{position:relative;z-index:1;width:40px;height:40px}.progress-track{stroke:#ffffff1a}.progress-bar{stroke-linecap:round;transition:stroke-dashoffset .3s ease}.floating-ball .progress-text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;letter-spacing:-.3px;z-index:2}.floating-ball .ball-metrics{position:relative;z-index:2;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0}.floating-ball .ball-metric-item{display:flex;flex-direction:column;align-items:center;gap:4px;line-height:1.25;width:100%}.floating-ball .ball-metric-label{font-size:10px;color:#999;white-space:nowrap;text-align:center}.floating-ball .ball-metric-value{font-size:12px;font-weight:700;color:#fff;white-space:nowrap;text-align:center}.floating-ball .progress-text.is-emergency{font-size:16px;font-weight:800;color:#ff7875;letter-spacing:0}.ball-progress.is-hovered .progress-text{color:#a8c8ff}@keyframes progress-ripple{0%{transform:scale(1);opacity:1;border-color:#a6c8ff;box-shadow:0 0 14px #427bf1e6,0 0 24px #427bf180}to{transform:scale(2.2);opacity:0;border-color:#7eb0ff26;box-shadow:0 0 4px #427bf100,0 0 8px #427bf100}}@keyframes progress-hover-pulse{0%,to{box-shadow:0 0 0 2px #427bf1f2,0 0 14px #427bf1a6,0 0 24px #427bf14d}50%{box-shadow:0 0 0 3px #7eb0ff,0 0 22px #427bf1f2,0 0 34px #427bf18c}}@keyframes ball-inner-red-glow{0%,to{opacity:.72}50%{opacity:1}}@keyframes ball-red-glow{0%,to{border-color:#ff4d4f9e;box-shadow:inset 0 0 22px #ff4d4f61,inset 0 0 40px #ff4d4f38,inset 0 1px #ffffff1a,inset 0 -1px #00000040,0 0 0 2px #ff4d4fad,0 0 10px #ff4d4f6b}50%{border-color:#ff4d4ffa;box-shadow:inset 0 0 30px #ff4d4f85,inset 0 0 52px #ff4d4f52,inset 0 1px #ffffff1a,inset 0 -1px #00000040,0 0 0 3px #ff4d4ff2,0 0 14px #ff4d4f8c}}.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.module-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 8px 12px;min-height:96px;border-radius:12px;background:#fff;border:1px solid #eef1f5;box-shadow:0 2px 8px #0f23340d;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;position:relative;overflow:hidden;text-align:center}.module-item:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--module-color);opacity:.85}.module-item:hover{border-color:color-mix(in srgb,var(--module-color) 40%,#eef1f5);box-shadow:0 6px 16px color-mix(in srgb,var(--module-color) 15%,rgba(15,35,52,.08));transform:translateY(-2px)}.module-item:active{transform:translateY(0)}.module-icon-wrap{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--module-color) 14%,#ffffff);border:1px solid color-mix(in srgb,var(--module-color) 22%,transparent);flex-shrink:0}.module-icon{font-size:22px;line-height:1}.module-info{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;min-width:0}.module-name{font-size:12px;font-weight:600;color:#2c3e50;line-height:1.3;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-desc{font-size:10px;color:#98a2b3;line-height:1.3;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-item.span-row{grid-column:1 / -1;flex-direction:row;justify-content:flex-start;min-height:64px;padding:10px 14px;text-align:left}.module-item.span-row .module-info{align-items:flex-start}.message-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-bottom:8px}.message-item{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid #eef1f5;background:#fff;transition:border-color .15s,background .15s;cursor:pointer}.message-item:hover{border-color:#dce3ec;background:#fafbfc}.message-item.unread{background:#f7fbff;border-color:#d6e8ff}.message-item.unread:hover{border-color:#b8d4ff;background:#f0f7ff}.message-icon{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.message-icon.type-info{background:#e6f4ff}.message-icon.type-warning{background:#fff7e6}.message-icon.type-success{background:#f6ffed}.message-body{flex:1;min-width:0}.message-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px}.message-title{font-size:13px;font-weight:600;color:#2c3e50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-item.read .message-title{font-weight:500;color:#667085}.message-time{font-size:10px;color:#98a2b3;flex-shrink:0}.message-content{font-size:12px;color:#667085;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.unread-dot{width:6px;height:6px;border-radius:50%;background:#1890ff;flex-shrink:0;margin-top:5px}.assistant-panel{width:100%;height:100%;background:#fff;display:flex;flex-direction:column;overflow:hidden;animation:panelExpand .25s ease-out}.panel-header{padding:12px 16px;background-color:#427bf1;background-image:url(../platform-bg.png);background-repeat:no-repeat;background-position:center top;background-size:cover;color:#fff}.header-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.header-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.brand-logo{width:34px;height:34px;border-radius:50%;object-fit:contain;background:#0003;flex-shrink:0}.brand-text{min-width:0}.brand-text h1{font-size:14px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-sub{font-size:11px;opacity:.75}.header-user-logout{display:flex;align-items:center;justify-content:center;height:28px;min-width:56px;max-width:80px;padding:0 12px;border-radius:14px;color:#fffffff2;font-size:12px;font-weight:500;transition:background .15s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-user-logout:hover{background:#fff3;color:#fff}.label-name{overflow:hidden;text-overflow:ellipsis}.label-logout,.header-user-logout:hover .label-name{display:none}.header-user-logout:hover .label-logout{display:inline}.header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.header-logout{display:none}.header-close{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fffc;font-size:14px;transition:background .15s}.header-close:hover{background:#fff3;color:#fff}.panel-modules{padding:12px 16px 8px}.section-title{font-size:13px;font-weight:600;color:#333;margin:0;line-height:18px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:22px}.section-header-left{display:flex;align-items:center;gap:6px;min-width:0;position:relative;padding-left:10px}.section-header-left:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:14px;border-radius:2px;background:linear-gradient(180deg,#5a91f5,#427bf1 55%,#2f62c9)}.unread-badge{background:#ff4d4f;color:#fff;font-size:10px;font-weight:600;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;line-height:1;flex-shrink:0}.section-more{flex-shrink:0;padding:0;border:none;background:none;font-size:12px;color:#427bf1;cursor:pointer;line-height:18px;transition:color .15s}.section-more:hover{color:#2f62c9}.panel-messages{flex:1;padding:0 16px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.panel-footer{padding:10px 16px 12px;border-top:1px solid #f0f0f0;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;font-size:11px;color:#666;background:linear-gradient(180deg,#f5f8ff,#fff)}.footer-metrics{display:flex;align-items:flex-end;gap:10px}.footer-right{justify-content:flex-end;flex-shrink:0}.metric-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.25}.footer-right .metric-item{align-items:center;min-width:44px}.metric-label{color:#999;font-size:10px;white-space:nowrap}.metric-value{font-weight:600;color:#333;display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}.metric-value.highlight{color:#427bf1}.status-dot{width:6px;height:6px;border-radius:50%;background:#427bf1;animation:blink 2s ease-in-out infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.4}}.login-panel{width:100%;height:100%;background:#fff;display:flex;flex-direction:column;overflow:hidden;animation:panelExpand .25s ease-out}@keyframes panelExpand{0%{opacity:0;transform:scale(.85) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.login-panel .panel-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 12px;background-color:#427bf1;background-image:url(../platform-bg.png);background-repeat:no-repeat;background-position:center top;background-size:cover;color:#fff}.login-panel .header-brand{display:flex;align-items:center;gap:10px;min-width:0}.login-panel .brand-logo{width:36px;height:36px;border-radius:50%;object-fit:contain;background:#0003;flex-shrink:0}.login-panel .brand-text{min-width:0}.login-panel .brand-text h1{font-size:14px;font-weight:600;line-height:1.3}.login-panel .brand-sub{font-size:11px;opacity:.85}.login-panel .header-close{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fffc;font-size:14px;transition:background .15s;flex-shrink:0}.login-panel .header-close:hover{background:#fff3;color:#fff}.login-body{flex:1;padding:22px 20px 12px;display:flex;flex-direction:column;justify-content:flex-start;gap:22px;min-height:0}.login-brand{display:flex;justify-content:center;align-items:center;padding:0;flex-shrink:0}.login-brand-logo{width:70%;max-width:180px;min-height:24px;height:auto;object-fit:contain;display:block}.login-footer{flex-shrink:0;padding:10px 16px 16px;text-align:center;font-size:12px;color:#888;line-height:1.5}.login-form{display:flex;flex-direction:column;gap:14px}.form-field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12px;font-weight:600;color:#333}.form-field input{height:36px;padding:0 12px;border:1px solid #d9d9d9;border-radius:8px;font-size:13px;outline:none;transition:border-color .15s,box-shadow .15s;font-family:inherit}.form-field input:focus{border-color:#427bf1;box-shadow:0 0 0 2px #427bf126}.form-field input:disabled{background:#f5f5f5;cursor:not-allowed}.login-error{font-size:12px;color:#ff4d4f;text-align:left;line-height:1.45;word-break:break-word;margin:-4px 0 0;padding:8px 10px;background:#fff2f0;border-radius:6px;border:1px solid #ffccc7}.login-btn{height:38px;margin-top:4px;border:none;border-radius:8px;background:linear-gradient(135deg,#5a91f5,#427bf1 55%,#2f62c9);color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .1s;font-family:inherit}.login-btn:hover:not(:disabled){opacity:.92}.login-btn:active:not(:disabled){transform:scale(.98)}.login-btn:disabled{opacity:.65;cursor:not-allowed}.app-container{width:100%;height:100%;display:flex;overflow:hidden}.app-container.collapsed{flex-direction:row;justify-content:flex-end;align-items:flex-start;background:transparent;overflow:hidden}.ball-wrap,.ball-rail{width:60px;height:224px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden}.app-container.expanded{flex-direction:row;align-items:stretch;background:transparent}.app-container.expanded.with-ball{flex-direction:row;align-items:flex-start;gap:8px;background:transparent}.app-container.expanded.tray-only{background:#fff;border-radius:16px}.panel-wrap{flex:1;min-width:0;height:100%;background:#fff;border-radius:16px;overflow:hidden;position:relative;z-index:1}.app-container.expanded.with-ball .panel-wrap{flex:none;width:320px;border-radius:16px}.app-container.expanded.with-ball .assistant-panel,.app-container.expanded.with-ball .login-panel{animation:none}.app-container.expanded.with-ball .ball-rail{position:relative;z-index:2;flex-shrink:0}
