:root{color-scheme:dark;--bg:#08090d;--panel:#111117ed;--line:#ffffff14;--text:#f7f3ff;--muted:#aaa5b2;--accent:#c398ff;--accent-2:#9b58ef;--green:#73e2b7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(850px 620px at 82% 0,#7536b62b,transparent 60%),radial-gradient(720px 600px at 8% 70%,#8d51df16,transparent 70%),var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#network{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.shell{width:min(1040px,calc(100% - 48px));margin-inline:auto}
.helper-nav{position:sticky;top:16px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:12px 20px 12px 24px;border:1px solid var(--line);border-radius:999px;background:#101016e8;backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:760;letter-spacing:.06em}
.back{padding:9px 0;color:#aaa5b2;font-size:13px;font-weight:650}
.back:hover{color:#d0b4ff}
.helper-main{padding:28px 0 58px}
.helper-heading{margin-bottom:28px;animation:enter .65s cubic-bezier(.16,1,.3,1) both}
h1{margin:0 0 8px;font-size:clamp(38px,4.2vw,50px);line-height:1.08;letter-spacing:-.045em}
.gradient{color:transparent;background:linear-gradient(100deg,#fff,#d4bcff 62%,#9d5bea);background-clip:text;-webkit-background-clip:text}
.helper-heading p{max-width:890px;margin:0;color:var(--muted);font-size:16px;line-height:1.55}
.helper-card{height:500px;min-height:440px;display:flex;flex-direction:column;border:1px solid #c490ff27;border-radius:24px;background:linear-gradient(145deg,#17131fe8,#0c0d12f2);box-shadow:0 26px 80px #0005,0 0 70px #7934bc0e;overflow:hidden}
.chat{flex:1;min-height:0;overflow-y:auto;padding:22px 24px;scroll-behavior:smooth}
.welcome{display:grid;place-items:center;min-height:330px;text-align:center}
.welcome[hidden]{display:none}
.welcome-inner{width:min(100%,660px)}
.helper-mark{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 20px;border:1px solid #bd7bff42;border-radius:16px;background:#a15bed17;color:#cfadff;font-size:22px;box-shadow:0 0 30px #9c50e91e}
.welcome h2{margin:0;font-size:18px;font-weight:600;color:#b8b2bf}
.quick-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:24px auto 0;max-width:600px}
.quick-questions button{min-height:43px;border:1px solid var(--line);border-radius:999px;background:#ffffff05;color:#bcb7c4;padding:9px 16px;cursor:pointer;font-size:13px;transition:.2s}
.quick-questions button:hover{color:var(--text);border-color:#bd7bff55;background:#b66cff10;transform:translateY(-1px)}
.message{display:flex;gap:10px;margin-bottom:14px;animation:message-in .35s cubic-bezier(.16,1,.3,1) both}
.message.user{justify-content:flex-end}
.avatar{flex:0 0 30px;height:30px;display:grid;place-items:center;border:1px solid #bd7bff38;border-radius:9px;background:#a15bed14;color:#cba8ff;font-size:10px;font-weight:800}
.bubble{max-width:min(76%,690px);padding:11px 14px;border:1px solid var(--line);border-radius:15px 15px 15px 5px;background:#ffffff05;color:#c4bfca;font-size:14px;line-height:1.5;white-space:pre-line}
.user .bubble{order:-1;border-color:#bd7bff3b;border-radius:15px 15px 5px;background:linear-gradient(135deg,#bf91ff,#9451e8);color:#130c1b;font-weight:600}
.bubble strong{color:var(--text)}
.composer{display:flex;align-items:center;gap:8px;margin:0 24px 24px;padding:7px;border:1px solid var(--line);border-radius:17px;background:#08090dcf}
.composer input{min-width:0;flex:1;height:45px;border:0;background:transparent;color:var(--text);padding:0 13px;outline:0}
.composer input::placeholder{color:#66616d}
.send{flex:0 0 45px;height:45px;border:0;border-radius:13px;background:linear-gradient(135deg,#d4b6ff,#9a54ec);color:#140b1d;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 24px #9851e526}
.send:hover{transform:translateY(-1px)}
.send svg{width:18px;height:18px}
.helper-links{text-align:center;margin:13px 0 0;color:#706b77;font-size:11px}
.helper-links a{color:#c297ff}.helper-links a:hover{text-decoration:underline;text-underline-offset:3px}
.helper-footer{display:flex;justify-content:space-between;gap:20px;padding:26px 0 38px;border-top:1px solid var(--line);color:#706b77;font-size:12px}
.helper-footer nav{display:flex;gap:20px;flex-wrap:wrap}
.helper-footer a:hover{color:#c9a7f5}
@keyframes enter{from{opacity:0;transform:translateY(14px);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(max-width:640px){
  .shell{width:calc(100% - 24px)}
  .helper-nav{top:8px;margin-top:8px;padding:9px 13px 9px 15px}
  .brand{font-size:11px}.brand img{width:28px;height:28px}
  .back{font-size:10px}
  .helper-main{padding:26px 0 48px}
  .helper-heading{margin-bottom:20px}
  h1{font-size:35px}
  .helper-heading p{font-size:14px}
  .helper-card{height:520px;min-height:0;border-radius:20px}
  .chat{padding:17px 13px}
  .welcome{min-height:365px}
  .helper-mark{width:46px;height:46px;margin-bottom:17px}
  .welcome h2{font-size:16px}
  .quick-questions{grid-template-columns:1fr;gap:7px;margin-top:18px}
  .quick-questions button{min-height:38px;padding:8px 12px;font-size:12px}
  .bubble{max-width:88%;font-size:13px}
  .composer{margin:0 12px 12px;padding:6px}
  .composer input{height:42px}
  .send{height:42px;flex-basis:42px}
  .helper-footer{align-items:flex-start;flex-direction:column}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
