:root,[data-theme=light]{--bg:#ebf5f5;--surface:#fff;--card:#f3fbfb;--brand:#0f8f8d;--brand-end:#1dba8c;--brand-dark:#0a706e;--brand-light:#e3f5f4;--text-primary:#0e2826;--text-secondary:#3d6160;--text-muted:#7a9e9c;--border:rgba(15,143,141,.18);--border-card:rgba(15,143,141,.12);--bot-bubble-bg:#f3fbfb;--bot-bubble-border:rgba(15,143,141,.15);--user-bubble-start:#0f8f8d;--user-bubble-end:#1dba8c;--user-text:#e9fffb;--input-bg:#fff;--shadow:0 20px 60px rgba(15,143,141,.13),0 4px 16px rgba(0,0,0,.07);--header-start:#0f8f8d;--header-end:#0d7a78;--scrollbar:rgba(15,143,141,.2);--error-bg:#fff0f0;--error-text:#c0392b;--error-border:#f5c6c6;--warn-bg:#fff7e6;--warn-text:#92620a;--warn-border:#f2dba5}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#04101a;--surface:#07141a;--card:#0d2030;--brand:#0f8f8d;--brand-end:#1dba8c;--brand-dark:#0a706e;--brand-light:#0d2030;--text-primary:#e9fffb;--text-secondary:#a8ccc9;--text-muted:#4f7c79;--border:hsla(0,0%,100%,.08);--border-card:rgba(15,143,141,.18);--bot-bubble-bg:#0d2030;--bot-bubble-border:rgba(15,143,141,.22);--user-bubble-start:#0f8f8d;--user-bubble-end:#1dba8c;--user-text:#e9fffb;--input-bg:#07141a;--shadow:0 20px 60px rgba(0,0,0,.5),0 4px 16px rgba(0,0,0,.4);--header-start:#062020;--header-end:#0a2e2e;--scrollbar:rgba(15,143,141,.25);--error-bg:#2a1010;--error-text:#f1948a;--error-border:#5c1c1c;--warn-bg:#2a2010;--warn-text:#f0c674;--warn-border:#5c4a1c}}[data-theme=dark]{--bg:#04101a;--surface:#07141a;--card:#0d2030;--brand:#0f8f8d;--brand-end:#1dba8c;--brand-dark:#0a706e;--brand-light:#0d2030;--text-primary:#e9fffb;--text-secondary:#a8ccc9;--text-muted:#4f7c79;--border:hsla(0,0%,100%,.08);--border-card:rgba(15,143,141,.18);--bot-bubble-bg:#0d2030;--bot-bubble-border:rgba(15,143,141,.22);--user-bubble-start:#0f8f8d;--user-bubble-end:#1dba8c;--user-text:#e9fffb;--input-bg:#07141a;--shadow:0 20px 60px rgba(0,0,0,.5),0 4px 16px rgba(0,0,0,.4);--header-start:#062020;--header-end:#0a2e2e;--scrollbar:rgba(15,143,141,.25);--error-bg:#2a1010;--error-text:#f1948a;--error-border:#5c1c1c;--warn-bg:#2a2010;--warn-text:#f0c674;--warn-border:#5c4a1c}*,:after,:before{box-sizing:border-box;margin:0;padding:0}body,html{height:100%;background:var(--bg);color:var(--text-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background .25s ease,color .25s ease}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:99px}::-webkit-scrollbar-thumb:hover{background:rgba(15,143,141,.4)}.app{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg);transition:background .25s ease}.phone{width:100%;max-width:440px;height:min(820px,92vh);background:var(--surface);border-radius:22px;box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--border);transition:background .25s ease,border-color .25s ease,box-shadow .25s ease}.header,.phone{display:flex;flex-direction:column}.header{background:linear-gradient(135deg,var(--header-start),var(--header-end));color:#e9fffb;padding:14px 16px;gap:8px;flex-shrink:0;border-bottom:1px solid hsla(0,0%,100%,.07)}.header-top{justify-content:space-between;gap:12px}.header .avatar,.header-top{display:flex;align-items:center}.header .avatar{width:40px;height:40px;border-radius:50%;background:hsla(0,0%,100%,.15);justify-content:center;font-size:20px;flex-shrink:0}.header .avatar.logo{width:auto;border-radius:10px;background:#fff;padding:6px 10px}.header .avatar.logo img{height:24px;width:auto;display:block}.header h1{font-family:Outfit,Inter,sans-serif;font-size:15px;font-weight:600;color:#e9fffb;margin:0;letter-spacing:.01em}.header .sub{font-size:11px;color:rgba(233,255,251,.7);font-weight:400;font-family:Inter,sans-serif}.header .sub .user-name{font-weight:700;color:#e9fffb}.header .sub .version-badge{margin-left:6px;padding:1px 6px;border-radius:999px;background:hsla(0,0%,100%,.18);font-weight:700;font-size:10px;letter-spacing:.5px;vertical-align:middle}.sub-header-row{display:flex;align-items:center;gap:8px;margin-top:2px}.version-badge{background:rgba(15,143,141,.35);font-size:9px;font-weight:700;color:#e9fffb;padding:2px 7px;border-radius:99px;letter-spacing:.05em;border:1px solid rgba(29,186,140,.4);line-height:1.4}.version-select{text-align:center;text-align-last:center}.version-select:focus{outline:none}.version-select option{color:#0b3a36}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}.version-select{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.2);color:#e9fffb;font-size:12px;font-family:Inter,sans-serif;padding:6px 26px 6px 11px;border-radius:8px;cursor:pointer;outline:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E9FFFB'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 5px center;background-size:16px;transition:background-color .15s ease,border-color .15s ease}.version-select:hover{background-color:hsla(0,0%,100%,.2);border-color:hsla(0,0%,100%,.35)}.version-select option{background:#07141a;color:#e9fffb}.header .home{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.15);color:#e9fffb;font-size:13px;font-family:Inter,sans-serif;padding:6px 12px;border-radius:8px;cursor:pointer;transition:background .15s ease;white-space:nowrap}.header .home:hover{background:hsla(0,0%,100%,.22)}.otp-row{display:flex;gap:10px;justify-content:center;padding:6px 0 2px}.otp-box{width:44px;height:50px;text-align:center;font-size:20px;font-weight:600;font-family:Inter,sans-serif;border:1.5px solid var(--border);border-radius:12px;background:var(--input-bg);color:var(--text-primary);outline:none;transition:border-color .15s ease}.otp-box:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,143,141,.15)}.otp-resend{display:block;margin:8px auto 0;background:none;border:none;color:var(--brand);font-size:13px;font-weight:600;font-family:Inter,sans-serif;cursor:pointer;padding:6px 10px;transition:opacity .15s}.otp-resend:hover{opacity:.75;text-decoration:underline}.messages{flex:1 1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;background:var(--bg);transition:background .25s ease}.row{display:flex;align-items:flex-end;gap:6px;position:relative}.row.bot{justify-content:flex-start}.row.user{justify-content:flex-end}.msg-col{display:flex;flex-direction:column;max-width:82%;min-width:0}.row.bot .msg-col{align-items:flex-start}.row.user .msg-col{align-items:flex-end}.avatar-icon{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;font-family:Inter,sans-serif}.avatar-icon.bot-icon{background:var(--brand-light);border:1px solid var(--bot-bubble-border);color:var(--brand)}.bubble{max-width:100%;padding:10px 14px;border-radius:16px;font-size:14px;font-family:Inter,sans-serif;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.row.bot .bubble{background:var(--bot-bubble-bg);color:var(--text-primary);border:1px solid var(--bot-bubble-border);border-bottom-left-radius:5px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.row.user .bubble{background:linear-gradient(135deg,var(--user-bubble-start),var(--user-bubble-end));color:var(--user-text);border-bottom-right-radius:5px;border:none}.row.bot .bubble.history{background:var(--card);color:var(--text-secondary);opacity:.8}.row.user .bubble.history{background:linear-gradient(135deg,rgba(15,143,141,.55),rgba(29,186,140,.55));color:rgba(233,255,251,.8)}.row.bot .bubble.error{background:var(--error-bg);border:1px solid var(--error-border)}.row.bot .bubble.error,.row.bot .bubble.error strong{color:var(--error-text)}.bubble strong,.no-data-pill{font-weight:600}.no-data-pill{display:inline-block;background:var(--warn-bg);color:var(--warn-text);border:1px solid var(--warn-border);border-radius:8px;padding:2px 8px;font-size:13px}.bot-line{margin:0 0 7px}.bot-line:last-child{margin-bottom:0}.steps{list-style:none;margin:8px 0 2px;padding:0;display:flex;flex-direction:column;gap:13px}.steps:last-child{margin-bottom:0}.step{gap:11px;align-items:flex-start}.step,.step-num{position:relative;display:flex}.step-num{z-index:1;flex-shrink:0;width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:11px;font-weight:700;align-items:center;justify-content:center}.step-text{flex:1 1;line-height:1.45;padding-top:2px}.step:not(:last-child):before{content:"";position:absolute;left:10px;top:23px;bottom:-14px;width:2px;background:var(--brand-light)}.bullets{list-style:none;margin:8px 0 2px;padding:0;display:flex;flex-direction:column;gap:7px}.bullets:last-child{margin-bottom:0}.bullets li{position:relative;padding-left:18px;line-height:1.45}.bullets li:before{content:"";position:absolute;left:3px;top:8px;width:6px;height:6px;border-radius:50%;background:var(--brand)}.bubble a{color:var(--brand);text-decoration:none;transition:-webkit-text-decoration .1s;transition:text-decoration .1s;transition:text-decoration .1s,-webkit-text-decoration .1s}.bubble a:hover{text-decoration:underline}.chat-divider{display:flex;align-items:center;gap:8px;margin:6px 4px;color:var(--text-muted)}.chat-divider:after,.chat-divider:before{content:"";flex:1 1;height:1px;background:var(--border)}.chat-divider span{font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;font-family:Inter,sans-serif;color:var(--text-muted)}.typing{display:inline-flex;gap:5px;padding:12px 16px;background:var(--bot-bubble-bg);border:1px solid var(--bot-bubble-border);border-radius:16px;border-bottom-left-radius:5px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.typing span{width:7px;height:7px;border-radius:50%;background:var(--brand);animation:pulse 1.3s ease-in-out infinite}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes pulse{0%,80%,to{opacity:.25;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}.actions{border-top:1px solid var(--border);background:var(--surface);padding:12px 12px 14px;display:flex;flex-direction:column;gap:8px;max-height:48%;overflow-y:auto;flex-shrink:0;transition:background .25s ease}.prompt{font-size:11px;color:var(--text-muted);font-weight:600;font-family:Inter,sans-serif;text-transform:uppercase;letter-spacing:.05em;padding:0 2px}.opts{display:flex;flex-direction:column;gap:8px}.opts-chips{flex-direction:row;flex-wrap:wrap}.opts-chips .opt{width:auto;flex:0 1 auto;flex-direction:row;align-items:center;gap:6px;padding:9px 14px;border:2px solid var(--brand)}.opts-chips .opt-main{width:auto}.opts-related{flex-direction:row;flex-wrap:wrap;gap:8px}.opts-related .opt-related-chip{width:auto;flex:0 1 auto;flex-direction:row;align-items:center;padding:7px 13px;border-radius:999px;border:1px solid var(--border-card);background:var(--brand-light);font-size:13px;font-weight:500;color:var(--brand)}.opts-related .opt-related-chip:hover{background:var(--brand);border-color:var(--brand);color:var(--user-text);transform:none}.opts-related .opt-related-chip .opt-main{width:auto}.opt-related-icon{font-size:12px;line-height:1}.opts-related .opt-related-exit{width:auto;flex:0 1 auto;background:none;border:none;padding:7px 6px;font-size:13px;color:var(--text-muted);text-decoration:underline}.opts-related .opt-related-exit:hover{color:var(--text-primary);background:none;transform:none}.opts-related .opt-related-exit .opt-main{width:auto}.opts-main{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;gap:8px}.opts-main .opt{border:2px solid var(--brand);font-weight:600;width:auto}.opts-main .opt,.opts-main .opt .opt-main{justify-content:center}.opts-main .opt:hover{background:var(--brand-light)}.opt{text-align:left;background:var(--card);border:1px solid var(--border-card);border-radius:12px;padding:11px 14px;font-size:14px;font-family:Inter,sans-serif;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:column;align-items:stretch;gap:3px;transition:border-color .15s ease,background .15s ease,transform .1s ease}.opt:hover{border-color:var(--brand);background:var(--brand-light);transform:translateY(-1px)}.opt:active{transform:translateY(0)}.opt-main{display:flex;align-items:center;gap:8px;width:100%}.opt-label{flex:1 1}.opt-desc{font-size:12px;font-weight:400;line-height:1.35;color:var(--text-muted);font-family:Inter,sans-serif}.opt .badge{margin-left:auto;flex-shrink:0;font-size:10px;font-weight:700;color:#c0392b;background:rgba(192,57,43,.1);padding:3px 8px;border-radius:6px;letter-spacing:.03em;border:1px solid rgba(192,57,43,.2)}.opt.primary{color:var(--user-text);border-color:transparent;justify-content:center}.opt.primary,.opt.primary:hover{background:linear-gradient(135deg,var(--brand),var(--brand-end))}.opt.primary:hover{filter:brightness(1.08)}.back{align-self:flex-start;background:none;border:none;color:var(--brand);font-size:13px;font-family:Inter,sans-serif;font-weight:500;cursor:pointer;padding:2px 4px;transition:opacity .15s}.back:hover{opacity:.7}.inputrow{display:flex;gap:8px;align-items:center}.inputrow input{flex:1 1;background:var(--input-bg);border:1px solid var(--border);border-radius:12px;padding:11px 14px;font-size:14px;font-family:Inter,sans-serif;color:var(--text-primary);outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .25s ease}.inputrow input::placeholder{color:var(--text-muted)}.inputrow input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,143,141,.15)}.inputrow button{background:var(--brand);color:var(--user-text);border:none;border-radius:100px;width:42px;height:42px;flex-shrink:0;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,transform .1s ease}.inputrow button:hover{background:var(--brand-dark);transform:scale(1.06)}.inputrow button:active{transform:scale(.97)}.idle-hint{font-size:11px;color:var(--text-muted);text-align:center;padding:4px}.hist-btn,.idle-hint{font-family:Inter,sans-serif}.hist-btn{background:hsla(0,0%,100%,.12);color:#e9fffb;border:1px solid hsla(0,0%,100%,.18);border-radius:9px;padding:6px 11px;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s}.hist-btn:hover{background:hsla(0,0%,100%,.22)}.header-btns{display:flex;align-items:center;gap:8px}.header-btns .hist-btn{flex:1 1;display:flex;align-items:center;justify-content:center;gap:4px}.upload-btn{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:var(--card);border:1.5px dashed var(--brand);border-radius:10px;padding:9px 14px;font-size:14px;font-family:Inter,sans-serif;color:var(--brand);cursor:pointer;transition:background .15s ease}.upload-btn:hover{background:var(--brand-light)}.upload-btn input[type=file]{display:none}.ticket-detail{padding:4px 2px;display:flex;flex-direction:column;gap:10px}.ticket-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--text-muted)}.ticket-row b{color:var(--text-primary);font-weight:600;text-align:right}.ticket-desc{background:var(--bot-bubble-bg);border:1px solid var(--bot-bubble-border);border-radius:12px;padding:10px 12px;font-size:14px;color:var(--text-primary);white-space:pre-wrap}.ticket-attach{display:flex;flex-direction:column;gap:6px}.ticket-attach-h{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.ticket-file{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--card);border:1px solid var(--border-card);border-radius:8px;padding:6px 8px 6px 12px}.ticket-file-name{flex:1 1;text-align:left;background:none;border:none;padding:4px 0;font-size:13px;color:var(--text-primary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ticket-file-name:hover{text-decoration:underline}.ticket-file-dl{flex-shrink:0;background:var(--brand-light);border:1px solid var(--brand);border-radius:7px;padding:5px 10px;font-size:12px;font-weight:600;color:var(--brand);cursor:pointer;white-space:nowrap}.ticket-file-dl:hover{filter:brightness(.97)}.hist-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.hist-head .back,.hist-title{white-space:nowrap}.hist-title{flex:1 1;text-align:center;font-size:14px;font-weight:600;font-family:Outfit,Inter,sans-serif;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis}.hist-spacer{width:64px}.hist-chat{background:var(--brand);color:var(--user-text);border:none;border-radius:9px;padding:6px 10px;font-size:12.5px;font-family:Inter,sans-serif;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s}.hist-chat:hover{background:var(--brand-dark)}.hist-scroll{flex:1 1;overflow-y:auto}.hist-empty{text-align:center;color:var(--text-muted);font-size:13px;font-family:Inter,sans-serif;padding:24px 12px}.hist-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:var(--card);border:1px solid var(--border-card);border-radius:12px;padding:13px 14px;margin-bottom:8px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.hist-row:hover{border-color:var(--brand);background:var(--brand-light)}.hist-row-date{font-size:14px;font-weight:600;font-family:Inter,sans-serif;color:var(--text-primary)}.hist-row-meta{font-size:11px;font-weight:400;font-family:Inter,sans-serif;color:var(--text-muted);white-space:nowrap}.msg-col-compare{max-width:92%}.bot-compare-row{display:flex;gap:12px}.bot-compare-col{flex:1 1;min-width:0}.bot-compare-head{font-weight:700;font-size:13px;color:var(--brand);margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--bot-bubble-border)}.bot-compare-col .bullets{margin-top:0}.bot-table{width:100%;margin:8px 0 2px;border-collapse:collapse;font-size:13px}.bot-table:last-child{margin-bottom:0}.bot-table td{padding:6px 8px;border:1px solid var(--bot-bubble-border)}.bot-table tr:first-child td{font-weight:700;background:var(--card)}.msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:4px;width:100%}.msg-time{font-size:10px;color:var(--text-secondary);opacity:.75}.row.user .msg-time{color:rgba(233,255,251,.75)}.msg-tick{font-size:11px;color:#34b7f1;letter-spacing:-2px}.msg-feedback{display:inline-flex}.msg-feedback-icons{display:flex;gap:4px}.feedback-icon-btn{background:none;border:none;font-size:13px;line-height:1;padding:1px 3px;cursor:pointer;opacity:.55;transition:opacity .15s ease,transform .1s ease}.feedback-icon-btn:hover{opacity:1;transform:scale(1.15)}.msg-feedback-done{font-size:11px;opacity:.6}.msg-feedback-panel{position:absolute;top:100%;left:34px;right:8px;z-index:5;margin-top:6px;background:var(--surface);border:1px solid var(--border-card);border-radius:12px;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:8px}.msg-feedback-close{position:absolute;top:6px;right:8px;background:none;border:none;font-size:16px;line-height:1;color:var(--text-muted);cursor:pointer;padding:2px}.feedback-stars{display:flex;gap:4px}.feedback-star{background:none;border:none;font-size:20px;line-height:1;color:var(--border);cursor:pointer;padding:2px;transition:color .15s ease,transform .1s ease}.feedback-star:hover{transform:scale(1.1)}.feedback-star.filled{color:#f5a623}.msg-feedback-row{display:flex;gap:6px}.msg-feedback-input{flex:1 1;min-width:0;background:var(--input-bg);border:1px solid var(--border);border-radius:8px;padding:7px 10px;font-size:12px;font-family:Inter,sans-serif;color:var(--text-primary);outline:none;transition:border-color .15s ease,box-shadow .15s ease}.msg-feedback-input::placeholder{color:var(--text-muted)}.msg-feedback-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,143,141,.15)}.msg-feedback-send{flex-shrink:0;background:var(--brand);color:var(--user-text);border:none;border-radius:8px;padding:7px 12px;font-size:12px;font-weight:600;font-family:Inter,sans-serif;cursor:pointer;transition:background .15s ease}.msg-feedback-send:hover{background:var(--brand-dark)}