:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}html,body,#root{margin:0;padding:0;min-height:100vh;width:100%;background:radial-gradient(circle at top left,rgba(0,123,255,.1),transparent 32%),linear-gradient(135deg,#f6faff,#fff 55%,#f3f8ff);color:#000;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;box-sizing:border-box}.main-layout{display:flex;flex-direction:row}.app-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;padding:1rem;overflow:auto;margin-left:80px;transition:margin-left .3s ease}.left-sidebar{position:fixed;top:0;left:0;width:80px;min-width:80px;height:100vh;background-color:#f7f7f7;border-right:1px solid #ddd;padding:1rem .5rem;overflow-y:auto;overflow-x:hidden;z-index:10;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:1.2rem}.sidebar-icon-button{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;width:100%;padding:.6rem 0;transition:background-color .3s ease;text-align:center}.sidebar-icon-button .icon{font-size:2.4rem;margin-bottom:.2rem}.sidebar-icon-button .label{font-size:.55rem;font-weight:700;line-height:1.1;white-space:nowrap}.sidebar-icon-button:hover{background-color:#e0e0e0}.sidebar-icon-button.active-tab{background-color:#007bff;color:#fff}.chat-layout{width:min(100%,1050px);max-width:1050px;flex:1;display:flex;flex-direction:column;margin-top:1.5rem;overflow:hidden}h1{font-size:2.2rem;margin-bottom:1.5rem;color:#1c2c48}.export-top-right{position:absolute;top:1rem;right:1.5rem;display:flex;gap:.5rem}button.export{background-color:#e2e6ea;color:#333;font-size:.85rem;padding:.4rem .8rem;border:1px solid #bbb;border-radius:5px;cursor:pointer}button.export:hover{background-color:#cfd4da}.chat-box{flex:1;overflow-y:auto;min-height:320px;background:#fff;border:1px solid #d6e0ea;border-radius:12px;padding:1.4rem;box-shadow:0 6px 18px #1c2c4814}.chat-message{margin-bottom:1.2rem;padding:.9rem;border-radius:6px}.chat-message.user{background-color:#dceeff}.chat-message.assistant{background-color:#e6fce8}.chat-meta{font-size:.85rem;color:#666;display:flex;justify-content:space-between;margin-bottom:.4rem}.chat-message.assistant .chat-content{font-size:1rem;line-height:1.6;color:#111}.chat-message.assistant .chat-content p{margin:.5em 0;white-space:pre-line}.chat-message.assistant .chat-content ul,.chat-message.assistant .chat-content ol{margin:.75em 0;padding-left:1.5rem}.chat-message.assistant .chat-content li{margin-bottom:.5em;line-height:1.5}.chat-message.assistant .chat-content table{width:100%;border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto;white-space:nowrap}.chat-message.assistant .chat-content th,.chat-message.assistant .chat-content td{border:1px solid #d7e3ef;padding:.65rem .75rem;text-align:left;vertical-align:top}.chat-message.assistant .chat-content th{background:#f1f6fc;color:#1c2c48;font-weight:700}.chat-message.assistant .chat-content img{max-width:100%;height:auto;border-radius:8px}.chat-message.assistant .chat-content pre{background-color:#1e1e1e;color:#fff;padding:1em;border-radius:8px;overflow-x:auto;max-width:100%;font-family:Fira Code,Consolas,Courier New,monospace;font-size:.95rem;line-height:1.5;margin-top:1em;margin-bottom:1em}.chat-message.assistant .chat-content pre code{background:none;color:inherit;padding:0;font-family:inherit}.chat-message.assistant .chat-content code{background-color:#f1f1f1;color:#111;padding:.25em .5em;border-radius:4px;font-family:Courier New,monospace}.chat-message.assistant .chat-content h2,.chat-message.assistant .chat-content h3,.chat-message.assistant .chat-content h4{color:#00509e;margin-top:1.2rem;margin-bottom:.6rem;padding-left:.3rem;border-left:4px solid #00509e;background-color:#f1f6fc;padding:6px;border-radius:4px}.chat-message.assistant .chat-content a{color:#0047ab;text-decoration:underline;word-break:break-word;overflow-wrap:anywhere}textarea{width:100%;padding:1rem;font-size:1rem;background-color:#fff;border:1.5px solid #9db4c9;border-radius:10px;resize:vertical;margin-bottom:1rem;box-sizing:border-box;color:#000;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;box-shadow:0 2px 8px #1c2c4814}.button-group{display:flex;justify-content:flex-start;gap:.75rem;margin-bottom:2rem;flex-wrap:wrap}button{cursor:pointer;border:none;border-radius:5px;transition:.3s ease}button.ask{background-color:#007bff;color:#fff;padding:.9rem 1.8rem;font-size:1.1rem}button.ask:hover{background-color:#0056b3}button.new-chat{background-color:#6c757d;color:#fff;padding:.5rem 2rem;font-size:1rem}button.new-chat:hover{background-color:#5a6268}.loading-timer{font-size:1rem;color:#7a4600;font-weight:600;background-color:#fff8dc;border:1px solid #ffc107;padding:.5rem 1rem;border-radius:6px;margin:1rem auto;text-align:center;width:fit-content}.sql-container{position:relative;background-color:#1e1e1e;color:#fff;padding:1em;border-radius:6px;overflow-x:auto;max-height:220px;font-family:Fira Code,monospace;margin-top:.5em;white-space:pre-wrap}.sql-copy-btn{position:absolute;top:8px;right:8px;padding:4px 8px;font-size:.8em;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;z-index:10}.upload-logs-group{border:1px solid #ccc;border-radius:8px;padding:.75rem;margin-top:1rem;background-color:#fff;max-height:300px;overflow-y:auto}.upload-logs-group h3{margin-top:0;font-size:1rem;margin-bottom:.75rem;color:#333}.upload-button{min-width:200px;display:block;width:100%;padding:.7rem 1rem;font-weight:700;text-align:left;background-color:#fff;border:1px solid #ccc;border-radius:6px;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px #0000000f}.upload-button:hover{background-color:#f5f5f5;border-color:#888;cursor:pointer}.nmai-answer-block{margin-bottom:1.5rem}.nmai-answer-question{font-size:.9rem;color:#1c2c48;font-weight:700;margin-bottom:.65rem}.nmai-answer-label{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;font-weight:700;color:#0f5132;background:#dff7e8;border:1px solid #b7ebc9;border-radius:999px;padding:.25rem .65rem;margin-bottom:.75rem}.nmai-sources-box{margin-top:1rem;padding:.85rem;background:#f7fbff;border:1px solid #cfe5ff;border-radius:8px}.nmai-sources-title{font-size:.85rem;font-weight:700;color:#1c2c48;margin-bottom:.5rem}.nmai-source-link{display:block;font-size:.85rem;color:#0047ab;margin:.35rem 0;word-break:break-word;overflow-wrap:anywhere}.nmai-agent-pm-card{margin-top:1rem;padding:.9rem 1rem;background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid #b9dcff;border-left:5px solid #007bff;border-radius:10px;box-shadow:0 2px 6px #007bff14}.nmai-agent-pm-title{font-size:.95rem;font-weight:700;color:#1c2c48;margin-bottom:.35rem}.nmai-agent-pm-text{font-size:.88rem;color:#333;line-height:1.45;margin-bottom:.65rem}.nmai-agent-pm-link{display:inline-block;background:#007bff;color:#fff!important;text-decoration:none!important;padding:.5rem .8rem;border-radius:6px;font-weight:700;font-size:.85rem}.nmai-agent-pm-link:hover{background:#0056b3}@media (max-width: 768px){.left-sidebar{position:fixed;top:0;left:0;right:0;height:auto;width:100%;background-color:#f7f7f7;border-bottom:1px solid #ddd;border-right:none;flex-direction:row;align-items:center;justify-content:space-around;padding:.3rem .2rem;z-index:1000}.app-wrapper{padding-top:3.5rem;margin-left:0!important;padding-left:.75rem;padding-right:.75rem}.chat-layout{max-width:100%}.export-top-right{position:static;justify-content:center;margin-bottom:1rem}h1{font-size:2rem}textarea{font-size:1rem}.button-group{flex-direction:column;align-items:stretch}button.export{font-size:.85rem;padding:.5rem 1rem}}.auth-page{min-height:100vh;width:100%;display:grid;grid-template-columns:1.05fr .95fr;background:radial-gradient(circle at top left,rgba(99,102,241,.18),transparent 32%),radial-gradient(circle at bottom right,rgba(14,165,233,.16),transparent 34%),linear-gradient(135deg,#eef4ff,#fff);font-family:Segoe UI,Arial,sans-serif;color:#111827;box-sizing:border-box}.auth-hero-panel{padding:3.5rem 4.3rem 2.4rem;display:flex;flex-direction:column;justify-content:flex-start;background:linear-gradient(135deg,#1e40aff7,#4f46e5f0),radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 32%);color:#fff;position:relative;overflow:hidden;box-sizing:border-box}.auth-hero-panel:after{content:"";position:absolute;width:360px;height:360px;border-radius:999px;background:#ffffff14;right:-120px;bottom:-120px}.auth-brand{display:flex;align-items:center;gap:1rem;position:relative;z-index:1}.auth-logo-mark{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;font-size:2rem;background:#ffffff29;border:1px solid rgba(255,255,255,.28);box-shadow:0 10px 30px #0000002e;flex-shrink:0}.auth-brand h1{margin:0;font-size:2rem;color:#fff;line-height:1.1}.auth-brand p{margin:.35rem 0 0;font-size:.95rem;color:#ffffffd6;line-height:1.45}.auth-hero-content{max-width:580px;position:relative;z-index:1;margin-top:4.1rem}.auth-hero-content h2{font-size:2.85rem;line-height:1.08;margin:0 0 1rem;color:#fff;letter-spacing:-.04em}.auth-hero-content p{font-size:1.04rem;line-height:1.65;color:#ffffffdb;margin:0 0 1.35rem}.auth-feature-list{display:grid;gap:.65rem;margin-top:1.65rem}.auth-feature-list div{width:fit-content;padding:.68rem .95rem;border-radius:999px;background:#ffffff26;border:1px solid rgba(255,255,255,.25);color:#fff;font-weight:700;font-size:.9rem;box-shadow:0 8px 18px #0f172a14}.auth-public-learning{margin-top:1.55rem;padding:.95rem;border-radius:20px;background:#ffffff29;border:1px solid rgba(255,255,255,.28);box-shadow:0 18px 42px #0f172a2e,inset 0 1px #ffffff24;position:relative;z-index:1;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.auth-public-learning-title{margin-bottom:.85rem;font-size:.95rem;font-weight:900;color:#fff;letter-spacing:-.01em}.auth-public-learning-groups{display:grid;gap:.72rem}.auth-public-learning-group{padding:.72rem;border-radius:16px;background:#ffffff21;border:1px solid rgba(255,255,255,.24)}.auth-public-learning-group h4{margin:0 0 .58rem;font-size:.86rem;line-height:1.25;color:#fff;font-weight:900}.auth-public-link-list{display:flex;flex-wrap:wrap;gap:.42rem}.auth-public-link-list button{padding:.42rem .68rem;border-radius:999px;border:1px solid rgba(255,255,255,.72);background:#fffffff0;color:#1e3a8a;cursor:pointer;font-size:.72rem;font-weight:850;font-family:Segoe UI,Arial,sans-serif;box-shadow:0 6px 14px #0f172a1f,inset 0 1px #ffffffbf;transition:transform .16s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease}.auth-public-link-list button:hover{transform:translateY(-1px);background:#fff;border-color:#fff;color:#312e81;box-shadow:0 10px 22px #0f172a33}.auth-public-link-list button:focus-visible,.auth-public-demo-list button:focus-visible{outline:3px solid rgba(251,191,36,.95);outline-offset:2px}.auth-public-demo-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}.auth-public-demo-list button{width:100%;display:flex;align-items:flex-start;gap:.5rem;padding:.7rem;border-radius:15px;border:1px solid rgba(254,243,199,.82);background:linear-gradient(135deg,#fffffff5,#fff7ede6);color:#111827;cursor:pointer;text-align:left;font-family:Segoe UI,Arial,sans-serif;box-shadow:0 8px 18px #0f172a24,inset 0 1px #ffffffd9;transition:transform .16s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}.auth-public-demo-list button:hover{transform:translateY(-1px);background:linear-gradient(135deg,#fff,#fff7ed);border-color:#fbbf24f2;box-shadow:0 12px 26px #0f172a3d}.auth-public-demo-list button>span{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:#eef2ff;border:1px solid #c7d2fe}.auth-public-demo-list strong{display:block;font-size:.78rem;line-height:1.2;color:#111827;font-weight:900}.auth-public-demo-list small{display:block;margin-top:.14rem;font-size:.68rem;line-height:1.3;color:#475569;font-weight:650}.auth-card-panel{display:flex;align-items:flex-start;justify-content:center;padding:2.5rem 3rem;box-sizing:border-box}.auth-form-container{width:100%;max-width:470px;padding:2.55rem;border-radius:26px;background:linear-gradient(180deg,#fff,#f8fbff);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 34px 95px #0f172a3d,0 12px 34px #4f46e524,0 0 0 6px #6366f10f,0 2px 8px #0f172a14;text-align:center;border:2px solid rgba(129,140,248,.72);box-sizing:border-box;position:sticky;top:1rem}.auth-card-badge{width:fit-content;margin:0 auto 1rem;padding:.5rem .95rem;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.82rem;font-weight:900;border:1px solid #c7d2fe;box-shadow:0 6px 16px #4338ca1f}.auth-form-container h2{margin:0;font-size:1.95rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;line-height:1.22}.auth-subtitle{margin:.7rem 0 2rem;color:#64748b;font-size:.96rem;line-height:1.55}.auth-form{display:flex;flex-direction:column}.auth-field-group{text-align:left;margin-bottom:1.05rem}.auth-field-group label{display:block;margin-bottom:.45rem;font-size:.82rem;font-weight:900;color:#334155}.auth-input-shell{position:relative;display:flex;align-items:center;background:#f8fbff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 4px 12px #0f172a0a;transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease,background .2s ease;box-sizing:border-box}.auth-input-shell:focus-within{background:#fff;border-color:#6366f1;box-shadow:0 0 0 4px #6366f124,0 8px 18px #0f172a14}.auth-input-shell:hover{border-color:#a5b4fc;background:#fff}.auth-input-icon{width:44px;display:flex;justify-content:center;font-size:1rem;opacity:.85;flex-shrink:0}.auth-input-shell input,.auth-form .auth-input-shell input{width:100%;margin:0;padding:.95rem 1rem .95rem 0;border:none;border-radius:14px;background:transparent;box-shadow:none;font-size:.98rem;color:#0f172a;font-family:Segoe UI,Arial,sans-serif;box-sizing:border-box}.auth-input-shell input:focus,.auth-form .auth-input-shell input:focus{outline:none;border:none;box-shadow:none}.auth-input-shell input::placeholder{color:#94a3b8}.password-field-wrapper input,.auth-form .password-field-wrapper input{padding-right:78px}.toggle-password{position:absolute;right:10px;top:50%;transform:translateY(-50%);padding:.32rem .55rem;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:.76rem;font-weight:900;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #c7d2fe;line-height:1}.toggle-password:hover{background:#e0e7ff;text-decoration:none}.auth-primary-btn,.auth-form button[type=submit]{width:100%;margin-top:.6rem;padding:1rem;font-size:1rem;font-weight:900;background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border:none;border-radius:14px;cursor:pointer;box-shadow:0 16px 32px #4338ca52,inset 0 1px #ffffff38;transition:transform .16s ease,box-shadow .2s ease,filter .2s ease;font-family:Segoe UI,Arial,sans-serif}.auth-primary-btn:hover,.auth-form button[type=submit]:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 20px 40px #4338ca61,inset 0 1px #ffffff40}.auth-primary-btn:active,.auth-form button[type=submit]:active{transform:scale(.98)}.auth-primary-btn:disabled,.auth-form button[type=submit]:disabled{background:#a5b4fc;cursor:not-allowed;box-shadow:none}.auth-message{margin-top:1rem;padding:.85rem 1rem;border-radius:14px;font-size:.9rem;font-weight:700;background:#f8fafc;color:#334155;border:1px solid #e2e8f0;line-height:1.45;text-align:left}.auth-message.success{background-color:#ecfdf5;color:#065f46;border-color:#a7f3d0}.auth-message.error{background-color:#fef2f2;color:#991b1b;border-color:#fecaca}.auth-security-note{margin-top:1rem;font-size:.78rem;color:#64748b;font-weight:800}.auth-divider{display:flex;align-items:center;gap:.75rem;margin:1.6rem 0 1rem;color:#94a3b8;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#e2e8f0}.auth-toggle-links{margin-top:0;display:grid;gap:.75rem}.auth-toggle-links button{width:100%;display:flex;align-items:center;gap:.85rem;padding:.85rem .95rem;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a;cursor:pointer;text-align:left;text-decoration:none;transition:transform .16s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;font-family:Segoe UI,Arial,sans-serif}.auth-toggle-links button:hover{background:#eef2ff;border-color:#c7d2fe;color:#111827;text-decoration:none;transform:translateY(-1px);box-shadow:0 8px 18px #0f172a14}.auth-toggle-links button>span{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#fff;border:1px solid #e2e8f0;flex-shrink:0}.auth-toggle-links strong{display:block;font-size:.94rem;font-weight:800;line-height:1.35;letter-spacing:-.005em}.auth-toggle-links small{display:block;margin-top:.16rem;color:#64748b;font-size:.78rem;font-weight:600;line-height:1.35}.auth-footer-links{margin-top:1.25rem;padding-top:1rem;border-top:1px solid #e2e8f0;display:flex;justify-content:center;align-items:center;gap:.55rem;font-size:.78rem;color:#94a3b8}.auth-footer-links a{color:#4f46e5;font-weight:800;text-decoration:none}.auth-footer-links a:hover{color:#312e81;text-decoration:underline}.auth-footer-links span{color:#cbd5e1}@media (max-width: 1100px){.auth-hero-panel{padding:3rem 3rem 2.2rem}.auth-hero-content h2{font-size:2.45rem}.auth-public-demo-list{grid-template-columns:1fr}.auth-card-panel{padding:3.2rem 2rem 2rem}}@media (max-width: 900px){.auth-page{grid-template-columns:1fr}.auth-hero-panel{padding:2.2rem 1.5rem;min-height:auto}.auth-hero-content{margin-top:2.4rem}.auth-hero-content h2{font-size:2rem}.auth-hero-content p{font-size:.98rem}.auth-feature-list{display:none}.auth-public-learning{margin-top:1.3rem}.auth-public-demo-list{grid-template-columns:1fr}.auth-card-panel{padding:1.5rem;align-items:flex-start}.auth-form-container{position:relative;top:auto}}@media (max-width: 480px){.auth-hero-panel{padding:1.6rem 1rem}.auth-brand{align-items:flex-start}.auth-brand h1{font-size:1.5rem}.auth-brand p{font-size:.84rem}.auth-logo-mark{width:46px;height:46px;font-size:1.6rem;border-radius:14px}.auth-hero-content h2{font-size:1.65rem}.auth-public-learning{padding:.85rem;border-radius:16px}.auth-public-learning-title{font-size:.88rem}.auth-public-learning-group{padding:.65rem}.auth-public-link-list button{font-size:.68rem;padding:.38rem .55rem}.auth-card-panel{padding:1rem}.auth-form-container{padding:1.6rem 1.25rem;border-radius:20px}.auth-card-badge{font-size:.78rem}.auth-form-container h2{font-size:1.6rem}.auth-subtitle{font-size:.9rem;margin-bottom:1.5rem}.auth-input-shell input,.auth-form .auth-input-shell input,.auth-primary-btn,.auth-form button[type=submit]{font-size:.95rem}.auth-toggle-links button{padding:.75rem .8rem}}.password-reset-container{max-width:400px;margin:4em auto;padding:2em;border:1px solid #ddd;border-radius:8px;font-family:Arial,sans-serif;background-color:#f9f9f9}.password-reset-container h2{text-align:center;margin-bottom:1em;color:#333}.reset-form label{display:block;margin:1em 0 .5em;font-weight:700}.reset-form input{width:100%;padding:.7em;font-size:1em;border:1px solid #ccc;border-radius:4px}.reset-form button{margin-top:1.5em;width:100%;padding:.8em;background-color:#007bff;border:none;color:#fff;font-size:1em;border-radius:4px;cursor:pointer}.reset-form button:disabled{background-color:#aaa;cursor:not-allowed}.reset-message{margin-bottom:1em;padding:.75em;border-radius:4px;text-align:center;font-weight:700}.reset-message.success{color:#155724;background-color:#d4edda}.reset-message.error{color:#721c24;background-color:#f8d7da}.countdown{margin-top:.5em;font-size:.9em;color:#555}.password-field-wrapper{position:relative;display:flex;align-items:center}.password-field-wrapper input{flex:1;padding-right:60px}.toggle-password{position:absolute;right:12px;cursor:pointer;font-size:.9rem;color:#007bff;-webkit-user-select:none;user-select:none}.toggle-password:hover{text-decoration:underline}
