*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#fff;color:#111827}.app{display:flex;flex-direction:column;min-height:100%}.app-error{margin:0 1.5rem;padding:.75rem 1rem;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:.875rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}.app-error strong{color:#7f1d1d}.app-error-dismiss{margin-left:auto;padding:.25rem .6rem;border-radius:6px;border:1px solid #fca5a5;background:#fff;color:#991b1b;cursor:pointer;font:inherit;font-size:.8125rem}.app-error-dismiss:hover{background:#fee2e2}.app-header{padding:1.25rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#fff}.app-title{margin:0;font-size:1.35rem;font-weight:600;letter-spacing:-.02em;color:#111827}.app-sub{margin:.35rem 0 0;font-size:.875rem;color:#4b5563}.app-main{flex:1;display:flex;justify-content:center;align-items:stretch;padding:1rem;min-height:0}.chatkit-stage{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding:0 .75rem .75rem;min-height:0;width:100%;box-sizing:border-box}.chatkit-row{display:flex;flex-direction:column;align-items:stretch;gap:1rem;width:100%;min-height:0;flex:1}@media(min-width:800px){.chatkit-row{flex-direction:row;align-items:flex-start;gap:1.25rem}}.chatkit-panel-wrap{flex:1;min-width:0;display:flex;justify-content:stretch}.chatkit-aside{flex-shrink:0;display:flex;flex-direction:column;gap:.5rem;align-items:stretch}@media(min-width:800px){.chatkit-aside{width:11.5rem;padding-top:.25rem}}.chatkit-download-btn{padding:.6rem 1rem;border-radius:10px;border:1px solid #111827;background:#111827;color:#fff;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;white-space:nowrap}.chatkit-download-btn:hover:not(:disabled){background:#374151;border-color:#374151}.chatkit-download-btn:disabled{opacity:.45;cursor:not-allowed}.chatkit-aside-hint{margin:0;font-size:.75rem;line-height:1.45;color:#6b7280;max-width:14rem}.chatkit-panel{width:100%;max-width:none;min-height:440px;height:min(72vh,640px);max-height:min(72vh,640px);border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 4px 24px #00000014}.agent-hub{flex:1;display:flex;flex-direction:column;align-items:center;padding:1.25rem 1rem 2rem;min-height:0}.agent-hub--chat{align-items:stretch;width:100%}.agent-hub--chat .chatkit-stage{padding-left:.5rem;padding-right:.5rem}.agent-hub-intro{margin:0 0 1.25rem;font-size:.9375rem;color:#4b5563;text-align:center;max-width:36rem}.agent-hub-notice{margin:0 0 1rem;padding:.65rem 1rem;border-radius:8px;background:#fffbeb;border:1px solid #fcd34d;color:#92400e;font-size:.875rem;max-width:36rem;text-align:center}.agent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;width:100%;max-width:none;padding:0 .5rem;box-sizing:border-box}.agent-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.65rem;padding:1.35rem 1rem;border-radius:14px;border:1px solid #e5e7eb;background:#f9fafb;color:#111827;cursor:pointer;font:inherit;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.agent-card:hover{border-color:#d1d5db;transform:translateY(-2px);box-shadow:0 8px 24px #00000014}.agent-card--primary:hover{border-color:#34d399;box-shadow:0 8px 24px #10b98126}.agent-card--soon{opacity:.95}.agent-card-icon{display:flex;align-items:center;justify-content:center;width:4.5rem;height:4.5rem;border-radius:14px;background:#e5e7eb;color:#374151}.agent-card--primary .agent-card-icon{color:#047857;background:#d1fae5}.agent-icon-svg{width:2.5rem;height:2.5rem}.agent-card-title{font-size:1rem;font-weight:600;letter-spacing:-.02em}.agent-card-desc{font-size:.8125rem;line-height:1.45;color:#6b7280}.agent-hub-toolbar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.75rem 1rem;border-bottom:1px solid #e5e7eb;background:#fff}.agent-hub-back{padding:.4rem .75rem;border-radius:8px;border:1px solid #d1d5db;background:#fff;color:#111827;font:inherit;font-size:.875rem;cursor:pointer}.agent-hub-back:hover{background:#f3f4f6}.agent-hub-toolbar-title{font-size:.9375rem;font-weight:600;color:#111827}.agent-hub-loading{flex:1;display:flex;align-items:center;justify-content:center;min-height:200px}.agent-hub--chat .app-error{margin:.75rem 1rem 0}.simple-chat-main{align-items:flex-start}.simple-chat{width:min(100%,440px);min-height:480px;display:flex;flex-direction:column;border-radius:12px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 4px 24px #0000000f;overflow:hidden}.simple-chat-messages{flex:1;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.65rem;min-height:360px}.simple-chat-empty{margin:0;color:#6b7280;font-size:.875rem;align-self:center;padding:2rem 1rem}.simple-chat-bubble{max-width:92%;padding:.55rem .75rem;border-radius:10px;font-size:.875rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}.simple-chat-bubble--user{align-self:flex-end;background:#111827;color:#f9fafb}.simple-chat-bubble--assistant{align-self:flex-start;background:#f3f4f6;color:#111827}.simple-chat-form{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid #e5e7eb}.simple-chat-input{flex:1;min-width:0;padding:.55rem .85rem;border-radius:999px;border:1px solid #d1d5db;background:#fff;color:#111827;font:inherit;font-size:.875rem}.simple-chat-input:focus{outline:2px solid rgba(100,150,255,.35);outline-offset:1px}.simple-chat-send{padding:.55rem 1rem;border-radius:999px;border:none;background:#e8eaed;color:#0f1115;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}.simple-chat-send:disabled{opacity:.45;cursor:not-allowed}
