: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:linear-gradient(135deg,#f3f9ff,#fff);color:#000;font-family:Verdana,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:100%;max-width:750px;flex:1;display:flex;flex-direction:column;margin-top:2rem;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:250px;background:#fff;border:1px solid #ccc;border-radius:6px;padding:1.25rem;box-shadow:0 2px 5px #0000001a}.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 pre{background-color:#1e1e1e;color:#fff;padding:1em;border-radius:5px;overflow-x:auto;font-family:Fira Code,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:2px solid #444;border-radius:6px;resize:vertical;margin-bottom:1rem;box-sizing:border-box;color:#000;font-family:Verdana,sans-serif;box-shadow:0 1px 3px #0000001a}.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}@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}.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:4rem 4.5rem;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(135deg,#1e40aff5,#4f46e5eb),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:#ffffffd1;line-height:1.45}.auth-hero-content{max-width:560px;position:relative;z-index:1}.auth-hero-content h2{font-size:3rem;line-height:1.08;margin:0 0 1rem;color:#fff;letter-spacing:-.04em}.auth-hero-content p{font-size:1.08rem;line-height:1.7;color:#ffffffd6;margin:0 0 1.5rem}.auth-feature-list{display:grid;gap:.8rem;margin-top:2rem}.auth-feature-list div{width:fit-content;padding:.75rem 1rem;border-radius:999px;background:#ffffff24;border:1px solid rgba(255,255,255,.22);color:#fff;font-weight:600;font-size:.95rem}.auth-card-panel{display:flex;align-items:center;justify-content:center;padding:3rem;box-sizing:border-box}.auth-form-container{width:100%;max-width:460px;padding:2.4rem;border-radius:24px;background:#fffffff0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 24px 70px #0f172a24,0 2px 8px #0f172a0f;text-align:center;border:1px solid rgba(226,232,240,.95);box-sizing:border-box}.auth-card-badge{width:fit-content;margin:0 auto 1rem;padding:.45rem .9rem;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.82rem;font-weight:800;border:1px solid #c7d2fe}.auth-form-container h2{margin:0;font-size:1.9rem;font-weight:700;color:#0f172a;letter-spacing:-.015em;line-height:1.25}.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:800;color:#334155}.auth-input-shell{position:relative;display:flex;align-items:center;background:#fff;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;box-sizing:border-box}.auth-input-shell:focus-within{border-color:#6366f1;box-shadow:0 0 0 4px #6366f124,0 8px 18px #0f172a14}.auth-input-shell:hover{border-color:#a5b4fc}.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:800;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:800;background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border:none;border-radius:14px;cursor:pointer;box-shadow:0 14px 28px #4338ca47,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 18px 36px #4338ca5c,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:700}.auth-divider{display:flex;align-items:center;gap:.75rem;margin:1.6rem 0 1rem;color:#94a3b8;font-size:.78rem;font-weight:800;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:700;line-height:1.35;letter-spacing:-.005em}.auth-toggle-links small{display:block;margin-top:.16rem;color:#64748b;font-size:.78rem;font-weight:500;line-height:1.35}@media (max-width: 900px){.auth-page{grid-template-columns:1fr}.auth-hero-panel{padding:2.2rem 1.5rem;min-height:260px}.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-card-panel{padding:1.5rem;align-items:flex-start}}@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-card-panel{padding:1rem}.auth-form-container{padding:1.6rem 1.25rem;border-radius:18px}.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}
