*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.5;color:#1d1d1f;background-color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.grok-app{display:flex;height:100vh;width:100vw;overflow:hidden}.grok-sidebar{width:260px;background-color:#f5f5f7;border-right:1px solid rgba(0,0,0,.06);display:flex;flex-direction:column;padding:1.5rem;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.sidebar-header{display:flex;align-items:center;gap:.75rem;padding:.5rem 0;margin-bottom:1rem}.grok-logo{font-size:1.5rem;color:#007aff}.sidebar-header h1{font-size:1.25rem;font-weight:600;color:#1d1d1f;letter-spacing:-.01em}.new-chat-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background-color:#007aff;color:#fff;border:none;border-radius:12px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #007aff26}.new-chat-btn:hover{background-color:#0051d5;box-shadow:0 4px 12px #007aff40;transform:translateY(-1px)}.new-chat-btn:active{transform:translateY(0);box-shadow:0 2px 6px #007aff33}.grok-main{flex:1;display:flex;flex-direction:column;background-color:#fff;position:relative}.grok-messages{flex:1;overflow-y:auto;padding:2rem;display:flex;flex-direction:column;gap:1.5rem}.grok-message{display:flex;gap:1rem;max-width:800px;margin:0 auto;width:100%;margin-bottom:.75rem}.message-avatar{width:2rem;height:2rem;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;background-color:#f5f5f7;color:#007aff;flex-shrink:0}.user .message-avatar{background-color:#007aff;color:#fff}.message-content{flex:1;position:relative;padding:.5rem 0}.assistant .message-text,.user .message-text{color:#1d1d1f}.copy-btn{position:absolute;top:.5rem;right:.5rem;background:transparent;border:none;color:#666;cursor:pointer;padding:.5rem;border-radius:8px;opacity:0;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center}.message-content:hover .copy-btn{opacity:1}.copy-btn:hover{color:#007aff;background-color:#f5f5f7;transform:scale(1.05)}.typing-indicator{display:flex;gap:.25rem;padding:.5rem}.typing-indicator span{width:.5rem;height:.5rem;background-color:#007aff;border-radius:50%;animation:typing 1.4s infinite;opacity:.4}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,to{transform:translateY(0);opacity:.4}50%{transform:translateY(-4px);opacity:1}}.grok-input-container{padding:1.5rem 2rem;background-color:#fff;border-top:1px solid rgba(0,0,0,.06);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.grok-input-form{display:flex;gap:.75rem;max-width:800px;margin:0 auto}.grok-input{flex:1;padding:.875rem 1.25rem;border:1px solid rgba(0,0,0,.08);border-radius:12px;font-size:1rem;line-height:1.5;resize:none;outline:none;transition:all .2s cubic-bezier(.4,0,.2,1);min-height:2.5rem;max-height:200px;background-color:#fff;box-shadow:0 1px 3px #0000000d}.grok-input:focus{border-color:#007aff;box-shadow:0 0 0 4px #007aff1a,0 2px 6px #00000014}.grok-input:disabled{background-color:#f5f5f7;cursor:not-allowed;opacity:.6}.send-btn{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;background-color:#007aff;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #007aff26;flex-shrink:0}.send-btn:hover:not(:disabled){background-color:#0051d5;box-shadow:0 4px 12px #007aff40;transform:translateY(-1px)}.send-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 6px #007aff33}.send-btn:disabled{background-color:#e5e5e7;cursor:not-allowed;box-shadow:none;opacity:.5}.message-text pre{background-color:#f5f5f7;padding:1rem 1.25rem;border-radius:12px;overflow-x:auto;margin:.75rem 0;border:1px solid rgba(0,0,0,.06);max-width:100%;box-shadow:0 1px 3px #0000000d}.message-text code{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;background-color:#f5f5f7;padding:.2rem .4rem;border-radius:6px;font-size:.9em}.grok-messages::-webkit-scrollbar{width:8px}.grok-messages::-webkit-scrollbar-track{background:transparent}.grok-messages::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:10px;border:2px solid transparent;background-clip:padding-box}.grok-messages::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3);background-clip:padding-box}@media (max-width: 768px){.grok-app{flex-direction:column}.grok-sidebar{width:100%;height:auto;border-right:none;border-bottom:1px solid rgba(0,0,0,.06)}.grok-messages{padding:1rem}.grok-message{max-width:100%}.grok-input-container{padding:1rem}}.markdown-h1{font-size:1.5rem;font-weight:600;margin:.75rem 0 .5rem;color:#1d1d1f;line-height:1.3;letter-spacing:-.01em}.markdown-h2{font-size:1.25rem;font-weight:600;margin:.5rem 0 .25rem;color:#1d1d1f;line-height:1.3;letter-spacing:-.01em}.markdown-h3{font-size:1.1rem;font-weight:600;margin:.5rem 0 .25rem;color:#1d1d1f;line-height:1.3;letter-spacing:-.01em}.markdown-h4{font-size:1rem;font-weight:600;margin:.5rem 0 .25rem;color:#1d1d1f;line-height:1.3;letter-spacing:-.01em}.markdown-p{margin:.5rem 0;line-height:1.6;color:#1d1d1f}.markdown-ul,.markdown-ol{margin:.5rem 0;padding-left:1.25rem;list-style-position:outside}.markdown-li{margin:.25rem 0;line-height:1.5;display:list-item}.markdown-ul .markdown-ul,.markdown-ol .markdown-ol{margin:.25rem 0;padding-left:1.5rem}.markdown-li>p{margin:.25rem 0;display:inline}.markdown-li>p:first-child{margin-top:0}.markdown-li>p:last-child{margin-bottom:0}.markdown-li code,.markdown-li .markdown-inline-code{display:inline;margin:0;padding:.2rem .4rem;background-color:#f5f5f7;border-radius:6px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.9em;color:#007aff}.markdown-li pre{margin:.75rem 0;padding:1rem 1.25rem;background-color:#f5f5f7;border-radius:12px;border:1px solid rgba(0,0,0,.06);overflow-x:auto;box-shadow:0 1px 3px #0000000d}.markdown-pre{background-color:#f5f5f7;padding:1rem 1.25rem;border-radius:12px;overflow-x:auto;margin:.75rem 0;border:1px solid rgba(0,0,0,.06);font-size:.9rem;line-height:1.5;box-shadow:0 1px 3px #0000000d;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace}.markdown-inline-code{background-color:#f5f5f7;padding:.2rem .4rem;border-radius:6px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.9em;color:#007aff}.markdown-blockquote{border-left:3px solid #007aff;margin:.75rem 0;padding:.5rem 0 .5rem 1rem;color:#666;background-color:#f5f5f7;border-radius:0 12px 12px 0;font-size:.95rem}.markdown-table{width:100%;border-collapse:collapse;margin:.75rem 0;background-color:#fff;border:1px solid rgba(0,0,0,.06);border-radius:12px;overflow:hidden;font-size:.95rem;box-shadow:0 1px 3px #0000000d}.markdown-th{background-color:#f5f5f7;padding:.75rem 1rem;text-align:left;font-weight:600;border-bottom:1px solid rgba(0,0,0,.06)}.markdown-td{padding:.75rem 1rem;border-bottom:1px solid rgba(0,0,0,.06)}.markdown-tr:last-child .markdown-td{border-bottom:none}.markdown-link{color:#007aff;text-decoration:none;transition:opacity .2s ease}.markdown-link:hover{opacity:.7;text-decoration:underline}.markdown-strong{font-weight:600;color:#1d1d1f}.markdown-em{font-style:italic;color:#666}.message-text{font-size:.95rem;line-height:1.6;color:#1d1d1f;white-space:pre-wrap;word-break:break-word;overflow-x:auto;padding:.25rem 0}.message-text pre{max-width:100%;overflow-x:auto}.message-text>*:first-child{margin-top:0}.message-text>*:last-child{margin-bottom:0}.grok-message{margin-bottom:.75rem}.grok-message:last-child{margin-bottom:0}.message-content{padding:.5rem 0}.cl-modalContent{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;position:fixed!important;margin:0!important}:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#1d1d1f;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#007aff;text-decoration:none;transition:opacity .2s ease}a:hover{opacity:.7}body{margin:0;padding:0;min-width:320px;min-height:100vh;background-color:#fff}h1{font-size:3.2em;line-height:1.1;font-weight:600;letter-spacing:-.02em}button{border-radius:12px;border:none;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);-webkit-tap-highlight-color:transparent}button:focus,button:focus-visible{outline:none}button:active{transform:scale(.98)}
