:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#f8fafc;background-color:#0f172a;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#0f172a}#root{min-height:100vh;background:#0f172a}a{color:#93c5fd;text-decoration:none}a:hover{color:#bfdbfe}button{border:1px solid #374151;border-radius:8px;padding:.75em 1.5em;font-size:.875rem;font-weight:500;font-family:inherit;background:#374151;color:#f8fafc;cursor:pointer;transition:all .2s ease}button:hover{background:#4b5563;border-color:#6b7280}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#3b82f6;border-color:#3b82f6;color:#fff}button.primary:hover{background:#2563eb;border-color:#2563eb}button.hero-action{background:linear-gradient(135deg,#10b981,#059669);border:2px solid #10b981;color:#fff;font-size:1.1rem;font-weight:600;padding:1rem 2rem;border-radius:12px;box-shadow:0 8px 20px #10b9814d;transform:translateY(0);transition:all .3s ease;animation:pulse-glow 2s ease-in-out infinite;position:relative;overflow:hidden}button.hero-action:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}button.hero-action:hover:before{left:100%}button.hero-action:hover{background:linear-gradient(135deg,#059669,#047857);border-color:#059669;transform:translateY(-2px);box-shadow:0 12px 28px #10b98166;animation:none}button.hero-action:disabled{background:linear-gradient(135deg,#6b7280,#4b5563);border-color:#6b7280;box-shadow:0 4px 12px #6b728033;animation:none;transform:translateY(0)}@keyframes pulse-glow{0%,to{box-shadow:0 8px 20px #10b9814d}50%{box-shadow:0 8px 20px #10b98180,0 0 30px #10b98133}}.waiting-animation{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;background:#1e293bf2;border-radius:18px;border:1px solid rgba(71,85,105,.6)}.waiting-dots{display:flex;gap:8px}.waiting-dot{width:12px;height:12px;border-radius:50%;background:#10b981;animation:waiting-bounce 1.4s ease-in-out infinite both}.waiting-dot:nth-child(1){animation-delay:-.32s}.waiting-dot:nth-child(2){animation-delay:-.16s}.waiting-dot:nth-child(3){animation-delay:0s}@keyframes waiting-bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.waiting-text{text-align:center;color:#f8fafc}.waiting-text h3{margin:0 0 8px;font-size:1.2rem;background:linear-gradient(135deg,#10b981,#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.waiting-text p{margin:0;opacity:.7;font-size:.9rem;line-height:1.4}.waiting-spinner{width:40px;height:40px;border:3px solid rgba(16,185,129,.2);border-top:3px solid #10b981;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.page-shell{margin:0 auto;padding:clamp(16px,4vw,32px);max-width:1200px;height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;padding-top:max(clamp(16px,4vw,32px),env(safe-area-inset-top));padding-bottom:max(clamp(16px,4vw,32px),env(safe-area-inset-bottom));padding-left:max(clamp(16px,4vw,32px),env(safe-area-inset-left));padding-right:max(clamp(16px,4vw,32px),env(safe-area-inset-right))}.page-shell::-webkit-scrollbar{display:none}.card{background:#334155;border:1px solid #475569;border-radius:12px;padding:clamp(20px,4vw,32px);display:flex;flex-direction:column}.chat-scroll{flex:1;margin-top:18px;padding:12px;border-radius:8px;background:#1e293b;border:1px solid #374151;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;-ms-overflow-style:none;scrollbar-width:none;max-height:500px;min-height:300px}.chat-scroll::-webkit-scrollbar{display:none}.chat-input-row{display:flex;gap:10px;margin-top:18px}.chat-input-row textarea{flex:1;border-radius:8px;border:1px solid #475569;padding:12px 16px;font-size:.875rem;background:#1e293b;color:#f8fafc;transition:border-color .2s ease;resize:none;font-family:inherit;line-height:1.5;overflow-x:hidden;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;box-sizing:border-box;word-wrap:break-word;-webkit-text-size-adjust:100%}.chat-input-row textarea::-webkit-scrollbar{display:none}.chat-input-row textarea:focus{outline:none;border-color:#3b82f6}.chat-input-row textarea::placeholder{color:#94a3b8}.message-bubble{max-width:min(80%,420px);padding:12px 16px;border-radius:8px;display:inline-flex;flex-direction:column;gap:4px;font-size:.875rem;line-height:1.45;word-break:break-word;white-space:pre-wrap;overflow-wrap:break-word}.message-meta{display:flex;justify-content:space-between;gap:12px;font-size:.75rem;opacity:.7;font-weight:500}.bubble-self{align-self:flex-end;background:#3b82f6;color:#fff;border:1px solid #2563eb}.bubble-peer{align-self:flex-start;background:#475569;color:#f8fafc;border:1px solid #64748b}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:6px;font-size:.75rem;font-weight:500;background:#374151;color:#d1d5db;border:1px solid #4b5563}.status-pill.error{background:#dc2626;color:#fff;border-color:#b91c1c}.status-pill.success{background:#16a34a;color:#fff;border-color:#15803d}.landing-shell{margin:0 auto;padding:clamp(20px,5vw,48px);max-width:1200px;display:flex;flex-direction:column;gap:clamp(24px,4vw,42px);height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;padding-top:max(clamp(20px,5vw,48px),calc(env(safe-area-inset-top) + 16px));padding-bottom:max(clamp(20px,5vw,48px),env(safe-area-inset-bottom));padding-left:max(clamp(20px,5vw,48px),env(safe-area-inset-left));padding-right:max(clamp(20px,5vw,48px),env(safe-area-inset-right))}.landing-shell::-webkit-scrollbar{display:none}.landing-card{background:#334155;border:1px solid #475569;border-radius:12px;padding:clamp(24px,4vw,48px)}.landing-hero{display:flex;flex-direction:column;gap:clamp(18px,3vw,28px)}.landing-hero-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.landing-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:clamp(1.8rem,4vw,2.2rem);color:#f8fafc;background:linear-gradient(135deg,#f8fafc,#e2e8f0,#f8fafc);background-size:200% 200%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 2px 4px rgba(0,0,0,.2);letter-spacing:-.02em;position:relative;animation:shimmer 3s ease-in-out infinite;cursor:default}@supports not ((background-clip: text) or (-webkit-background-clip: text)){.landing-brand{color:#f8fafc;text-shadow:0 2px 4px rgba(0,0,0,.3)}.landing-brand span{color:#ec4899!important;text-shadow:0 1px 2px rgba(0,0,0,.4)!important}}@keyframes shimmer{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.landing-brand:before{content:"";position:absolute;inset:-4px;background:linear-gradient(135deg,#6366f133,#ec489933,#3b82f633);border-radius:12px;z-index:-1;opacity:.6;transition:all .3s ease}.landing-brand span{color:#ec4899;background:linear-gradient(135deg,#ec4899,#f472b6,#ec4899);background-size:200% 200%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:.7em;font-weight:400;vertical-align:super;margin-left:-2px;transition:all .3s ease;animation:shimmer 3s ease-in-out infinite reverse}.landing-brand:hover{transform:translateY(-1px);transition:all .3s ease;animation-duration:1.5s}.landing-brand:hover:before{opacity:.8;transform:scale(1.02);background:linear-gradient(135deg,#6366f14d,#ec48994d,#3b82f64d)}.landing-brand:hover span{animation-duration:1.5s;filter:brightness(1.2)}.landing-hero-copy h1{margin:0;font-size:clamp(2.1rem,5vw,3rem);line-height:1.1;color:#f8fafc;font-weight:600}.landing-hero-copy p{margin:0;opacity:.8;font-size:1rem;max-width:60ch;color:#cbd5e1}.landing-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 18px;background:#3b82f6;color:#fff;font-weight:500;border:1px solid #2563eb}.landing-cta-row,.landing-cta-buttons{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.landing-cta-row a,.landing-cta-buttons a{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:12px 24px;font-weight:500;font-size:.875rem;transition:all .2s ease;border:1px solid transparent}.landing-primary{background:#3b82f6;color:#fff;border-color:#2563eb}.landing-primary:hover{background:#2563eb}.landing-secondary{background:#0ea5e9;color:#fff;border-color:#0284c7}.landing-secondary:hover{background:#0284c7}.landing-accent{background:#22c55e;color:#fff;border-color:#16a34a}.landing-accent:hover{background:#16a34a;box-shadow:0 18px 40px #22c55e40}.landing-primary:hover,.landing-secondary:hover,.landing-accent:hover{transform:translateY(-1px)}.landing-alert{border-radius:20px;padding:18px 24px;font-weight:600;display:flex;flex-direction:column;gap:6px;color:#fff;background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 22px 44px #ef444438}.landing-alert a{color:inherit;text-decoration:underline}.landing-media{border-radius:24px;overflow:hidden;box-shadow:0 24px 48px #0f172a24}.landing-media img{display:block;width:100%;height:auto}.landing-mission-grid{display:grid;gap:20px}.landing-callout{border-radius:8px;padding:18px 22px;background:#374151;color:#d1d5db;font-weight:500;border:1px solid #4b5563}.landing-cta-footer{text-align:center;display:grid;gap:14px}.mobile-app-shell{position:fixed;inset:0;width:100vw;display:flex;flex-direction:column;background:#0f172a;overflow:hidden;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0);padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}@media (max-width: 768px) and (orientation: landscape){.mobile-app-shell{padding-top:max(env(safe-area-inset-top,0),8px);padding-bottom:max(env(safe-area-inset-bottom,0),8px)}.mobile-header{padding:8px 12px}.mobile-header-title h1{font-size:1rem}.mobile-chat-container{padding:12px}}.mobile-header{flex-shrink:0;background:linear-gradient(180deg,#1e293b,#0f172a);padding:12px 16px;border-bottom:1px solid rgba(71,85,105,.3);box-shadow:0 2px 8px #0000001a}.mobile-header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.mobile-header-title{display:flex;flex-direction:column;gap:2px}.mobile-header-title h1{margin:0;font-size:1.25rem;font-weight:700;color:#f8fafc;letter-spacing:-.02em}.mobile-header-title p{margin:0;font-size:.75rem;color:#94a3b8;font-weight:500}.mobile-status{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;color:#10b981;font-weight:600}.mobile-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 8px #10b98199;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.mobile-actions{display:flex;gap:8px;flex-wrap:wrap}.mobile-btn{padding:8px 16px;border-radius:20px;font-size:.813rem;font-weight:600;border:none;cursor:pointer;transition:all .2s ease;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.mobile-btn:active{transform:scale(.96)}.mobile-btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 2px 8px #3b82f64d}.mobile-btn-primary:disabled{background:#374151;color:#6b7280;box-shadow:none}.mobile-btn-danger{background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;box-shadow:0 2px 8px #f973164d}.mobile-btn-danger:disabled{background:#374151;color:#6b7280;box-shadow:none}.mobile-btn-secondary{background:#33415599;color:#cbd5e1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(71,85,105,.4)}.mobile-chat-container{flex:1;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;padding:16px;background:#0f172a}.mobile-chat-container::-webkit-scrollbar{display:none}.mobile-messages{display:flex;flex-direction:column;gap:12px;padding-bottom:8px}.mobile-message{max-width:85%;display:flex;flex-direction:column;animation:messageSlideIn .2s ease-out}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.mobile-message-self{align-self:flex-end}.mobile-message-other{align-self:flex-start}.mobile-bubble{padding:10px 14px;border-radius:18px;font-size:.938rem;line-height:1.4;word-wrap:break-word;white-space:pre-wrap;position:relative}.mobile-bubble-self{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-bottom-right-radius:4px;box-shadow:0 2px 8px #3b82f633}.mobile-bubble-other{background:#1e293b;color:#f8fafc;border-bottom-left-radius:4px;border:1px solid rgba(71,85,105,.3)}.mobile-bubble-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;font-size:.688rem;opacity:.7;font-weight:600}.mobile-bubble-time{font-size:.688rem;margin-top:4px;opacity:.6}.mobile-bubble-self .mobile-bubble-time{text-align:right;color:#fffc}.mobile-bubble-other .mobile-bubble-time{text-align:left;color:#64748b}.mobile-empty-state{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:32px 24px;color:#64748b;font-size:.938rem;line-height:1.6}.mobile-input-container{flex-shrink:0;background:#1e293b;border-top:1px solid rgba(71,85,105,.3);padding:12px 16px;box-shadow:0 -2px 8px #0000001a}.mobile-input-row{display:flex;gap:8px;align-items:flex-end}.mobile-input{flex:1;background:#0f172a;border:1px solid rgba(71,85,105,.4);border-radius:20px;padding:10px 16px;font-size:1rem;color:#f8fafc;resize:none;min-height:40px;max-height:120px;font-family:inherit;line-height:1.4;-webkit-appearance:none;-ms-overflow-style:none;scrollbar-width:none;transition:border-color .2s ease}.mobile-input::-webkit-scrollbar{display:none}.mobile-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.mobile-input::placeholder{color:#64748b}.mobile-send-btn{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#2563eb);border:none;color:#fff;font-size:1.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #3b82f64d}.mobile-send-btn:active{transform:scale(.92)}.mobile-send-btn:disabled{background:#374151;color:#6b7280;box-shadow:none}.mobile-logout-btn{padding:6px 12px;background:#ef44441a;color:#f87171;border:1px solid rgba(239,68,68,.2);border-radius:12px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:32px}.mobile-logout-btn:active{background:#ef444433}@media (max-width: 640px){.card{border-radius:8px;min-height:auto}.chat-scroll{max-height:55vh}.chat-input-row{flex-direction:column}.chat-input-row input,.chat-input-row button{width:100%}.landing-card{border-radius:8px}.landing-cta-row,.landing-cta-buttons{flex-direction:column;align-items:stretch}.landing-cta-row a,.landing-cta-buttons a{width:100%}}input[type=text],input[type=email],input[type=password],textarea,select{background:#1e293b;border:1px solid #475569;border-radius:8px;padding:8px 12px;color:#f8fafc;font-size:.875rem;transition:border-color .2s ease}input[type=text]:focus,input[type=email]:focus,input[type=password]:focus,textarea:focus,select:focus{outline:none;border-color:#3b82f6}input[type=text]::placeholder,input[type=email]::placeholder,input[type=password]::placeholder,textarea::placeholder{color:#94a3b8}table{width:100%;border-collapse:collapse;background:#334155;border-radius:8px;overflow:hidden}th,td{padding:12px 16px;text-align:left;border-bottom:1px solid #475569}th{background:#475569;font-weight:600;color:#f8fafc;font-size:.875rem}td{color:#e2e8f0;font-size:.875rem}tr:last-child td{border-bottom:none}.text-sm{font-size:.875rem}.text-xs{font-size:.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-400{color:#94a3b8}.text-gray-300{color:#cbd5e1}.text-red-400{color:#f87171}.text-green-400{color:#4ade80}.text-blue-400{color:#60a5fa}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.space-y-4>*+*{margin-top:1rem}.space-y-6>*+*{margin-top:1.5rem}.page-transition{width:100%;min-height:100vh}.page-transition-fadeOut{animation:fadeOutSlide .25s ease-out forwards}.page-transition-fadeIn{animation:fadeInSlide .3s ease-out forwards}@keyframes fadeOutSlide{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(-20px)}}@keyframes fadeInSlide{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}button,.mobile-btn,.hero-action{transition:all .25s cubic-bezier(.4,0,.2,1)}button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000026}button:not(:disabled):active{transform:translateY(0) scale(.98);transition:all .1s ease}.mobile-btn:not(:disabled):active,.hero-action:not(:disabled):active{transform:scale(.96);transition:transform .1s ease}.card,.landing-card{animation:cardSlideIn .4s cubic-bezier(.16,1,.3,1) backwards}@keyframes cardSlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.card>*:nth-child(1){animation-delay:.05s}.card>*:nth-child(2){animation-delay:.1s}.card>*:nth-child(3){animation-delay:.15s}.card>*:nth-child(4){animation-delay:.2s}.card>*:nth-child(5){animation-delay:.25s}.loading-spinner{display:inline-block;width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.loading-spinner-large{width:40px;height:40px;border-width:4px}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(90deg,#ffffff0d 25%,#ffffff1a,#ffffff0d 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}input:focus,textarea:focus,.mobile-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a;transition:all .2s ease}.landing-action:hover,.landing-accent:hover{transform:translateY(-2px) scale(1.02);transition:all .3s cubic-bezier(.4,0,.2,1)}.landing-action:active,.landing-accent:active{transform:translateY(0) scale(.98)}.mobile-message,.chat-msg{animation:messageSlideIn .3s cubic-bezier(.16,1,.3,1) backwards}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(10px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.mobile-empty-state{animation:bounceIn .6s cubic-bezier(.68,-.55,.265,1.55)}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.waiting-spinner{animation:spin 1.2s linear infinite,pulseSlow 2s ease-in-out infinite}@keyframes pulseSlow{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
